/* WARP HUD — clean, prominent destination popup + pitstop dots
   Vervangt eerdere cockpit-frame poging die niet zichtbaar was (z-index conflict
   met #warp-canvas op 9998). Deze versie: simpel, leesbaar, altijd zichtbaar
   tijdens warp.

   JS API behouden:
     - #hud-big-destination     destination tekst (h2)
     - .warp-stop[data-section] route stops met .is-active / .is-past
     - #hud-velocity / #hud-status  velocity + drive status readouts
*/

/* ============================================================
   ROOT — full-viewport overlay, BOVEN canvas (z-index > 9998)
   ============================================================ */

.warp-hud {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.xray .warp-hud {
    opacity: 1;
    visibility: visible;
}

/* Neutralise legacy panel markup zodat geen residual UI doorlekt */
.warp-hud .warp-stage,
.warp-hud .warp-bottom,
.warp-hud .rocket-cockpit,
.warp-hud .warp-eyebrow,
.warp-hud .warp-hint,
.warp-hud .warp-velocity-label,
.warp-hud .warp-velocity-value,
.warp-hud .warp-velocity-status,
.warp-hud .warp-big {
    display: none !important;
}

/* ============================================================
   BIG DESTINATION — prominent popup centered, telt sectie-naam
   ============================================================ */

/* Bovenste destination popup verwijderd op Robin's verzoek - pitstop pill onderaan
   communiceert al duidelijk waar de raket landt. */
#hud-big-destination,
#hud-big-destination::before,
#hud-big-destination::after {
    display: none !important;
}

@keyframes warpDestPulse {
    0% {
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(0.88);
        filter: brightness(0.75);
    }
    35% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02);
        filter: brightness(1.2);
    }
    100% {
        opacity: 0.92;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
}

/* ============================================================
   PITSTOP DOTS — onderaan center, 5 dots horizontaal
   ============================================================ */

#warp-route {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    list-style: none;
    margin: 0;
    padding: 1.25rem 2.75rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(4, 10, 18, 0.42);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    box-shadow:
        0 8px 32px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(46, 242, 160, 0.04) inset;
}

.warp-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    cursor: default;
}

.warp-stop::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 100%;
    width: 3rem;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.06));
}

.warp-stop:last-child::after {
    display: none;
}

.warp-stop-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.warp-stop.is-past .warp-stop-dot {
    background: rgba(46, 242, 160, 0.55);
    border-color: rgba(46, 242, 160, 0.6);
    box-shadow: 0 0 4px rgba(46, 242, 160, 0.3);
}

.warp-stop.is-active .warp-stop-dot {
    width: 12px;
    height: 12px;
    background: #2ef2a0;
    border-color: rgba(46, 242, 160, 0.9);
    box-shadow:
        0 0 0 3px rgba(46, 242, 160, 0.15),
        0 0 10px rgba(46, 242, 160, 0.5);
    animation: warpDotPulse 1.8s ease-in-out infinite;
}

@keyframes warpDotPulse {
    0%, 100% {
        box-shadow:
            0 0 0 3px rgba(46, 242, 160, 0.15),
            0 0 10px rgba(46, 242, 160, 0.5);
    }
    50% {
        box-shadow:
            0 0 0 5px rgba(46, 242, 160, 0.1),
            0 0 16px rgba(46, 242, 160, 0.7);
    }
}

.warp-stop-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
}

.warp-stop.is-past .warp-stop-label {
    color: rgba(46, 242, 160, 0.55);
}

.warp-stop.is-active .warp-stop-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(46, 242, 160, 0.4);
}

/* RELEASE SPACE label verwijderd op Robin's verzoek */
.warp-hud::after {
    content: none;
}

/* Tijdelijke clean state - cockpit vibes worden door design agents
   herontworpen vanaf scratch met echte UI/UX skill. */

/* ============================================================
   VELOCITY readout — rechtsonder discreet
   ============================================================ */

/* Velocity + status readout weggehaald op Robin's verzoek */
#hud-velocity,
#hud-status {
    display: none !important;
}

/* Legacy hidden span - blijft hidden */
#hud-destination[hidden],
#hud-destination[aria-hidden="true"] {
    display: none;
}

/* ============================================================
   MOBILE — smaller everything, pitstops geen text-labels meer
   ============================================================ */

@media (max-width: 768px) {
    #hud-big-destination {
        font-size: clamp(42px, 12vw, 64px);
        padding: 1rem 2rem;
        top: 26%;
    }

    #hud-big-destination::before {
        font-size: 0.7rem;
        letter-spacing: 0.5em;
        top: -1.2rem;
    }

    #warp-route {
        gap: 1.25rem;
        padding: 1rem 1.5rem;
        bottom: 18%;
    }

    .warp-stop::after {
        width: 1.25rem;
    }

    .warp-stop-label {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    .warp-hud::after {
        font-size: 0.6rem;
        letter-spacing: 0.3em;
        bottom: 10%;
    }

    #hud-velocity {
        font-size: 1rem;
        right: 1rem;
        bottom: 5%;
    }

    #hud-status {
        font-size: 0.55rem;
        right: 1rem;
        bottom: 9%;
    }
}

@media (max-width: 480px) {
    .warp-stop-label {
        display: none;
    }
    #warp-route {
        gap: 0.85rem;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    #hud-big-destination,
    .warp-stop.is-active .warp-stop-dot {
        animation: none;
    }
    #hud-big-destination {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
