/* =========================================================
   Betwinner.gt – Bespoke stylesheet
   Palette: dark slate #1a202c / #2d3748, electric blue #3858dc
   ========================================================= */

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

:root {
  --bg-deep:    #0f131a;
  --bg-dark:    #1a202c;
  --bg-mid:     #252d3d;
  --bg-card:    #2d3748;
  --bg-card2:   #323e54;
  --blue:       #3858dc;
  --blue-hi:    #4b6aff;
  --blue-glow:  rgba(56,88,220,.18);
  --gold:       #f0b429;
  --text:       #e2e8f0;
  --text-muted: #8895a8;
  --text-dim:   #64748b;
  --border:     rgba(255,255,255,.07);
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  14px;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:       'SF Mono', 'Fira Mono', 'Roboto Mono', monospace;
  --header-h:   60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-width: 320px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

/* tabular numerals for odds */
.odds, .odds-val, [data-odds] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* --- Header ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 28px;
}

.header-logo img {
  height: 22px;
  width: auto;
}

/* text wordmark fallback styling — applied if logo img fails */
.wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.wordmark span { color: var(--blue-hi); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active {
  color: #fff;
  background: var(--bg-mid);
  text-decoration: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-sw {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-mid);
  border-radius: var(--radius-sm);
  padding: 3px 4px;
}

.lang-sw a {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lang-sw a.active, .lang-sw a:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}

.btn-login {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue);
  color: var(--blue-hi);
  background: transparent;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-login:hover { background: var(--blue-glow); text-decoration: none; }

.btn-register {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  transition: background .15s;
  white-space: nowrap;
}
.btn-register:hover { background: var(--blue-hi); text-decoration: none; }

/* Burger button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 12px 16px 20px;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--bg-mid);
  text-decoration: none;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.mobile-nav-lang {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
}

.mobile-nav-lang a {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-lang a.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.mobile-nav-cta {
  display: flex;
  gap: 8px;
  padding: 4px 12px;
}
.mobile-nav-cta a { flex: 1; text-align: center; }

/* --- Hero ------------------------------------------------ */
.hero {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Sportsbook odds board strip */
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  min-height: 420px;
  align-items: stretch;
}

.hero-left {
  padding: 32px 24px 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-hi);
  margin-bottom: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.hero-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.hero-title em {
  font-style: normal;
  color: var(--blue-hi);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.cta-primary:hover { background: var(--blue-hi); text-decoration: none; }

.cta-secondary {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
}
.cta-secondary:hover { border-color: var(--blue); background: var(--blue-glow); text-decoration: none; }

/* Odds board */
.odds-board {
  background: var(--bg-mid);
  border-left: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.odds-board-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-dim);
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #e53e3e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}
.live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #e53e3e;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.odds-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 6px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.odds-row:last-child { border-bottom: none; }

.odds-teams {
  min-width: 0;
}
.odds-teams .team-a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.odds-teams .team-b {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.odds-time {
  font-size: 10px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.odds-btn {
  background: var(--bg-card);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 4px 8px;
  border-radius: 3px;
  min-width: 44px;
  text-align: center;
  border: 1px solid var(--border);
  cursor: default;
  transition: background .1s;
}
.odds-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Hero promo */
.hero-promo-strip {
  background: linear-gradient(135deg, var(--blue) 0%, #1e3aad 100%);
  padding: 10px 16px;
}
.hero-promo-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.promo-strip-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.promo-strip-text strong { color: var(--gold); }
.promo-strip-link {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
}

/* --- Sections -------------------------------------------- */
.section {
  padding: 48px 16px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section--alt { background: var(--bg-dark); }
.section--mid { background: var(--bg-mid); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-hi);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 600px;
}

/* Sports categories */
.sport-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sport-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sport-cat:hover, .sport-cat.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Feature cards grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
}

.feature-card-icon {
  font-size: 22px;
  margin-bottom: 10px;
}
.feature-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.feature-card-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Game tiles grid */
.game-chip-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.game-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.game-chip:hover, .game-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.game-tile {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 372/112;
  background: var(--bg-card);
  cursor: pointer;
}
.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}
.game-tile:hover img { transform: scale(1.04); }

.game-tile-wide {
  grid-column: span 2;
  aspect-ratio: 372/112;
}

/* Payment logos */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  gap: 8px;
  min-height: 52px;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.stat-item {
  background: var(--bg-card);
  padding: 20px 24px;
  text-align: center;
}
.stat-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--blue-hi);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --- Breadcrumb ------------------------------------------ */
.breadcrumb {
  padding: 12px 16px;
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb-inner span {
  font-size: 12px;
  color: var(--text-dim);
}
.breadcrumb-inner a {
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb-inner a:hover { color: var(--blue-hi); }

/* --- SEO Article ----------------------------------------- */
.seo-section {
  padding: 48px 16px 64px;
  background: var(--bg-deep);
}
.seo-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* All heading tags ONLY inside .seo-block */
.seo-block h1 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue);
}

.seo-block h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  color: #fff;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
}

.seo-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 8px;
}

.seo-block p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 14.5px;
}

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

.seo-block a {
  color: var(--blue-hi);
  text-decoration: underline;
}

.seo-block ul, .seo-block ol {
  margin: 10px 0 18px 0;
  padding-left: 1.6em;
}
.seo-block li {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* Responsive tables */
.seo-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
  table-layout: fixed;
}
.seo-block th {
  background: var(--bg-card);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.seo-block td {
  padding: 9px 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.seo-block tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  gap: 12px;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-q:hover { background: var(--bg-card2); }

.faq-q-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  transition: transform .2s;
}
.faq-item.open .faq-q-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 14px 16px;
  background: var(--bg-dark);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-a { display: block; }

/* --- Footer ---------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 16px 24px;
}

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

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 10px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--blue-hi); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-mid);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-age-badge {
  background: #c53030;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Desktop header elements hidden */
  .header-nav,
  .header-controls {
    display: none !important;
  }
  /* Burger visible */
  .burger { display: flex !important; margin-left: auto; }

  .hero-inner {
    grid-template-columns: 1fr;
  }
  .odds-board {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .hero-inner { min-height: auto; }

  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .game-tile-wide { grid-column: span 1; aspect-ratio: 1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero-left { padding: 24px 0; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .seo-block table { font-size: 12px; }
  .seo-block th, .seo-block td { padding: 6px 8px; }
}

@media (max-width: 360px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}

/* Prevent any overflow beyond viewport */
.header-inner,
.footer-inner,
.section-inner,
.seo-inner,
.hero-inner,
.breadcrumb-inner,
.hero-promo-strip-inner {
  max-width: 100%;
}
