/* =====================================================================
   YO8TNB — red/black neon theme
   Palette: void #0a0304, panel #150609, ember #ff1f3d, hot #ff5470,
            deep #5c0d17, text #f3e9ea, muted #9c7178
   Type: Orbitron (display/callsign), JetBrains Mono (data/readouts),
         Inter (body copy)
   ===================================================================== */

:root {
  --void:  #0a0304;
  --panel: #150609;
  --panel-2: #1c080c;
  --ember: #ff1f3d;
  --hot:   #ff5470;
  --deep:  #5c0d17;
  --text:  #f3e9ea;
  --muted: #a3767c;
  --line:  rgba(255, 31, 61, 0.28);
  --glow:  0 0 18px rgba(255, 31, 61, 0.55), 0 0 40px rgba(255, 31, 61, 0.18);
  --radius: 14px;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse 80% 60% at 75% 0%, rgba(92, 13, 23, 0.35), transparent 60%), var(--void);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

.scanline-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a { color: var(--hot); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, .brand-call {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.02em;
  margin: 0;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 3, 4, 0.85);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--ember); font-size: 1.1rem; text-shadow: var(--glow); }
.brand-mark.small { font-size: 0.9rem; }
.brand-call { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.main-nav a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.main-nav a:hover { color: var(--hot); text-shadow: 0 0 10px rgba(255,31,61,0.6); }
.nav-admin { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px !important; color: var(--text) !important; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hot); background: rgba(255, 31, 61, 0.06); margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: var(--glow); animation: pulse-dot 1.8s ease-in-out infinite; }

.hero-callsign {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--text);
  text-shadow: 0 0 30px rgba(255, 31, 61, 0.35);
}
.hero-callsign .glow { color: var(--ember); text-shadow: 0 0 22px rgba(255, 31, 61, 0.9), 0 0 60px rgba(255, 31, 61, 0.4); }

.hero-subline {
  margin-top: 14px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); font-size: 0.95rem;
}

.hero-facts { display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 26px 0 22px; font-size: 0.92rem; color: var(--muted); }
.hero-facts span strong { color: var(--text); font-weight: 600; }

.mode-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 600;
  padding: 6px 13px; border-radius: 7px; border: 1px solid var(--line); color: var(--text);
  background: rgba(255,255,255,0.02);
}
.tag.tag-ft { color: #6de6ff; border-color: rgba(109,230,255,0.35); }
.tag.tag-cw { color: #6dff9e; border-color: rgba(109,255,158,0.35); }
.tag.tag-ssb { color: #ffcf6d; border-color: rgba(255,207,109,0.35); }
.tag.tag-dx { color: #c9a3ff; border-color: rgba(201,163,255,0.35); }
.tag.tag-hot { color: var(--hot); border-color: var(--line); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.92rem;
  padding: 13px 22px; border-radius: 9px; border: 1px solid var(--line); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s;
}
.btn-primary { background: var(--ember); color: #1a0002; border-color: var(--ember); box-shadow: var(--glow); }
.btn-primary:hover { background: var(--hot); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,0.02); color: var(--text); }
.btn-ghost:hover { border-color: var(--ember); text-decoration: none; color: var(--hot); }

/* ---------- Status panel (signature element) ---------- */
.status-panel {
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  isolation: isolate;
}
.radar-rings {
  position: absolute; z-index: -1; top: -120px; right: -140px; width: 420px; height: 420px;
  pointer-events: none;
}
.radar-rings circle { fill: none; stroke: rgba(255,31,61,0.25); stroke-width: 1; }
.radar-rings .sweep { transform-origin: 210px 210px; animation: sweep 6s linear infinite; }

.status-panel-title {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.18em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 18px;
}
.status-panel-title .live { color: var(--ember); display: flex; align-items: center; gap: 6px; }
.status-panel-title .live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: var(--glow); animation: pulse-dot 1.8s ease-in-out infinite; }

.status-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed rgba(255,31,61,0.15); font-size: 0.92rem;
}
.status-row:last-of-type { border-bottom: none; }
.status-row .label { color: var(--muted); }
.status-row .value { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--text); text-align: right; }
.status-row .value.on { color: #6dff9e; }
.status-row .value.off { color: var(--muted); }
.status-row .value.accent { color: var(--hot); }

.status-cta {
  display: block; text-align: center; margin-top: 20px; padding: 13px;
  border: 1px solid var(--line); border-radius: 9px; color: var(--text);
  font-weight: 600; font-size: 0.9rem; background: rgba(255,31,61,0.08);
}
.status-cta:hover { background: rgba(255,31,61,0.16); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 1.7rem; margin-bottom: 8px; }
.section .lead { color: var(--muted); margin-bottom: 32px; max-width: 640px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.qso-table { width: 100%; border-collapse: collapse; font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; }
table.qso-table th, table.qso-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.qso-table th { color: var(--hot); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; background: rgba(255,31,61,0.05); }
table.qso-table tr:last-child td { border-bottom: none; }
table.qso-table tr:hover td { background: rgba(255,31,61,0.04); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; max-width: 560px; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.95rem;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--ember); }

.alert { padding: 14px 18px; border-radius: 9px; margin-bottom: 20px; font-size: 0.92rem; border: 1px solid; }
.alert-success { background: rgba(109,255,158,0.08); border-color: rgba(109,255,158,0.35); color: #6dff9e; }
.alert-error { background: rgba(255,31,61,0.1); border-color: var(--line); color: var(--hot); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 420px; margin: 90px auto; }
.auth-wrap .card { padding: 32px; }

/* ---------- Keyframes ---------- */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
