/**
 * Launch Points — Custom Styles
 *
 * Supplements Tailwind with the Orbital Telemetry effects that can't be
 * expressed as utilities: glass panels, status glows, waveform, grid
 * overlays, the simulator canvas, and print styles.
 */

/* ═══ Base ═══ */
html { scroll-behavior: smooth; }
body { background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 240, 255, 0.06), transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgba(255, 87, 34, 0.05), transparent 60%),
    #051424;
}

:focus-visible { outline: 1.5px solid #00f0ff; outline-offset: 2px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ═══ Precision Glass Panels ═══ */
.glass {
    background: rgba(13, 18, 31, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.12);
}
.glass-2 {
    background: rgba(21, 28, 46, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 240, 255, 0.20);
}

/* ═══ Status Glows (reserved for active states) ═══ */
.glow-cyan  { box-shadow: 0 0 24px -4px rgba(0, 240, 255, 0.30); }
.glow-flame { box-shadow: 0 0 24px -4px rgba(255, 87, 34, 0.35); }
.glow-go    { box-shadow: 0 0 24px -4px rgba(16, 185, 129, 0.25); }
.text-glow-cyan { text-shadow: 0 0 18px rgba(0, 240, 255, 0.45); }

/* ═══ Pulsating Live Beacon ═══ */
.beacon { position: relative; }
.beacon::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 9999px;
    background: currentColor;
    animation: beacon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes beacon-ping {
    0%   { transform: scale(1);   opacity: 0.7; }
    80%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ═══ Countdown HUD segments ═══ */
.cd-seg {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-variant-numeric: tabular-nums;
    background: #1c2b3c;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    color: #d4e4fa;
}
.cd-colon { color: #849495; }

/* ═══ Waveform visualizer ═══ */
.wave-bar {
    width: 3px;
    border-radius: 2px 2px 0 0;
    background: #7df4ff;
    transform-origin: bottom;
}
.wave-bar.playing { animation: wave 1.1s ease-in-out infinite; background: #00f0ff; }
@keyframes wave {
    0%, 100% { transform: scaleY(0.35); }
    50%      { transform: scaleY(1); }
}

/* ═══ Grid + scanning overlays ═══ */
.grid-overlay {
    background-image:
        linear-gradient(rgba(219, 252, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(219, 252, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}
.scanline::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

/* ═══ Filter / tab chips ═══ */
.filter-chip.is-active {
    background: #00f0ff;
    color: #006970;
    font-weight: 600;
}
.filter-chip[data-filter].is-active { box-shadow: 0 0 16px -4px rgba(0, 240, 255, 0.5); }
.billing-btn.is-active {
    background: #1c2b3c;
    color: #d4e4fa;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.is-hidden { display: none !important; }

/* ═══ Timeline ═══ */
.timeline-rail { position: relative; }
.timeline-rail::before {
    content: "";
    position: absolute; left: 11px; top: 4px; bottom: 4px;
    width: 2px; background: rgba(148, 163, 184, 0.2);
}

/* ═══ Trajectory simulator canvas ═══ */
#sim-canvas { display: block; width: 100%; height: 100%; }

/* ═══ Modal ═══ */
.modal-open { overflow: hidden; }
#sim-modal.is-hidden { display: none; }

/* ═══ Chat scroll area ═══ */
.chat-scroll { scrollbar-width: thin; }

/* ═══ Range sliders (simulator controls) ═══ */
input[type="range"].site-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%; height: 4px; border-radius: 9999px;
    background: #273647; outline: none;
}
input[type="range"].site-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px; border-radius: 9999px;
    background: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    cursor: pointer;
}
input[type="range"].site-range::-moz-range-thumb {
    width: 16px; height: 16px; border: none; border-radius: 9999px;
    background: #00f0ff; cursor: pointer;
}

/* ═══ Print ═══ */
@media print {
    header, footer, .no-print, #mobile-menu, #sim-modal { display: none !important; }
    body { background: #fff !important; }
    .glass, .glass-2 { background: #fff !important; border-color: #ddd !important; }
}
