/* ═══════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════ */
:root {
  --black:     #080a0c;
  --deep:      #0d1117;
  --surface:   #111820;
  --panel:     #141c26;
  --panel-hover: #192230;
  --red:       #cc0000;
  --red-glow:  #ff1a1a;
  --red-dim:   #660000;
  --amber:     #e8a000;
  --amber-dim: #7a5400;
  --green:     #00cc66;
  --green-dim: #005528;
  --blue:      #0066ff;
  --cyan:      #00ccff;
  --orange:    #ff6600;
  --purple:    #aa55ff;
  --white:     #f0f2f4;
  --muted:     #6b7785;
  --border:    rgba(204,0,0,0.3);
  --border-amber: rgba(232,160,0,0.3);
  --border-faint: rgba(240,242,244,0.06);
}

/* ── Light mode overrides ── */
[data-theme="light"] {
  --black:     #f2f3f5;
  --deep:      #e8eaed;
  --surface:   #dfe1e5;
  --panel:     #ffffff;
  --panel-hover: #f5f5f5;
  --white:     #1a1a1a;
  --muted:     #5f6670;
  --border:    rgba(204,0,0,0.25);
  --border-amber: rgba(180,130,0,0.3);
  --border-faint: rgba(0,0,0,0.08);
}
[data-theme="light"] body {
  -webkit-font-smoothing: auto;
}
[data-theme="light"] body::before {
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
}
[data-theme="light"] body::after { opacity: 0.15; }
[data-theme="light"] .sitenav {
  background: rgba(242,243,245,0.96);
  border-bottom-color: rgba(204,0,0,0.2);
}
[data-theme="light"] .sitenav-links a {
  border-color: rgba(204,0,0,0.1);
}
[data-theme="light"] .sitenav-links a:hover {
  background: rgba(204,0,0,0.06);
}
[data-theme="light"] .ticker-wrap { background: var(--red); }
[data-theme="light"] .sources-list a {
  color: rgba(26,26,26,0.6);
  border-bottom-color: rgba(26,26,26,0.15);
}
[data-theme="light"] .footer-disclaimer {
  border-top-color: rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Noise grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
.sitenav {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: rgba(8,10,12,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(204,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  height: 44px;
  gap: 1rem;
}
.sitenav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.sitenav-logo span { color: var(--red-glow); }
.sitenav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.sitenav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0 12px;
  height: 44px;
  border-inline-end: 1px solid rgba(204,0,0,0.15);
  transition: color 0.2s, background 0.2s;
}
.sitenav-links a:first-child { border-inline-start: 1px solid rgba(204,0,0,0.15); }
.sitenav-links a:hover { color: var(--white); background: rgba(204,0,0,0.08); }
.sitenav-links a.active { color: var(--red-glow); }
.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-glow);
  flex-shrink: 0;
  animation: pulse-red 1s ease-in-out infinite;
}
.sitenav-time {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
  display: none;
}
@media (min-width: 440px) { .sitenav-time { display: block; } }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid rgba(107,119,133,0.25);
  color: var(--muted);
  font-size: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
}
.theme-toggle:hover {
  color: var(--white);
  border-color: rgba(107,119,133,0.5);
}

/* Language switcher */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-switcher-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid rgba(107,119,133,0.25);
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang-switcher-btn:hover { color: var(--white); border-color: rgba(107,119,133,0.5); }
.lang-switcher-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  min-width: 100px;
  display: none;
  z-index: 1100;
}
.lang-switcher:hover .lang-switcher-menu,
.lang-switcher:focus-within .lang-switcher-menu {
  display: block;
}
.lang-switcher-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-switcher-menu a:hover { background: rgba(204,0,0,0.08); color: var(--white); }
.lang-switcher-menu a.active { color: var(--red-glow); }

/* ═══════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════ */
.ticker-wrap {
  background: var(--red);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  position: relative;
  z-index: 900;
}
.ticker-inner {
  display: inline-block;
  animation: ticker 50s linear infinite;
}
.ticker-item {
  display: inline-block;
  padding: 0 2.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-sep {
  color: rgba(255,255,255,0.4);
  padding: 0 0.5rem;
}
@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ═══════════════════════════════════════════════
   SHARED SECTION
═══════════════════════════════════════════════ */
.section {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red-glow);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(32px, 8vw, 56px);
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1;
}

/* ═══════════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════════ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 1.5rem;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.footer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sources-list li {
  font-size: 11px;
}
.sources-list a {
  color: rgba(240,242,244,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(240,242,244,0.15);
  transition: color 0.2s, border-color 0.2s;
}
.sources-list a:hover {
  color: var(--amber);
  border-color: var(--amber);
}
.footer-disclaimer {
  margin-top: 1.5rem;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid rgba(107,119,133,0.2);
}

/* ═══════════════════════════════════════════════
   CORNER BRACKETS (decor)
═══════════════════════════════════════════════ */
.corner-box {
  position: relative;
}
.corner-box::before, .corner-box::after,
.corner-box > .corner-tr, .corner-box > .corner-bl {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--red);
  border-style: solid;
}
.corner-box::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.corner-box::after  { top: 0; right: 0; border-width: 2px 2px 0 0; }
.corner-box > .corner-tr { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.corner-box > .corner-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }

/* ═══════════════════════════════════════════════
   SHARED ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,26,26,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(255,26,26,0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 400px) {
  .section { padding: 2rem 1rem; }
}
