/* ==========================================================================
   Betfair Chile — Official Brand Design System & UI 2026
   Palette: Background #0e1a27 | Surface #162334 | Text #f3f4f6 | Accent #ffb805 | Border #283b52
   Typography: Body 'Inter' | Headings 'Outfit'
   ========================================================================== */

:root {
  --color-bg: #0e1a27;
  --color-surface: #162334;
  --color-text: #f3f4f6;
  --color-accent: #ffb805;
  --color-border: #283b52;
  --color-accent-hover: #e5a400;
  --color-text-muted: #94a3b8;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(255, 184, 5, 0.25);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0e1a27;
  color: #f3f4f6;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: #f3f4f6;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.35rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.35rem; margin: 1.5rem 0 0.75rem; }

p { margin-bottom: 1rem; }
a { color: #ffb805; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #e5a400; text-decoration: underline; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Betfair Brand Navigation (Authentic 2-Tier Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.header-top {
  background-color: #ffb805;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-login {
  color: #0e1a27;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border: 1.5px solid #0e1a27;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-login:hover {
  background-color: rgba(14, 26, 39, 0.12);
  color: #000;
}

.btn-join {
  background-color: #0e1a27;
  color: #ffb805 !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-join:hover {
  background-color: #000;
  color: #ffc933 !important;
  transform: translateY(-1px);
}

.product-nav {
  background-color: #0e1a27;
  border-bottom: 1px solid #283b52;
}

.product-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-nav-inner::-webkit-scrollbar {
  display: none;
}

.product-nav a {
  color: #cbd5e1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.product-nav a:hover,
.product-nav a.active {
  color: #ffb805;
  border-bottom-color: #ffb805;
  background: rgba(255, 184, 5, 0.05);
}


.burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #0e1a27;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.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-drawer {
  display: none;
}

/* ==========================================================================
   Hero Banner with Panoramic Brand Background (1100x360 Full-Width)
   ========================================================================== */
.hero-banner, .page-title-banner {
  position: relative;
  background-color: #0e1a27;
  border-bottom: 2px solid #283b52;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
}

.brand-banner {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
}

.brand-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  filter: brightness(0.60);
}

.brand-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 26, 39, 0.96) 0%, rgba(14, 26, 39, 0.88) 45%, rgba(14, 26, 39, 0.40) 80%, rgba(14, 26, 39, 0.70) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-offer-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffb805 0%, #e5a400 100%);
  color: #0e1a27;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-intro {
  font-size: 1.15rem;
  color: #f3f4f6;
  margin-bottom: 1.75rem;
  max-width: 640px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.cta-btn-primary {
  background-color: #ffb805;
  color: #0e1a27;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.85rem 2rem;
  min-height: 48px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(255, 184, 5, 0.35);
  transition: all 0.2s ease;
}

button {
  min-height: 48px;
}

.cta-btn-primary:hover {
  background-color: #e5a400;
  color: #0e1a27;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 5, 0.5);
}

/* ==========================================================================
   NavBoost Quick Action Grid
   ========================================================================== */
.quick-actions-section {
  padding: 1.5rem 0;
  background-color: #0e1a27;
  border-bottom: 1px solid #283b52;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-action-btn {
  background-color: #162334;
  border: 1px solid #283b52;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #f3f4f6;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background-color: #1a293d;
  border-color: #ffb805;
  transform: translateY(-2px);
  color: #ffb805;
}

.quick-action-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: #ffb805;
}

.quick-action-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.quick-action-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Trust Badge & Live Status
   ========================================================================== */
.trust-status-bar {
  background-color: #162334;
  border: 1px solid #283b52;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #f3f4f6;
}

.trust-status-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
}

/* ==========================================================================
   Games Grid (Top 10 Posters)
   ========================================================================== */
.games-grid-section {
  padding: 2.5rem 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.game-card {
  background-color: #162334;
  border: 1px solid #283b52;
  border-radius: var(--radius-md);
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: #ffb805;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.game-card-poster {
  position: relative;
  aspect-ratio: 226 / 338;
  overflow: hidden;
  background-color: #0e1a27;
}

.game-card-poster img, .game-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 226 / 338;
  object-fit: cover;
}

.game-card-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0.4rem 0 0.6rem;
  line-height: 1.4;
}

.game-card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.game-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 0.25rem;
}

.game-card-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.game-card-btn {
  background-color: #ffb805;
  color: #0e1a27;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none !important;
  display: block;
}

.game-card-btn:hover {
  background-color: #e5a400;
}

/* ==========================================================================
   Interactive JS Calculator (Information Gain)
   ========================================================================== */
.calculator-widget {
  background-color: #162334;
  border: 1px solid #283b52;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.25rem;
}

.calc-form-group {
  margin-bottom: 1.25rem;
}

.calc-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f3f4f6;
}

.calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0e1a27;
  border: 1px solid #283b52;
  border-radius: var(--radius-sm);
  color: #f3f4f6;
  font-size: 1rem;
}

.calc-input:focus {
  outline: none;
  border-color: #ffb805;
}

.calc-result-box {
  background-color: #0e1a27;
  border: 1px solid #283b52;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffb805;
  margin: 0.5rem 0;
}

/* ==========================================================================
   Tables & Structured Data
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid #283b52;
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #162334;
  color: #f3f4f6;
  text-align: left;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #283b52;
}

th {
  background-color: #0e1a27;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #ffb805;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(255, 184, 5, 0.03);
}

/* ==========================================================================
   Pros & Cons, Steps, & Content Blocks
   ========================================================================== */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros-box, .cons-box {
  background-color: #162334;
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.pros-box {
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.cons-box {
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pros-box h4 { color: #10b981; margin-bottom: 1rem; }
.cons-box h4 { color: #ef4444; margin-bottom: 1rem; }

.steps-list {
  list-style: none;
  counter-reset: step-counter;
  margin: 1.5rem 0;
}

.steps-list li {
  position: relative;
  counter-increment: step-counter;
  padding-left: 3.5rem;
  margin-bottom: 1.5rem;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #ffb805;
  color: #0e1a27;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   E-E-A-T Author Box
   ========================================================================== */
.author-box {
  background-color: #162334;
  border: 1px solid #283b52;
  border-left: 4px solid #ffb805;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0e1a27;
  border: 2px solid #ffb805;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f3f4f6;
}

.author-bio {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  margin: 3rem 0;
}

details.faq-item {
  background-color: #162334;
  border: 1px solid #283b52;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

details.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #f3f4f6;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

details.faq-item summary::after {
  content: '+';
  color: #ffb805;
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item .faq-content {
  padding: 0 1.5rem 1.25rem;
  color: #94a3b8;
  border-top: 1px solid #283b52;
  padding-top: 1rem;
}

/* ==========================================================================
   Footer & Legal Disclaimer
   ========================================================================== */
.site-footer {
  background-color: #162334;
  border-top: 1px solid #283b52;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: #ffb805;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #ffb805;
}

.footer-disclaimer-box {
  border-top: 1px solid #283b52;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-badges-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-badge-item {
  border: 1px solid #283b52;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: #f3f4f6;
  font-weight: 600;
}

/* ==========================================================================
   Mobile Sticky CTA
   ========================================================================== */
.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  .header-auth .btn-login {
    display: none;
  }
  .mobile-drawer {
    display: none;
    background-color: #162334;
    border-top: 1px solid #283b52;
    padding: 1rem 1.25rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .mobile-drawer.open {
    display: block;
  }
  .mobile-drawer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .mobile-drawer-links a {
    color: #f3f4f6;
    font-size: 0.88rem;
    padding: 0.55rem;
    background: #0e1a27;
    border: 1px solid #283b52;
    border-radius: 6px;
    text-decoration: none !important;
  }
  .mobile-drawer-links a:hover {
    color: #ffb805;
    border-color: #ffb805;
  }

  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #162334;
    border-top: 2px solid #ffb805;
    padding: 0.75rem 1rem;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
  }

  .sticky-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }

  .sticky-cta-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f3f4f6;
  }

  .sticky-cta-btn {
    background-color: #ffb805;
    color: #0e1a27;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
  }

  .burger-menu-btn {
    display: block;
  }
}
