/* ==========================================================================
   TRUSTED BETTING ID — Design System & Master Stylesheet
   Tokens locked to palette: Near-black #0A0603 + Heavy Gold/Bronze
   Reference: Near-black header, gold crown, serif display, cream category strip
   ========================================================================== */

:root {
  --ink-950: #0A0603;
  --ink-900: #120B06;
  --ink-800: #1A1108;
  --ink-700: #33230F;
  --bronze-700: #4A3212;
  --bronze-600: #6B4A1B;
  --gold-600: #C9971F;
  --gold-500: #E8B23A;
  --gold-400: #F5C542;
  --gold-300: #F8D98A;
  --cream-100: #FBF3E2;
  --cream-200: #F3E7CE;
  --paper: #FFFFFF;
  --slate-600: #56493A;
  --slate-300: #D8C8B4;
  --live: #E5383B;
  --odds-bg: #EAF6EE;
  --odds-text: #1F6B45;
  --wa: #25D366;
  --wa-dark: #128C7E;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  background-color: #0A0603;
  color: #D8C8B4;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  html {
    font-size: 17px;
  }
}

body {
  background-color: #0A0603 !important;
  color: #D8C8B4;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 72px; /* space for mobile bottom bar */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
.font-display {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Gold Gradients & Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #FFF0C2 0%, #F5C542 35%, #E8B23A 70%, #C9971F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #E8B23A;
  display: inline-block;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #F8D98A 0%, #F5C542 25%, #E8B23A 70%, #C9971F 100%) !important;
  color: #120B06 !important;
  text-decoration: none !important;
}

.gold-glow {
  box-shadow: 0 8px 28px rgba(232, 178, 58, 0.32);
}

.gold-border {
  border: 1px solid var(--ink-700);
}

/* Container */
.site-container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .site-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

/* Header Styles */
.site-header {
  background-color: #0A0603 !important;
  border-bottom: 1px solid #33230F;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  color: #D8C8B4 !important;
  text-decoration: none !important;
  transition: color 150ms ease;
}

.nav-link:hover {
  color: #F8D98A !important;
}

.nav-pill {
  background: linear-gradient(135deg, #F8D98A, #E8B23A) !important;
  color: #120B06 !important;
  text-decoration: none !important;
}

/* Desktop & Mobile Navigation Display Rules */
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex !important;
  }
  .desktop-actions {
    display: flex !important;
  }
  .mobile-header-actions {
    display: none !important;
  }
  .hero-grid {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    align-items: center !important;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }
  .desktop-actions {
    display: none !important;
  }
  .mobile-header-actions {
    display: flex !important;
  }
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Category Strip (Reference Cream Bar) */
.category-strip {
  background-color: #FBF3E2 !important;
  color: #56493A !important;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 14px;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #56493A !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 150ms ease;
  border-radius: 8px;
}

.category-item svg {
  color: #6B4A1B;
  transition: transform 150ms ease;
}

.category-item:hover svg {
  transform: translateY(-2px);
}

.category-item.active {
  background: linear-gradient(135deg, #F8D98A 0%, #E8B23A 100%) !important;
  color: #120B06 !important;
  box-shadow: 0 4px 12px rgba(232, 178, 58, 0.25);
}

.category-item.active svg {
  color: #120B06 !important;
}

/* Cards */
.dark-card {
  background-color: #1A1108 !important;
  border: 1px solid #33230F;
  border-radius: 14px;
  transition: transform 200ms ease, border-color 200ms ease;
}

.dark-card:hover {
  border-color: #6B4A1B;
}

/* Odds Chips */
.odds-chip {
  background-color: #EAF6EE !important;
  color: #1F6B45 !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 6px;
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  text-decoration: none !important;
  transition: transform 120ms ease, background-color 120ms ease;
}

.odds-chip:hover {
  background-color: #D6EFE0 !important;
  transform: scale(1.04);
}

/* Mobile Bottom Tab Bar */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #0E0804;
  border-top: 1px solid #33230F;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #D8C8B4;
  text-decoration: none !important;
  gap: 3px;
}

.tab-item.active {
  color: #F5C542 !important;
}

/* WhatsApp Floating Action Button */
.wa-fab {
  position: fixed;
  bottom: 80px;
  right: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 45;
  text-decoration: none !important;
  transition: transform 150ms ease;
}

.wa-fab:hover {
  transform: scale(1.08);
}

.wa-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Exit intent / time popup modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #120B06;
  border: 1px solid #E8B23A;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 40px rgba(232, 178, 58, 0.2);
  animation: modalIn 250ms cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Article Reading Measure & Layout (Desktop + Mobile) */
.article-content {
  width: 100% !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(18px, 4.5vw, 32px) !important;
  padding-right: clamp(18px, 4.5vw, 32px) !important;
  box-sizing: border-box !important;
}

article p, .article-content p {
  font-size: clamp(1rem, 1.15vw, 1.125rem) !important;
  line-height: 1.8 !important;
  color: #D8C8B4 !important;
  margin-top: 0 !important;
  margin-bottom: 22px !important;
  word-break: break-word !important;
}

article h1, .article-content h1 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

article h2, .article-content h2 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(1.6rem, 3vw, 2.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin-top: 48px !important;
  margin-bottom: 18px !important;
  color: #F5C542 !important;
  scroll-margin-top: 96px !important;
}

article h3, .article-content h3 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-top: 36px !important;
  margin-bottom: 14px !important;
  color: #F8D98A !important;
  scroll-margin-top: 96px !important;
}

article ul, article ol, .article-content ul, .article-content ol {
  padding-left: 24px !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  color: #D8C8B4 !important;
  line-height: 1.8 !important;
}

article li, .article-content li {
  margin-bottom: 10px !important;
}
