/* Satellite Tracker Styles */

.satellite-section {
    margin: 2rem 0;
}

.satellite-container {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 2rem;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.globe-container {
    max-width: 980px;
    background: linear-gradient(165deg, #0f172a 0%, #111f39 45%, #0b1326 100%);
}

.satellite-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.satellite-icon {
    font-size: 1.4rem;
}

.globe-canvas-wrap {
    padding: 12px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 25%, rgba(59, 130, 246, 0.18) 0%, rgba(2, 6, 23, 0.2) 50%, rgba(2, 6, 23, 0.5) 100%);
}

.globe-canvas {
    width: 100%;
    height: 560px;
    display: block;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 35%, #071226 0%, #030811 80%);
    box-shadow: inset 0 0 45px rgba(16, 185, 129, 0.08), 0 12px 28px rgba(2, 6, 23, 0.5);
}

.orbit-legend {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.orbit-key {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.orbit-key.orbit-leo {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.35);
}

.orbit-key.orbit-meo {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.35);
}

.orbit-key.orbit-geo {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.35);
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.sat-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.sat-input:focus {
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.sat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sat-input[type="number"]::-webkit-inner-spin-button,
.sat-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sat-input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.sat-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sat-button:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.position-hint {
    margin: -0.2rem 0 0.9rem;
    color: rgba(224, 231, 255, 0.65);
    font-size: 0.9rem;
}

.position-result {
    margin-top: 1.5rem;
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.position-card {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.position-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.position-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.position-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    font-family: 'Courier New', monospace;
}

.position-unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
}

.error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.95rem;
}

.loading {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
}

.loading span {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: loadingBounce 0.6s infinite alternate;
}

.loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingBounce {
    from {
        opacity: 0.3;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

@media (max-width: 600px) {
    .satellite-container {
        padding: 1.25rem;
        margin: 0 0.6rem;
    }

    .globe-canvas {
        height: 390px;
    }

    .input-container {
        flex-direction: column;
    }

    .sat-button {
        width: 100%;
    }

    .position-grid {
        grid-template-columns: 1fr;
    }
}
