/* Multi-Brand Independent Satellite Network Stylesheet
   Supports 6 distinct visual themes via data-theme="gold|emerald|blue|amber|violet|rose"
   and 3 distinct layout variations via data-layout="editorial|split|centered" */

:root, [data-theme="gold"] {
  --bg: #08080a;
  --surface: #111115;
  --surface-alt: #16161c;
  --border: rgba(255, 255, 255, 0.09);
  --accent: #d97706;
  --accent-bright: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-border: rgba(245, 158, 11, 0.45);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --radius: 18px;
  --font-head: "Oswald", "Bebas Neue", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

[data-theme="emerald"] {
  --bg: #040907;
  --surface: #0a1410;
  --surface-alt: #0f1f18;
  --accent: #059669;
  --accent-bright: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --accent-border: rgba(16, 185, 129, 0.45);
  --radius: 14px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
}

[data-theme="blue"] {
  --bg: #050811;
  --surface: #0b1120;
  --surface-alt: #111a2e;
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --accent-border: rgba(59, 130, 246, 0.45);
  --radius: 22px;
  --font-head: "Bebas Neue", Impact, sans-serif;
}

[data-theme="amber"] {
  --bg: #090705;
  --surface: #14100c;
  --surface-alt: #1c1610;
  --accent: #ea580c;
  --accent-bright: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --accent-border: rgba(249, 115, 22, 0.45);
  --radius: 20px;
}

[data-theme="violet"] {
  --bg: #070510;
  --surface: #110c22;
  --surface-alt: #191230;
  --accent: #7c3aed;
  --accent-bright: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.15);
  --accent-border: rgba(139, 92, 246, 0.45);
  --radius: 24px;
}

[data-theme="rose"] {
  --bg: #090507;
  --surface: #150b10;
  --surface-alt: #1f1018;
  --accent: #e11d48;
  --accent-bright: #f43f5e;
  --accent-soft: rgba(244, 63, 94, 0.15);
  --accent-border: rgba(244, 63, 94, 0.45);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 20px 80px;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 52%);
  color: var(--text);
  line-height: 1.66;
}
a { color: var(--accent-bright); text-decoration: none; transition: all 0.2s ease; }
a:hover { opacity: 0.88; }

/* Portal Header */
nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 14px 22px; margin-bottom: 22px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface);
}
nav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}
nav .brand-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
}
nav .portal-tag {
  font-size: 0.72rem; color: var(--muted); font-family: var(--font-body);
  font-weight: 500; letter-spacing: 0.06em; margin-left: 6px; padding-left: 10px;
  border-left: 1px solid var(--border);
}
nav .nav-links { display: flex; align-items: center; gap: 16px; font-size: 0.83rem; }
nav .nav-links a { color: #d4d4d8; }
nav .nav-links a:hover { color: #fff; }
nav .nav-cta {
  padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff !important;
  font-weight: 600; font-size: 0.78rem;
}

.breadcrumbs {
  font-size: 0.8rem; color: #71717a; margin-bottom: 16px;
}
.breadcrumbs a { color: #a1a1aa; }
.breadcrumbs span { margin: 0 6px; color: #52525b; }

/* Hero Box & Layout Variants */
.hero-box {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, var(--surface-alt), var(--surface));
  padding: 34px; margin-bottom: 38px;
}
[data-layout="split"] .hero-box {
  display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 28px; align-items: center;
}
@media (max-width: 820px) {
  [data-layout="split"] .hero-box { grid-template-columns: 1fr; }
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--accent-border); background: var(--accent-soft);
  color: var(--accent-bright); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); }

h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; margin: 14px 0 12px; color: #fff;
}
h2 {
  font-family: var(--font-head);
  font-size: 1.65rem; text-transform: uppercase; letter-spacing: 0.04em;
  margin: 44px 0 16px; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
h2::before {
  content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--accent-bright);
}
p { color: var(--muted); max-width: 75ch; margin: 0 0 12px; }

/* Winner #1 Box inside Hero */
.winner-spotlight {
  border-radius: var(--radius);
  border: 1.5px solid var(--accent-border);
  background: var(--bg);
  padding: 20px;
}
.winner-spotlight .score-badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 0.78rem; margin-bottom: 8px;
}
.winner-spotlight h3 { margin: 4px 0 6px; font-size: 1.35rem; color: #fff; }
.winner-spotlight p { font-size: 0.88rem; margin-bottom: 14px; }

.tags-wrap { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag-pill {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border); color: #d4d4d8;
}

/* CTA Buttons */
.cta {
  display: inline-block; text-align: center;
  padding: 11px 20px; border-radius: 10px;
  background: var(--accent); color: #fff !important;
  font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  transition: transform 0.18s, opacity 0.18s;
}
.cta:hover { transform: translateY(-2px); opacity: 0.95; }
.cta.secondary {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Ranking Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-border); }
.card.me {
  border: 2px solid var(--accent-bright);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.card .tag {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-bright);
}
.card .status-pill {
  font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.35); color: #86efac;
}
.card h3 { margin: 0 0 8px; font-size: 1.28rem; color: #fff; }
.card p { margin: 0 0 16px; font-size: 0.92rem; }
.card-actions { display: flex; flex-direction: column; gap: 8px; }

/* Spec Table */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); margin: 18px 0 32px;
}
table.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; text-align: left; }
.spec-table th, .spec-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); }
.spec-table th {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-bright);
  background: var(--accent-soft);
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td strong { color: #fff; }

/* Editorial & FAQ */
.editorial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 18px 0;
}
.editorial-box {
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
}
.editorial-box h3 { margin: 0 0 8px; font-size: 1.05rem; color: #fff; }
.editorial-box p { margin: 0; font-size: 0.91rem; }

.tip {
  background: var(--accent-soft); padding: 16px 20px; border-radius: var(--radius);
  border-left: 4px solid var(--accent-bright); color: #e4e4e7; margin: 28px 0;
}
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px; background: var(--surface);
}
.faq-item h3 { margin: 0 0 6px; font-size: 1.03rem; color: #fff; }
.faq-item p { margin: 0; font-size: 0.92rem; }

.related-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px; list-style: none; padding: 0;
}
.related-list li a {
  display: block; padding: 12px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.87rem;
}
.related-list li a:hover { border-color: var(--accent-border); color: var(--accent-bright); }

footer {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid var(--border); color: #71717a; font-size: 0.83rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* HenryAxe Official Brand Theme (used by Variant 1: /live/ 1,200 pages) */
[data-theme="henryaxe"] {
  --bg: #050505;
  --surface: rgba(12, 12, 15, 0.94);
  --surface-alt: rgba(20, 20, 24, 0.96);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #dc2626;
  --accent-bright: #ef4444;
  --accent-soft: rgba(185, 28, 28, 0.18);
  --accent-border: rgba(220, 38, 38, 0.5);
  --radius: 26px;
  --font-head: "Bebas Neue", Impact, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
[data-theme="henryaxe"] body {
  background-image:
    radial-gradient(circle at 50% 0%, rgba(185, 28, 28, 0.18), transparent 48%),
    url("/images/smoke-gray.webp");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.hero-portrait {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14); background: #09090b;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); max-width: 320px; margin: 0 auto;
}
.hero-portrait img {
  display: block; width: 100%; height: 350px; object-fit: cover; object-position: top center;
}
.hero-portrait-caption {
  padding: 11px 16px; background: rgba(10, 10, 12, 0.95); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: #e4e4e7;
}

/* Legal Compliance Box & 18+ Age Gate Modal */
.legal-box {
  margin-top: 44px; padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(10, 10, 14, 0.85);
  font-size: 0.78rem; color: #71717a; line-height: 1.6;
}
.legal-box strong { color: #a1a1aa; }
.legal-box p { margin: 0 0 8px; max-width: 100%; font-size: 0.78rem; color: #71717a; }
.legal-box p:last-child { margin-bottom: 0; }

.age-gate-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(3, 3, 5, 0.92);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.age-gate-backdrop.active { display: flex; }
.age-gate-modal {
  max-width: 460px; width: 100%; border-radius: 24px;
  border: 1px solid var(--accent-border); background: #0c0c10;
  padding: 32px 28px; text-align: center; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
}
.age-gate-modal h2 { justify-content: center; margin-top: 12px; font-size: 1.8rem; }
.age-gate-modal h2::before { display: none; }
.age-gate-modal p { font-size: 0.9rem; color: #a1a1aa; margin: 0 auto 22px; }
.age-gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
