/* Styles for the KML converter pages (en + fr). Tokens mirror the home page. */
:root {
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    background-color: #0b1326;
    color: #dae2fd;
    font-family: 'Be Vietnam Pro', sans-serif;
    overflow-x: hidden;
}
.headline-font { font-family: 'Space Grotesk', sans-serif; }
.grid-pattern {
    background-image: radial-gradient(circle, #259df4 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Browser surfaces */
::selection { background: rgba(37, 157, 244, 0.4); color: #ffffff; }
:focus-visible { outline: 2px solid #9acbff; outline-offset: 3px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: #2d3449 #0b1326; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b1326; }
::-webkit-scrollbar-thumb { background: #2d3449; border-radius: 9999px; }

/* Nav scroll state (matches home) */
nav { transition: background-color 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart); }
nav.nav-scrolled { background-color: rgba(11, 19, 38, 0.9) !important; box-shadow: 0 0 50px rgba(37, 157, 244, 0.08); }

/* Entrance, once */
@keyframes float-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-float-in { animation: float-in 0.7s var(--ease-out-expo) both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Dropzone */
#dropzone {
    transition: background-color 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}
#dropzone:hover, #dropzone.is-drag, #dropzone:focus-within {
    background-color: rgba(37, 157, 244, 0.08);
    border-color: rgba(154, 203, 255, 0.7);
}
#dropzone.is-drag { transform: scale(1.01); }
#dropzone:focus-within { outline: 2px solid #9acbff; outline-offset: 3px; }
#dropzone[aria-busy="true"] { opacity: 0.6; }

/* Route plot: lines draw in, stops pop on */
@keyframes kml-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.kml-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: kml-draw 1.1s var(--ease-out-expo) both; animation-delay: var(--d, 0s); }
@keyframes kml-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.kml-dot { transform-box: fill-box; transform-origin: center; animation: kml-pop 0.45s var(--ease-out-expo) both; animation-delay: var(--d, 0s); }
@keyframes kml-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.kml-leg { animation: kml-rise 0.6s var(--ease-out-expo) both; animation-delay: var(--d, 0s); }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
