/* ═══════════════════════════════════════════════════════════════
   GosuPlay — Shared Design System
   ───────────────────────────────────────────────────────────────
   Used by every section: bonuses, sportsbook, esportsbook, slots.
   Load this BEFORE any section-specific stylesheet.

   Per-page customisations live in a small <style> block inside
   each HTML file:
     --page-accent   controls section-label and step-num colour
     .hero::before   set the hero background gradient
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  --dark:         #141414;
  --dark-2:       #1c1c1c;
  --dark-3:       #242424;
  --red:          #ff2f38;
  --mint:         #f1ffe6;
  --pink:         #ff2db5;
  --purple:       #e22eff;
  --orange:       #ff7800;
  --yellow:       #fbe03b;
  --green:        #6cff00;
  --white:        #ffffff;
  --dim:          rgba(255,255,255,0.45);
  --mid:          rgba(255,255,255,0.72);
  --border:       rgba(255,255,255,0.08);
  --f-head:       'Halyard Display', 'Arial Black', Arial, sans-serif;
  --f-body:       'Libre Franklin', Arial, sans-serif;
  --gap:          clamp(16px, 3vw, 32px);
  --r:            4px;
  --col-w:        720px;
  /* Per-page accent — override in each page's <style> block */
  --page-accent:  var(--red);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(172, 1, 4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img { height: 36px; width: auto; }

.header-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.header-nav a {
  color: var(--mid);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.15s;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] { color: var(--white); }

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 9px 22px;
  border-radius: 0.625rem;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-primary:hover { background: #aa302e; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--white);
  padding: 7px 10px;
  cursor: pointer;
  line-height: 0;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 16px var(--gap);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 12px;
  color: var(--dim);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.4;
}

.breadcrumb a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--mid); }

/* ── BUTTONS ── */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 9px 22px;
  border-radius: 0.625rem;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

/* ── HERO — base defaults (PDP two-column layout) ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px) var(--gap) clamp(28px, 4vw, 48px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none; /* set per page in each HTML's <style> block */
  pointer-events: none;
}

/* PDP: two-column grid (text left, callout right).
   Odds-boost pages override this to display:block in their <style> block. */
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--page-accent);
  margin-bottom: 16px;
}

/* Accent colour classes — add the appropriate one to .hero-eyebrow */
.hero-eyebrow.accent-casino     { color: var(--green); }
.hero-eyebrow.accent-esports    { color: var(--yellow); }
.hero-eyebrow.accent-referral   { color: var(--yellow); }
.hero-eyebrow.accent-sportsbook { color: var(--yellow); }

.hero h1 {
  font-family: var(--f-head);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--page-accent); /* override per page if needed */
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--mid);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── HUB HERO: .eyebrow variant (decorative side lines) ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}

/* Hub hero: bare <p> directly inside .hero (not .hero-sub inside .hero-inner) */
.hero > p {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── HERO CALLOUT CARD ── */
.hero-callout {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 36px;
  text-align: center;
  min-width: 200px;
  flex-shrink: 0;
}

.callout-amount {
  font-family: var(--f-head);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--red); /* overridden per page */
}

.callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 6px;
}

/* ── STAT CARDS (used in schedule/odds-boost hero) ── */
.stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.stat-card-value {
  font-family: var(--f-head);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--yellow);
}

.stat-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── PDP: CONTENT COLUMN ── */
.content {
  flex: 1;
  padding: clamp(40px, 5vw, 64px) var(--gap);
}

.content-inner {
  max-width: var(--col-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--page-accent);
  margin-bottom: 20px;
}

h2.module-title {
  font-family: var(--f-head);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  line-height: 1.2;
}

/* ── PDP: STEPS ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--page-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 900;
  color: var(--page-accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: var(--dark);
}

.step-content { padding-bottom: 28px; }

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.55;
}

.step-desc a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.step-desc a:hover {
  color: var(--page-accent, var(--red));
}

/* ── PDP: DEPOSIT / DATA TABLES ── */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--dark-3);
  padding: 12px 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  text-align: left;
}

tbody tr {
  border-top: 1px solid var(--border);
  transition: background 0.12s;
}

tbody tr:hover { background: rgba(255,255,255,0.03); }

tbody td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--mid);
  vertical-align: middle;
}

tbody td a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

tbody td a:hover {
  color: var(--page-accent, var(--red));
}

/* First cell in .table-wrap tables uses flex for currency icon + label */
.table-wrap tbody td:first-child {
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--page-accent);
  flex-shrink: 0;
}


/* ── PDP: INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.info-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.info-card-value {
  font-family: var(--f-head);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--page-accent);
  line-height: 1;
  margin-bottom: 6px;
}



.info-card-note {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}

/* ── PDP: T&C ACCORDION ── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }

.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  transition: background 0.12s;
}

.acc-trigger:hover { background: rgba(255,255,255,0.03); }

.acc-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--dim);
  transition: transform 0.22s ease;
}

.acc-item.is-open .acc-icon { transform: rotate(45deg); }

.acc-body {
  display: none;
  padding: 0 20px 20px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.65;
  animation: fadeIn 0.2s ease;
}

.acc-item.is-open .acc-body { display: block; }
.acc-body p + p { margin-top: 10px; }
.acc-body ul { margin: 10px 0; padding-left: 18px; }
.acc-body li + li { margin-top: 4px; }

.weighting-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.weighting-table th,
.weighting-table td {
  padding: 8px 12px;
  font-size: 12px;
  text-align: left;
  border: 1px solid var(--border);
}

.weighting-table th {
  background: var(--dark-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--dim);
}

.weighting-table td { color: var(--mid); }
.weighting-table .pct-high { color: var(--yellow); font-weight: 600; }
.weighting-table .pct-low  { color: var(--dim); }

.acc-link { color: var(--red); text-decoration: underline; }
.acc-link:hover { opacity: 0.8; }

/* ── FILTER BUTTONS (hub & schedule pages) ── */
.filters {
  padding: 36px var(--gap) 0;
}

.filters-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: 4px;
}

.filter-btn {
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--mid);
  padding: 8px 18px;
  border-radius: 0.625rem;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.2px;
}

.filter-btn:hover {
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
}

.filter-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.filter-group {
  display: flex;
  gap: 6px;
}

/* ── LOADING & EMPTY STATES ── */
.state-msg {
  padding: 56px 24px;
  text-align: center;
}

.state-msg-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.state-msg h3 {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.state-msg p {
  font-size: 13px;
  color: var(--dim);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--gap);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  margin-bottom: 16px;
}
.footer-logo .logo img {
  height: 28px;
  width: auto;
  opacity: 0.7;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 16px;
}
.footer-nav a {
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--mid); }

.footer-notice {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto 14px;
}

.footer-notice strong { color: var(--mid); }
.footer-notice a { color: rgba(255,255,255,0.38); text-decoration: underline; }
.footer-notice a:hover { color: var(--mid); }


.footer-legal { font-size: 11px; color: rgba(255,255,255,0.28); }
.footer-legal a { color: rgba(255,255,255,0.38); text-decoration: underline; }
.footer-legal a:hover { color: var(--mid); }

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* PDP hero collapses to single column */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-callout {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 20px 24px;
    width: 100%;
  }
  .callout-amount { font-size: 48px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .header-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(3.75rem + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 75vw;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 8px 0;
    gap: 0;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  }
  .header-nav.is-open a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
  }
  .header-nav.is-open a:hover {
    background: rgba(255,255,255,0.05);
  }
  .header-inner { height: 3.75rem; gap: 12px; }
  .logo { margin-right: auto; }
  .nav-toggle { display: block; }
  /* PDP deposit table: stack currency icon above label */
  .table-wrap tbody td:first-child { flex-direction: column; align-items: flex-start; gap: 4px; }
  /* Allow horizontal scroll on narrow screens while keeping border-radius */
  .table-wrap { overflow-x: auto; }
  /* Stat cards */
  .stat-card { flex: 1; min-width: 120px; }
}
