/* ===========================================================
   GameVibe website — shared styles
   Brand colors pulled from src/styles/colors.js (dark theme)
   =========================================================== */

:root {
  --bg: #0F1115;
  --surface: #161A22;
  --surface2: #1D2430;
  --surface3: #273244;
  --card: #171E29;
  --text: #F8FAFC;
  --subtext: #A3B0C2;
  --muted: #6F7C8E;
  --border: #2A3444;
  --accent: #D4A84E;
  --accent2: #4F7CFF;
  --success: #22C55E;
  --live: #EF4444;

  --max-width: 1120px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   Header / nav
   --------------------------------------------------------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.nav-brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--subtext);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), #B8892E);
  color: #1A1300 !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.nav-cta:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,17,21,0.65) 0%, var(--bg) 95%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #F2D08A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--subtext);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #B8892E);
  color: #1A1300;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface3);
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta strong {
  color: var(--text);
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

section {
  padding: 72px 0;
}

section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .tag {
  color: var(--accent2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--subtext);
  font-size: 16px;
  margin: 0;
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

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

.feature-card .icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface2);
}

.feature-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--subtext);
  font-size: 14.5px;
  margin: 0;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #B8892E);
  color: #1A1300;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.step p {
  color: var(--subtext);
  font-size: 14px;
  margin: 0;
}

/* Sports strip */

.sports-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sport-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--subtext);
}

.sport-chip.live {
  color: var(--text);
  border-color: var(--accent);
}

/* Final CTA */

.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--surface2), var(--surface3));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
  margin: 0 auto;
  max-width: var(--max-width);
}

.cta-banner h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 14px;
}

.cta-banner p {
  color: var(--subtext);
  margin: 0 0 32px;
  font-size: 16px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

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

.footer-links a {
  color: var(--subtext);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------------
   Content pages (privacy / support)
   --------------------------------------------------------- */

.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.page-hero p {
  color: var(--subtext);
  margin: 0;
}

.content {
  padding: 0;
  max-width: 760px;
}

.content h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.content h2:first-child {
  margin-top: 0;
}

.content p, .content li {
  color: var(--subtext);
  font-size: 15.5px;
}

.content ul {
  padding-left: 22px;
}

.content li {
  margin-bottom: 8px;
}

.content strong {
  color: var(--text);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.content th, .content td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--subtext);
}

.content th {
  background: var(--surface2);
  color: var(--text);
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p {
  margin: 0;
}

/* FAQ accordion */

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .faq-body {
  padding: 0 22px 18px;
  color: var(--subtext);
  font-size: 15px;
}

/* Contact card */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.contact-card .icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.contact-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.contact-card p {
  margin: 0;
  font-size: 14px;
}

.contact-card a {
  font-weight: 700;
}

/* Mobile nav toggle (kept simple — links wrap on small screens) */

@media (max-width: 640px) {
  .nav {
    padding: 14px 28px 28px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .nav-cta {
    margin-bottom: 14px;
  }
}

/* Mobile content spacing (privacy / support pages) */

@media (max-width: 640px) {
  .container {
    padding: 0 28px;
  }

  .page-hero {
    padding: 32px 0 24px;
  }

  section:not(.page-hero):not(.hero) {
    padding: 32px 0;
  }
}
