/* Premium Cinematic Loader Styles */
.premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0a0e17 0%, #000000 100%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 1.5s;
    overflow: hidden;
}

.premium-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    animation: loader-floating 4s ease-in-out infinite;
}

/* 3D Floating Animation */
@keyframes loader-floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.loader-logo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, #ffd700, #ff8c00, #b8860b);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 80px rgba(255, 215, 0, 0.6);
    }
}

.loader-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #000;
}

.loader-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    margin: 0;
    opacity: 0;
    animation: slide-up 1s ease 0.5s forwards;
}

.loader-subtitle {
    font-size: 1rem;
    color: #ffd700;
    letter-spacing: 8px;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 40px;
    opacity: 0;
    animation: slide-up 1s ease 0.7s forwards;
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loader-progress-bar {
    width: 300px;
    height: 4px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slide-up 1s ease 0.9s forwards;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700);
    background-size: 200% 100%;
    animation: load-fill 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards, gradient-move 2s linear infinite;
    border-radius: 10px;
}

@keyframes gradient-move {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@keyframes load-fill {
    0% {
        width: 0%;
    }

    40% {
        width: 60%;
    }

    70% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

.loader-status {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    animation: slide-up 1s ease 1s forwards;
    text-align: center;
}

/* Background Particles Setup for Canvas */
#premium-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* Premium Map Overlay Effect (vignette) */
.map-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/* Premium UI Enhancements (Hover states & glowing glass) */
.map-control-btn,
.sidebar,
.reserve-item,
.modern-icon-btn,
.action-bar button,
.gallery-wrapper img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.map-control-btn:hover,
.reserve-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.1) !important;
    border-color: #ffd700 !important;
    z-index: 10;
}

.map-control-btn i {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.map-control-btn:hover i {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: scale(1.15);
}

.reserve-item {
    position: relative;
    overflow: hidden;
}

.reserve-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.reserve-item:hover::after {
    left: 100%;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 23, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b8860b, #ffd700);
    border-radius: 4px;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd700, #ff8c00);
}

/* ================= NASA SCI-FI HUB EFFECTS ================= */
.nasa-sci-fi-mode {
    --primary-color: #00ffff !important;
    --glass-border: rgba(0, 255, 255, 0.4) !important;
}

.nasa-sci-fi-mode .sidebar {
    background: rgba(0, 10, 30, 0.85);
    border-color: #00ffff;
    box-shadow: 2px 0 20px rgba(0, 255, 255, 0.2);
}

.nasa-sci-fi-mode .map-container-boxed {
    border-color: #00ffff;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9), 0 15px 40px rgba(0, 255, 255, 0.2), 0 0 0 1px rgba(0, 255, 255, 0.3);
}

.nasa-live-hud {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 10, 20, 0.85);
    border: 1px solid #00ffff;
    border-top: 3px solid #00ffff;
    padding: 15px 25px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), inset 0 0 15px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 250px;
}

.nasa-live-hud.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.iss-tracker-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iss-radar-ping {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    border-radius: 50%;
    animation: radar-pulse 2.5s infinite ease-out;
    z-index: 1;
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.1);
        opacity: 1;
        border-width: 4px;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
        border-width: 1px;
    }
}

.nasa-crosshair-tooltip {
    background: rgba(0, 15, 30, 0.9) !important;
    border: 1px solid #00ffff !important;
    color: #00ffff !important;
    font-family: monospace !important;
    border-radius: 2px !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4) !important;
}

.nasa-crosshair-tooltip::before {
    border-top-color: #00ffff !important;
}