/* ============================================================
   DroneView Insights — Retro Cinematic Engine v2.0
   
   Color Palette & Ratios:
   40% — #2F485F  Navy Blue     (Primary / Backgrounds)
   30% — #00B0D5  Sky Cyan      (Headers / UI / Glow)
   15% — #6E7781  Storm Gray    (Borders / Secondary Text)
   10% — #EB6534  Sunset Orange (CTA / Alerts / Accents)
    5% — #F4EBD9  Golden Hour   (Highlights / Body Text)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --primary-navy:    #2F485F;
    --secondary-cyan:  #00B0D5;
    --tertiary-gray:   #6E7781;
    --accent-orange:   #EB6534;
    --accent-gold:     #F4EBD9;
    --deep-black:      #0a0f14;
    --glow-cyan:       rgba(0, 176, 213, 0.35);
    --glow-orange:     rgba(235, 101, 52, 0.35);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-black);
    color: var(--accent-gold);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.75;
    overflow-x: hidden;
    /* Subtle CRT body flicker — slow & non-distracting */
    animation: bodyFlicker 8s ease-in-out infinite;
}

/* ── CRT OVERLAY (full-page scanlines) ───────────────────── */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.07) 0px,
        rgba(0, 0, 0, 0.07) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9999;
}

@keyframes bodyFlicker {
    0%,  100% { opacity: 1.0; }
    92%        { opacity: 1.0; }
    93%        { opacity: 0.93; }
    94%        { opacity: 1.0; }
    96%        { opacity: 0.96; }
    97%        { opacity: 1.0; }
}

/* ── SCANLINE SWEEP ──────────────────────────────────────── */
.scanline-sweep {
    position: fixed;
    top: -5%;
    left: 0;
    width: 100%;
    height: 5%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 176, 213, 0.04),
        transparent
    );
    pointer-events: none;
    z-index: 9998;
    animation: sweepDown 6s linear infinite;
}

@keyframes sweepDown {
    from { top: -5%; }
    to   { top: 105%; }
}

/* ── TOP STATUS TICKER ───────────────────────────────────── */
.ticker-bar {
    background: var(--primary-navy);
    border-bottom: 1px solid var(--secondary-cyan);
    color: var(--secondary-cyan);
    font-size: 0.72em;
    letter-spacing: 1.5px;
    padding: 4px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-inner {
    display: inline-block;
    animation: tickerScroll 30s linear infinite;
}

@keyframes tickerScroll {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
}

/* ── SITE WRAPPER ────────────────────────────────────────── */
.site-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ── HEADER / HERO ───────────────────────────────────────── */
.site-header {
    text-align: center;
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--tertiary-gray);
    position: relative;
}

.site-header::before {
    content: "[ DRONEVIEW INSIGHTS ]";
    display: block;
    font-size: 0.65em;
    letter-spacing: 6px;
    color: var(--tertiary-gray);
    margin-bottom: 10px;
}

.logo-ascii {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.6em, 5vw, 3em);
    font-weight: 900;
    color: var(--secondary-cyan);
    text-shadow:
        0 0 8px  var(--glow-cyan),
        0 0 20px var(--glow-cyan),
        0 0 40px rgba(0, 176, 213, 0.15);
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.78em;
    color: var(--tertiary-gray);
    letter-spacing: 3px;
    margin-top: 6px;
    text-transform: uppercase;
}

.logo-tagline span {
    color: var(--accent-orange);
}

/* ── NAVIGATION ──────────────────────────────────────────── */
.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--tertiary-gray);
    margin-bottom: 30px;
}

.site-nav a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.8em;
    letter-spacing: 2px;
    padding: 5px 12px;
    border: 1px solid var(--tertiary-gray);
    transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--secondary-cyan);
    color: var(--deep-black);
    border-color: var(--secondary-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* ── COORDINATE / STATUS BAR ─────────────────────────────── */
.coord-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(47, 72, 95, 0.5);
    border: 1px solid var(--primary-navy);
    border-left: 3px solid var(--accent-orange);
    padding: 8px 14px;
    font-size: 0.72em;
    letter-spacing: 1px;
    color: var(--tertiary-gray);
    margin-bottom: 24px;
}

.coord-bar .coord-item span {
    color: var(--accent-orange);
}

/* ── HERO CINEMATIC BLOCK ────────────────────────────────── */
.hero-block {
    border: 1px solid var(--tertiary-gray);
    background: linear-gradient(
        160deg,
        rgba(47, 72, 95, 0.9) 0%,
        rgba(10, 15, 20, 0.95) 60%,
        rgba(47, 72, 95, 0.6) 100%
    );
    padding: 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 40px rgba(0, 176, 213, 0.05),
        0 0 20px rgba(0, 0, 0, 0.6);
}

/* Corner brackets — retro HUD feel */
.hero-block::before,
.hero-block::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--secondary-cyan);
    border-style: solid;
}

.hero-block::before {
    top: 8px; left: 8px;
    border-width: 2px 0 0 2px;
}

.hero-block::after {
    bottom: 8px; right: 8px;
    border-width: 0 2px 2px 0;
}

.hero-block h2 {
    font-family: 'Orbitron', monospace;
    font-size: 0.95em;
    color: var(--secondary-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 176, 213, 0.3);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.hero-block h2 .prompt {
    color: var(--accent-orange);
    margin-right: 6px;
}

/* ── GRID LAYOUT ─────────────────────────────────────────── */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .grid-2col { grid-template-columns: 1fr; }
}

/* ── PANEL / CARD ────────────────────────────────────────── */
.panel {
    border: 1px solid var(--tertiary-gray);
    background: rgba(10, 15, 20, 0.8);
    padding: 18px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.panel:hover {
    box-shadow: 0 0 16px var(--glow-cyan);
    border-color: var(--secondary-cyan);
}

.panel-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.75em;
    color: var(--secondary-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--tertiary-gray);
}

.panel-title .icon {
    color: var(--accent-orange);
    margin-right: 6px;
}

/* ── FLIGHT LOG / DATA READOUT ───────────────────────────── */
.data-readout {
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--accent-orange);
    padding: 12px 16px;
    font-size: 0.82em;
    line-height: 2;
    margin: 16px 0;
}

.data-readout .label {
    color: var(--tertiary-gray);
    display: inline-block;
    min-width: 160px;
}

.data-readout .value {
    color: var(--accent-gold);
}

.data-readout .value.active {
    color: var(--secondary-cyan);
    text-shadow: 0 0 6px var(--glow-cyan);
}

.data-readout .value.alert {
    color: var(--accent-orange);
    text-shadow: 0 0 6px var(--glow-orange);
}

/* ── ROUTE MAP (ASCII art travel path) ───────────────────── */
.route-map {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--tertiary-gray);
    padding: 16px;
    font-size: 0.78em;
    line-height: 1.9;
    margin: 16px 0;
    overflow-x: auto;
}

.route-map .node-active {
    color: var(--secondary-cyan);
    text-shadow: 0 0 8px var(--glow-cyan);
    font-weight: bold;
}

.route-map .node-complete {
    color: var(--tertiary-gray);
    text-decoration: line-through;
}

.route-map .node-next {
    color: var(--accent-orange);
}

.route-map .connector {
    color: var(--tertiary-gray);
}

/* ── BLINK CURSOR ────────────────────────────────────────── */
.cursor {
    display: inline-block;
    width: 9px;
    height: 1em;
    background: var(--secondary-cyan);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 6px var(--glow-cyan);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── CAPABILITY LIST ─────────────────────────────────────── */
.cap-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.cap-list li {
    padding: 6px 0;
    border-bottom: 1px dotted rgba(110, 119, 129, 0.3);
    font-size: 0.85em;
    color: var(--accent-gold);
}

.cap-list li::before {
    content: "▸ ";
    color: var(--accent-orange);
}

/* ── SIGNAL STRENGTH BARS ────────────────────────────────── */
.signal-bars {
    display: inline-flex;
    gap: 3px;
    align-items: flex-end;
    height: 14px;
    vertical-align: middle;
    margin-left: 6px;
}

.signal-bars span {
    display: block;
    width: 4px;
    background: var(--secondary-cyan);
    box-shadow: 0 0 4px var(--glow-cyan);
}

.signal-bars span:nth-child(1) { height: 4px; }
.signal-bars span:nth-child(2) { height: 7px; }
.signal-bars span:nth-child(3) { height: 10px; }
.signal-bars span:nth-child(4) { height: 14px; opacity: 0.4; }

/* ── CALL TO ACTION BUTTON ───────────────────────────────── */
.btn-cta {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    font-family: 'Orbitron', monospace;
    font-size: 0.72em;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
}

.btn-cta:hover {
    background: var(--accent-orange);
    color: var(--deep-black);
    box-shadow: 0 0 18px var(--glow-orange);
}

.btn-cta-cyan {
    border-color: var(--secondary-cyan);
    color: var(--secondary-cyan);
}

.btn-cta-cyan:hover {
    background: var(--secondary-cyan);
    color: var(--deep-black);
    box-shadow: 0 0 18px var(--glow-cyan);
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.retro-divider {
    border: none;
    border-top: 1px dashed var(--tertiary-gray);
    margin: 28px 0;
    position: relative;
}

.retro-divider::after {
    content: attr(data-label);
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--deep-black);
    padding: 0 12px;
    font-size: 0.65em;
    color: var(--tertiary-gray);
    letter-spacing: 3px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--tertiary-gray);
    margin-top: 50px;
    padding-top: 16px;
    text-align: center;
    font-size: 0.68em;
    color: var(--tertiary-gray);
    letter-spacing: 2px;
    line-height: 2;
}

.site-footer .footer-brand {
    color: var(--secondary-cyan);
    font-family: 'Orbitron', monospace;
    font-size: 1.1em;
}

/* ── GLOBAL LINK STYLE ───────────────────────────────────── */
a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 6px var(--glow-orange);
}

/* ── UTILITY ─────────────────────────────────────────────── */
.text-cyan   { color: var(--secondary-cyan); }
.text-orange { color: var(--accent-orange);  }
.text-gray   { color: var(--tertiary-gray);  }
.text-gold   { color: var(--accent-gold);    }
.text-small  { font-size: 0.78em;            }
.text-center { text-align: center;           }
.mt-sm       { margin-top: 10px;             }
.mt-md       { margin-top: 20px;             }
.mt-lg       { margin-top: 36px;             }
