/* ============================================================
   SpeedWire v3 — Premium Dark Editorial Stylesheet
   ============================================================ */

/* ----- CSS Custom Properties ----- */
:root {
  /* Dark theme (default) */
  --bg-primary: #030712;
  --bg-secondary: #0a0f1e;
  --bg-card: #0d1220;
  --bg-card-hover: #111827;
  --border-subtle: rgba(255,255,255,0.08);
  --border-hover: rgba(255,69,0,0.3);
  --text-primary: #f0f0f0;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-cyan: #FF4500;
  --accent-cyan-glow: rgba(255,69,0,0.15);
  --accent-cyan-dim: rgba(255,69,0,0.08);
  --accent-amber: #F5A623;
  --accent-pink: #EC4899;
  --accent-blue: #3B82F6;
  --accent-gray: #6B7280;
  --accent-gradient: linear-gradient(135deg, #FF4500, #CC2200);
  --radius-card: 16px;
  --radius-pill: 9999px;
  --radius-input: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-card-hover: 0 8px 30px rgba(255,69,0,0.08);
  --shadow-glow: 0 0 20px rgba(255,69,0,0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-height: 64px;
  --max-width: 1280px;
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Light theme */
[data-theme="light"] {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;
  --border-subtle: rgba(0,0,0,0.1);
  --border-hover: rgba(220,50,0,0.4);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --shadow-card: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 12px 36px rgba(220,50,0,0.1), 0 0 0 1px rgba(220,50,0,0.15);
  --shadow-glow: 0 0 20px rgba(220,50,0,0.08);
  --accent-cyan-glow: rgba(220,50,0,0.12);
  --accent-cyan-dim: rgba(220,50,0,0.06);
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #ff6633;
}

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: rgba(255,69,0,0.25);
  color: var(--text-primary);
}

/* ----- Utility Classes ----- */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: auto;
  min-height: var(--header-height);
  background: rgba(3,7,18,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base);
}

[data-theme="light"] .site-header {
  background: rgba(248,249,250,0.88);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
  /* Blend black bg away on dark theme */
  mix-blend-mode: lighten;
}

[data-theme="light"] .header-logo-img {
  mix-blend-mode: normal;
  background: #0a0f1e;
  padding: 4px 8px;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-event {
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan), 0 0 16px rgba(255,69,0,0.3);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-cyan), 0 0 16px rgba(255,69,0,0.3); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--accent-cyan), 0 0 8px rgba(255,69,0,0.15); }
}

.header-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: none;
}

@media (min-width: 768px) {
  .header-tagline { display: block; }
}

/* Nav */
.header-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-cyan-dim);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (min-width: 768px) {
  .header-actions { margin-left: 8px; }
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Mobile Menu Button */
.mobile-menu-btn {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav.open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav .nav-link {
  padding: 10px 0;
  font-size: 16px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 8px;
  min-height: calc(100vh - var(--header-height) - 200px);
}

/* Page visibility */
.page { display: none; }
.page.active { display: block; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 80px 0 56px; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(255,69,0,0.15);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.hero-badge-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
}

/* Decorative wires */
.hero-wires {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  overflow: hidden;
}

.wire {
  position: absolute;
  height: 2px;
  right: -10%;
  opacity: 0.2;
}

.wire-1 {
  top: 30%;
  width: 60%;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: wire-slide 6s ease-in-out infinite;
}
.wire-2 {
  top: 50%;
  width: 45%;
  background: linear-gradient(90deg, transparent, var(--accent-amber), transparent);
  animation: wire-slide 8s ease-in-out infinite 2s;
}
.wire-3 {
  top: 70%;
  width: 55%;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: wire-slide 7s ease-in-out infinite 4s;
}

@keyframes wire-slide {
  0%, 100% { transform: translateX(0); opacity: 0.12; }
  50% { transform: translateX(-20px); opacity: 0.28; }
}

/* ============================================================
   EMAIL CAPTURE
   ============================================================ */
.email-capture {
  max-width: 520px;
}

.email-capture-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

@media (max-width: 520px) {
  .email-capture-form {
    flex-direction: column;
  }
}

.email-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.email-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.email-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.email-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow), var(--shadow-glow);
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent-gradient);
  color: #030712;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-input);
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  flex-shrink: 0;
}

.email-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,69,0,0.25);
}

.email-submit-btn:active {
  transform: translateY(0);
}

.email-success {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(255,69,0,0.2);
  border-radius: var(--radius-input);
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 500;
}

.email-success.show {
  display: block;
  animation: fadeSlideUp 0.3s ease;
}

.email-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

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

/* ============================================================
   FILTER SECTION
   ============================================================ */
.filter-section {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 7px;
  flex-shrink: 0;
  min-width: 72px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--accent-cyan-dim);
}

.filter-pill.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

/* Category-specific pill colors */
.filter-pill[data-category="F1"].active {
  border-color: #FF4500;
  color: #FF4500;
  background: rgba(255,69,0,0.1);
}
.filter-pill[data-category="IndyCar"].active {
  border-color: #0066FF;
  color: #0066FF;
  background: rgba(0,102,255,0.1);
}
.filter-pill[data-category="NASCAR"].active {
  border-color: #FFD700;
  color: #FFD700;
  background: rgba(255,215,0,0.1);
}
.filter-pill[data-category="Sports Cars"].active {
  border-color: #00CC66;
  color: #00CC66;
  background: rgba(0,204,102,0.1);
}
.filter-pill[data-category="MotoGP & 2-Wheels"].active {
  border-color: #FF6B35;
  color: #FF6B35;
  background: rgba(255,107,53,0.1);
}
.filter-pill[data-category="Open Wheel"].active {
  border-color: #9B59B6;
  color: #9B59B6;
  background: rgba(155,89,182,0.1);
}
.filter-pill[data-category="Rally & Off-Road"].active {
  border-color: #8B6914;
  color: #8B6914;
  background: rgba(139,105,20,0.1);
}
.filter-pill[data-category="Karting"].active {
  border-color: #00BCD4;
  color: #00BCD4;
  background: rgba(0,188,212,0.1);
}
.filter-pill[data-category="Sim Racing"].active {
  border-color: #E91E63;
  color: #E91E63;
  background: rgba(233,30,99,0.1);
}
.filter-pill[data-category="Motorsport News"].active {
  border-color: var(--accent-gray);
  color: var(--text-secondary);
  background: rgba(107,114,128,0.1);
}

/* Search */
.search-row {
  margin-top: 4px;
}

.search-wrap {
  position: relative;
  max-width: 360px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.stat-value {
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  color: var(--border-subtle);
}

/* ============================================================
   LAYOUT SWITCHER
   ============================================================ */
.layout-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-input);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  width: fit-content;
}

.layout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.layout-btn:hover {
  color: var(--text-secondary);
}

.layout-btn.active {
  color: var(--text-primary);
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="light"] .layout-btn.active {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.layout-btn svg {
  flex-shrink: 0;
}

/* ============================================================
   CONTENT AREA — Layouts
   ============================================================ */
.content-area {
  padding-bottom: 64px;
}

.layout-cards,
.layout-wire,
.layout-dashboard {
  display: none;
}

.layout-cards.active,
.layout-wire.active,
.layout-dashboard.active {
  display: block;
}

/* ============================================================
   CARDS LAYOUT
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Story Card */
.story-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.story-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.card-category[data-cat="F1"] {
  color: #FF4500;
  background: rgba(255,69,0,0.1);
  border: 1px solid rgba(255,69,0,0.2);
}
.card-category[data-cat="IndyCar"] {
  color: #0066FF;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.2);
}
.card-category[data-cat="NASCAR"] {
  color: #FFD700;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.2);
}
.card-category[data-cat="Sports Cars"] {
  color: #00CC66;
  background: rgba(0,204,102,0.1);
  border: 1px solid rgba(0,204,102,0.2);
}
.card-category[data-cat="MotoGP & 2-Wheels"] {
  color: #FF6B35;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.2);
}
.card-category[data-cat="Open Wheel"] {
  color: #9B59B6;
  background: rgba(155,89,182,0.1);
  border: 1px solid rgba(155,89,182,0.2);
}
.card-category[data-cat="Rally & Off-Road"] {
  color: #8B6914;
  background: rgba(139,105,20,0.1);
  border: 1px solid rgba(139,105,20,0.2);
}
.card-category[data-cat="Karting"] {
  color: #00BCD4;
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.2);
}
.card-category[data-cat="Sim Racing"] {
  color: #E91E63;
  background: rgba(233,30,99,0.1);
  border: 1px solid rgba(233,30,99,0.2);
}
.card-category[data-cat="Motorsport News"] {
  color: var(--accent-gray);
  background: rgba(107,114,128,0.1);
  border: 1px solid rgba(107,114,128,0.2);
}

.card-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.card-source {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-cyan-dim);
  color: var(--text-muted);
  text-transform: lowercase;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.story-card:hover .card-tag {
  color: var(--accent-cyan);
  background: rgba(255,69,0,0.12);
}

/* ============================================================
   WIRE LAYOUT
   ============================================================ */
.wire-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .wire-container {
    grid-template-columns: 1fr 260px;
  }
}

.wire-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Wire Item */
.wire-item {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.wire-item:hover {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.wire-item.expanded {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.wire-item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wire-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-top: 7px;
  flex-shrink: 0;
}

.wire-item-dot[data-cat="IndyCar"] { background: #0066FF; }
.wire-item-dot[data-cat="NASCAR"] { background: #FFD700; }
.wire-item-dot[data-cat="Sports Cars"] { background: #00CC66; }
.wire-item-dot[data-cat="MotoGP & 2-Wheels"] { background: #FF6B35; }
.wire-item-dot[data-cat="Open Wheel"] { background: #9B59B6; }
.wire-item-dot[data-cat="Rally & Off-Road"] { background: #8B6914; }
.wire-item-dot[data-cat="Karting"] { background: #00BCD4; }
.wire-item-dot[data-cat="Sim Racing"] { background: #E91E63; }
.wire-item-dot[data-cat="Motorsport News"] { background: var(--accent-gray); }

.wire-item-content {
  flex: 1;
  min-width: 0;
}

.wire-item-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 2px;
}

.wire-item-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.wire-item-meta .meta-sep {
  color: var(--border-subtle);
}

.wire-item-body {
  display: none;
  padding: 12px 0 4px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.wire-item.expanded .wire-item-body {
  display: block;
  animation: fadeSlideUp 0.2s ease;
}

.wire-item-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-top: 8px;
}

.wire-item-link:hover {
  text-decoration: underline;
}

.wire-item-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

/* Wire Sidebar */
.wire-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.source-list {
  list-style: none;
}

.source-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-list li:last-child {
  border-bottom: none;
}

.source-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .dashboard-grid { grid-template-columns: repeat(3, 1fr); }
}

.dashboard-column {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.dashboard-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-column-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dashboard-column-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--accent-cyan-dim);
  border-radius: var(--radius-pill);
}

.dashboard-items {
  padding: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.dashboard-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.dashboard-item:hover {
  background: var(--bg-card-hover);
}

.dashboard-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.4;
}

.dashboard-item-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.dashboard-item-body {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.dashboard-item.expanded .dashboard-item-body {
  display: block;
  animation: fadeSlideUp 0.2s ease;
}

.dashboard-item-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-top: 6px;
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.15; }
}

.skeleton {
  background: var(--border-subtle);
  border-radius: 6px;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}

/* Card Skeleton */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
}

.skeleton-pill {
  width: 80px;
  height: 22px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.skeleton-title {
  height: 18px;
  width: 90%;
  margin-bottom: 8px;
}

.skeleton-title-short {
  height: 18px;
  width: 60%;
  margin-bottom: 14px;
}

.skeleton-line {
  height: 14px;
  width: 100%;
  margin-bottom: 6px;
}

.skeleton-line-short {
  height: 14px;
  width: 75%;
  margin-bottom: 16px;
}

.skeleton-footer {
  height: 12px;
  width: 40%;
  margin-top: auto;
  padding-top: 12px;
}

/* Wire Skeleton */
.skeleton-wire-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.skeleton-wire-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-wire-content {
  flex: 1;
}

.skeleton-wire-title {
  height: 16px;
  width: 70%;
  margin-bottom: 4px;
}

.skeleton-wire-meta {
  height: 12px;
  width: 35%;
}

.skeleton-wire-time {
  width: 50px;
  height: 12px;
  flex-shrink: 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

@media (min-width: 768px) {
  .page-content { padding: 64px 0 80px; }
}

.page-header {
  margin-bottom: 48px;
}

.page-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-header-wire {
  width: 80px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* How It Works */
.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent-cyan);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sources Grid */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .sources-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .sources-grid { grid-template-columns: repeat(4, 1fr); }
}

.source-card {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.source-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.source-card::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
}

/* Community-submitted sources get a slightly different indicator */
.source-card.source-community::before {
  background: #F5A623;
}
.source-card.source-community {
  border-color: rgba(245, 166, 35, 0.15);
}

/* Owner Badge */
.about-owner {
  text-align: center;
  padding: 48px 32px;
  background: #0a0e1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

.about-owner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

[data-theme="light"] .about-owner {
  background: #111827;
}

.owner-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.gmg-logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  mix-blend-mode: lighten;
}

.owner-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.owner-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.about-owner p {
  max-width: 440px;
  margin: 0 auto;
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.7;
}

/* ============================================================
   NEWSLETTER PAGE
   ============================================================ */
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .newsletter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
}

.newsletter-info h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.newsletter-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.newsletter-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nl-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nl-feature svg {
  flex-shrink: 0;
}

/* Newsletter Form Card */
.newsletter-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group .required {
  color: var(--accent-cyan);
}

.form-group .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.newsletter-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent-gradient);
  color: #030712;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-input);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.newsletter-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,69,0,0.25);
}

.newsletter-submit-btn:active {
  transform: translateY(0);
}

.newsletter-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(255,69,0,0.2);
  border-radius: var(--radius-input);
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.newsletter-success.show {
  display: block;
  animation: fadeSlideUp 0.3s ease;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  margin-top: 48px;
}

[data-theme="light"] .site-footer {
  background: #111827;
  border-top-color: rgba(255,255,255,0.05);
}

[data-theme="light"] .site-footer .footer-copy,
[data-theme="light"] .site-footer .footer-rss,
[data-theme="light"] .site-footer .footer-owner {
  color: #6b7280;
}

[data-theme="light"] .site-footer .footer-links a {
  color: #9ca3af;
}

[data-theme="light"] .site-footer .footer-links a:hover {
  color: var(--accent-cyan);
}

[data-theme="light"] .site-footer .footer-divider {
  background: rgba(255,255,255,0.08);
}

[data-theme="light"] .footer-logo-img,
[data-theme="light"] .footer-gmg-logo {
  mix-blend-mode: lighten;
  background: transparent;
  padding: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 4px;
  mix-blend-mode: lighten;
}

[data-theme="light"] .footer-logo-img {
  mix-blend-mode: normal;
  background: #0a0f1e;
  padding: 3px 6px;
  border-radius: 6px;
}

.footer-gmg {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.footer-gmg-logo {
  height: 40px;
  width: auto;
  border-radius: 4px;
  mix-blend-mode: lighten;
}

[data-theme="light"] .footer-gmg-logo {
  mix-blend-mode: normal;
  background: #111827;
  padding: 3px 6px;
  border-radius: 6px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-wordmark .logo-event {
  color: var(--text-primary);
}

.footer-owner {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 24px 0;
}

/* Footer Social Links */
.footer-socials {
  text-align: center;
  margin-top: 28px;
}

.footer-socials-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.footer-socials-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-socials-icons a:hover {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

[data-theme="light"] .footer-socials-icons a {
  background: rgba(255,255,255,0.1);
  color: #9ca3af;
}

[data-theme="light"] .footer-socials-icons a:hover {
  background: rgba(255,69,0,0.15);
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-rss {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   SUBMIT NEWS PAGE
   ============================================================ */
.submit-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 40px;
}

.submit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .submit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.submit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px;
  position: relative;
}

.submit-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.submit-card:last-child .submit-card-icon {
  background: rgba(245,166,35,0.08);
}

.submit-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.submit-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.submit-form .form-group {
  margin-bottom: 16px;
}

.submit-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.submit-form input,
.submit-form textarea,
.submit-form select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.submit-form input:focus,
.submit-form textarea:focus,
.submit-form select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.submit-form textarea {
  resize: vertical;
  min-height: 72px;
}

.submit-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-gradient);
  color: #030712;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: 8px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,69,0,0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn-amber {
  background: linear-gradient(135deg, #F5A623, #E8930C);
}

.submit-btn-amber:hover {
  box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}

.submit-success {
  display: none;
  font-size: 14px;
  color: var(--accent-cyan);
  padding: 16px;
  border: 1px solid rgba(255,69,0,0.2);
  border-radius: var(--radius-input);
  background: rgba(255,69,0,0.05);
  text-align: center;
  margin-top: 16px;
}

.submit-success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

.submit-guidelines {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px;
}

.submit-guidelines h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.submit-guidelines ul {
  list-style: none;
  padding: 0;
}

.submit-guidelines li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.submit-guidelines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.submit-guidelines li:last-child {
  margin-bottom: 0;
}

/* --- Article Type Toggle --- */
.article-type-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.toggle-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-btn.active {
  background: var(--accent-cyan);
  color: #000;
}
.toggle-btn:not(.active):hover {
  background: rgba(0, 230, 200, 0.1);
  color: var(--text-primary);
}

/* --- PDF Dropzone --- */
.pdf-dropzone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pdf-dropzone:hover,
.pdf-dropzone.drag-over {
  border-color: var(--accent-cyan);
  background: rgba(0, 230, 200, 0.05);
}
.pdf-dropzone svg {
  margin-bottom: 12px;
  opacity: 0.5;
}
.pdf-dropzone.drag-over svg {
  opacity: 1;
  stroke: var(--accent-cyan);
}
.dropzone-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.dropzone-browse {
  color: var(--accent-cyan);
  text-decoration: underline;
  cursor: pointer;
}
.dropzone-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- PDF File Info --- */
.pdf-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0, 230, 200, 0.08);
  border: 1px solid rgba(0, 230, 200, 0.2);
  border-radius: 8px;
  margin-top: 8px;
}
.pdf-file-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.pdf-remove-btn:hover {
  color: #ef4444;
}
.pdf-extract-status {
  font-size: 13px;
  color: var(--accent-cyan);
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(0, 230, 200, 0.05);
  border-radius: 6px;
}

/* ============================================================
   EMPTY STATE / NO RESULTS
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL BAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.story-card {
  animation: staggerFadeIn 0.4s ease backwards;
}

.story-card:nth-child(1) { animation-delay: 0ms; }
.story-card:nth-child(2) { animation-delay: 50ms; }
.story-card:nth-child(3) { animation-delay: 100ms; }
.story-card:nth-child(4) { animation-delay: 150ms; }
.story-card:nth-child(5) { animation-delay: 200ms; }
.story-card:nth-child(6) { animation-delay: 250ms; }
.story-card:nth-child(7) { animation-delay: 300ms; }
.story-card:nth-child(8) { animation-delay: 350ms; }
.story-card:nth-child(9) { animation-delay: 400ms; }

.wire-item {
  animation: staggerFadeIn 0.3s ease backwards;
}

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 767px) {
  .hero { padding: 40px 0 32px; }
  .hero-heading { margin-bottom: 14px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 28px; }
  .hero-wires { display: none; }
  .filter-label { min-width: 60px; font-size: 10px; }
  .stats-row { font-size: 11px; }
  .layout-btn span { display: none; }
  .layout-btn { padding: 7px 12px; }
  .page-content { padding: 32px 0 48px; }
  .newsletter-form-card { padding: 24px; }
  .wire-sidebar { display: none; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .main-content { padding: 0 16px; }
  .footer-inner { padding: 32px 16px 24px; }
  .hero-heading { font-size: 36px; }
  .filter-row { gap: 8px; }
  .filter-pills { gap: 4px; }
  .filter-pill { font-size: 12px; padding: 4px 10px; }
  .cards-grid { gap: 14px; }
  .story-card { padding: 18px; }
}

/* ============================================================
   SIGNAL PULSE SVG (Header animation)
   ============================================================ */
.signal-pulse {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Print */
@media print {
  .site-header, .filter-section, .layout-switcher, .email-capture, .hero-wires,
  .wire-sidebar, .site-footer { display: none; }
  body { background: white; color: black; }
  .story-card { break-inside: avoid; border: 1px solid #ddd; }
}

/* ============================================================
   BRIEFING PLAYER
   ============================================================ */
.briefing-player {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0;
  padding: 12px 24px;
  margin: 0 auto;
  position: relative;
  z-index: 99;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  overflow: hidden;
}



/* Today's episode — glowing left border + subtle gradient bg */
.briefing-player.briefing-today {
  border-left: 3px solid var(--accent-cyan);
  background: linear-gradient(135deg, rgba(255,69,0,0.06) 0%, transparent 60%);
  box-shadow: 0 0 20px rgba(255,69,0,0.08);
}

/* Older episode — muted style */
.briefing-player.briefing-old {
  opacity: 0.75;
  border-color: var(--border-subtle);
}
.briefing-player.briefing-old:hover {
  opacity: 1;
}

/* Collapsed state (yesterday) — compact but still playable */
.briefing-player.briefing-collapsed .briefing-progress {
  display: none;
}
.briefing-player.briefing-collapsed .briefing-speed-btn {
  display: none;
}
.briefing-player.briefing-collapsed .briefing-meta-row::after {
  content: ' — Tap to expand';
  color: var(--text-muted);
  font-size: 11px;
  font-style: italic;
}
.briefing-player.briefing-collapsed {
  cursor: pointer;
  padding: 12px 20px;
}

/* Active audio border highlight */
.briefing-player:has(#briefingAudio:not([src=''])) {
  border-color: rgba(255,69,0,0.15);
}

.briefing-player-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Info block: headphone icon + label/date */
.briefing-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.briefing-info svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.briefing-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.briefing-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.briefing-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* NEW badge */
.briefing-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #030712;
  background: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,69,0,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(255,69,0,0); }
}

.briefing-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.briefing-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.briefing-story-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Controls row */
.briefing-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Play/Pause button */
.briefing-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  box-shadow: 0 2px 10px rgba(255,69,0,0.2);
}

.briefing-play-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 18px rgba(255,69,0,0.35);
}

.briefing-play-btn:active {
  transform: scale(0.96);
}

.briefing-play-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Progress / scrubber row */
.briefing-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.briefing-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 32px;
}

.briefing-time:last-child {
  text-align: right;
}

/* Custom range scrubber */
.briefing-scrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  background-image: linear-gradient(var(--accent-cyan), var(--accent-cyan));
  background-size: 0% 100%;
  background-repeat: no-repeat;
}

.briefing-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px rgba(255,69,0,0.4);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.briefing-scrubber::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: none;
  box-shadow: 0 0 6px rgba(255,69,0,0.4);
  cursor: pointer;
}

.briefing-scrubber:hover::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255,69,0,0.5);
}

.briefing-scrubber::-webkit-slider-track {
  border-radius: 2px;
  background: var(--border-subtle);
}

.briefing-scrubber::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
}

/* Speed button */
.briefing-speed-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.03em;
}

.briefing-speed-btn:hover {
  color: var(--accent-cyan);
  border-color: rgba(255,69,0,0.3);
  background: var(--accent-cyan-dim);
}

/* Archive button */
.briefing-archive-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
}

.briefing-archive-btn:hover {
  color: var(--accent-cyan);
  border-color: rgba(255,69,0,0.3);
  background: var(--accent-cyan-dim);
}

.briefing-archive-btn.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

/* Archive dropdown */
.briefing-archive-dropdown {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 20px 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.briefing-archive-header {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.briefing-archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.briefing-archive-item {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.briefing-archive-item:hover {
  color: var(--accent-cyan);
  border-color: rgba(255,69,0,0.3);
  background: var(--accent-cyan-dim);
}

.briefing-archive-item.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.briefing-archive-item .archive-stories {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
}

.briefing-archive-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Playing pulse animation on the player border */
@keyframes briefing-pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,69,0,0); }
  50% { box-shadow: 0 0 0 3px rgba(255,69,0,0.12); }
}

.briefing-player.playing {
  border-color: rgba(255,69,0,0.25);
  animation: briefing-pulse-border 2.5s ease-in-out infinite;
}

/* Empty state */
.briefing-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-body);
  padding: 4px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.briefing-empty svg {
  flex-shrink: 0;
  opacity: 0.4;
}



/* Mobile responsive */
@media (max-width: 600px) {
  .briefing-player {
    padding: 10px 16px;
  }
  .briefing-player-inner {
    gap: 12px;
  }
  .briefing-info {
    width: 100%;
    justify-content: flex-start;
  }
  .briefing-controls {
    width: 100%;
    gap: 8px;
  }
  .briefing-play-btn {
    width: 36px;
    height: 36px;
  }
}


/* ============================================================
   Admin Mode & Community Badge
   ============================================================ */

/* Admin delete button */
.admin-delete-btn {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  align-items: center;
  justify-content: center;
}
.admin-delete-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  transform: scale(1.1);
}
body.admin-mode .admin-delete-btn {
  display: flex;
}

/* Ensure wire-item and dashboard-item have relative positioning for the delete button */
body.admin-mode .wire-item,
body.admin-mode .dashboard-item {
  position: relative;
}

/* Community badge */
.card-category[data-cat="Community"] {
  background: rgba(0, 230, 200, 0.15);
  color: #FF4500;
  border-color: rgba(0, 230, 200, 0.3);
}

/* Admin mode indicator */
body.admin-mode::after {
  content: 'ADMIN MODE';
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 9999;
  pointer-events: none;
}

/* Delete fade animation */
@keyframes fadeOutDelete {
  to { opacity: 0; transform: scale(0.95); height: 0; margin: 0; padding: 0; overflow: hidden; }
}
.deleting {
  animation: fadeOutDelete 0.4s ease forwards;
}

/* Non-linked community cards */
.story-card-static {
  cursor: default;
}
.story-card-static:hover {
  transform: none;
  border-color: var(--border);
}

/* PDF expandable cards */
.story-card-pdf {
  cursor: pointer;
}
.story-card-pdf:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.card-pdf-hint {
  font-size: 12px;
  color: var(--accent-cyan);
  margin-top: 8px;
  font-weight: 500;
}
.card-pdf-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.card-pdf-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.story-card-pdf.expanded {
  grid-column: 1 / -1;
}

.wire-item-link-muted {
  color: var(--text-muted) !important;
  cursor: default;
}

/* ============================================================
   FOR BRANDS SECTION (About page)
   ============================================================ */
.about-for-brands {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.brand-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.brand-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.brand-benefit svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.brand-benefit span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
.brand-benefit strong {
  color: var(--text-primary);
}
.brand-cta {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.brand-cta-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
}
.brand-cta-link:hover {
  text-decoration: underline;
}

/* ============================================================
   BRAND CALLOUT BANNER (Submit page)
   ============================================================ */
.brand-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--accent-cyan);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
}
.brand-callout-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.brand-callout-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}
.brand-callout-text strong {
  color: var(--text-primary);
}
@media (max-width: 600px) {
  .brand-callout {
    flex-direction: column;
    gap: 0.5rem;
  }
}
