/* ============================================
   PAGE: HOME — Melbet Cameroun
   Three-column layout, hero, matches, content
   ============================================ */

/* --- Main Layout --- */
.page-wrapper {
  padding-top: calc(var(--header-height) + var(--nav-height));
  min-height: 100vh;
}

.main-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* --- Hero Banner --- */
.hero-banner {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #009639 33%, #CE1126 33% 66%, #FCD116 66%);
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,198,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.hero-content .hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-cta .btn {
  font-size: 0.9375rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

/* --- Match Cards Strip --- */
.matches-strip {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}

.matches-strip::-webkit-scrollbar {
  display: none;
}

.match-card {
  flex-shrink: 0;
  width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: box-shadow var(--transition-fast);
}

.match-card:hover {
  box-shadow: var(--shadow-md);
}

.match-card .match-league {
  font-size: 0.6875rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.match-card .match-teams {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.match-card .match-odds {
  display: flex;
  gap: var(--space-xs);
}

.match-card .odd-chip {
  flex: 1;
  text-align: center;
  padding: 0.375rem 0.25rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-odds);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.match-card .odd-chip:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.match-card .odd-chip .odd-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 1px;
}

.match-card .match-note {
  font-size: 0.625rem;
  color: var(--color-muted);
  margin-top: var(--space-xs);
  font-style: italic;
}

/* --- Left Sidebar --- */
.sidebar-left {
  display: none;
}

.sidebar-left .sport-category {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.sidebar-left .sport-category:hover {
  background: var(--color-surface-alt);
  text-decoration: none;
}

.sidebar-left .sport-category.active {
  background: var(--color-primary);
  color: var(--color-text);
  font-weight: 600;
}

.sidebar-left .sport-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sidebar-left .sidebar-section {
  margin-bottom: var(--space-lg);
}

.sidebar-left .sidebar-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xs);
}

/* --- Right Sidebar --- */
.sidebar-right {
  display: none;
}

.coupon-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.coupon-header {
  background: var(--color-primary);
  padding: var(--space-sm) var(--space-md);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coupon-body {
  padding: var(--space-md);
  text-align: center;
}

.coupon-empty {
  color: var(--color-muted);
  font-size: 0.875rem;
  padding: var(--space-lg) 0;
}

.coupon-empty svg {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  color: var(--color-border);
}

.coupon-total {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.coupon-total .total-value {
  font-weight: 700;
  color: var(--color-accent);
}

/* Winners ticker */
.winners-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-md);
}

.winners-header {
  padding: var(--space-sm) var(--space-md);
  font-weight: 700;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.winners-header .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-live);
  animation: pulse-live 1.5s infinite;
}

.winners-list {
  max-height: 200px;
  overflow-y: auto;
}

.winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--color-border);
}

.winner-row:last-child {
  border-bottom: none;
}

.winner-row .winner-name {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.winner-row .winner-amount {
  font-weight: 700;
  color: var(--color-accent);
}

/* --- Content Area --- */
.content-area {
  min-width: 0;
}

.content-area h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}

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

.content-area h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.content-area p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.content-area ul,
.content-area ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.content-area li {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--space-xs);
}

.content-area ul li {
  list-style: disc;
}

.content-area ol li {
  list-style: decimal;
}

.content-area strong {
  font-weight: 600;
}

/* --- Odds format switcher --- */
.odds-switcher {
  display: inline-flex;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  padding: 2px;
  border: 1px solid var(--color-border);
}

.odds-switcher button {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--color-muted);
  transition: all var(--transition-fast);
}

.odds-switcher button.active {
  background: var(--color-primary);
  color: var(--color-text);
}

/* --- Aviator Demo --- */
.aviator-demo {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.aviator-canvas {
  width: 100%;
  max-width: 400px;
  height: 200px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aviator-multiplier {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-mono);
  text-shadow: 0 0 20px rgba(255,198,0,0.5);
}

.aviator-controls {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Bonus Calculator --- */
.bonus-calculator {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.calc-input-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.calc-input-group input {
  flex: 1;
  min-width: 150px;
  height: 44px;
  padding: 0 var(--space-md);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.calc-input-group input:focus {
  border-color: var(--color-primary);
}

.calc-result {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.calc-result .result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
}

.calc-result .result-label {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: var(--space-sm);
  font-style: italic;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--color-surface-alt);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  color: var(--color-muted);
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* --- Pros/Cons --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.pros-card,
.cons-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.pros-card h4 {
  color: var(--color-live);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cons-card h4 {
  color: var(--color-danger);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pros-cons li {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.pros-cons li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pros-card li::before {
  background: var(--color-live);
}

.cons-card li::before {
  background: var(--color-danger);
}

/* --- Responsive --- */
@media (min-width: 601px) and (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1025px) {
  .main-layout {
    grid-template-columns: var(--sidebar-width) 1fr var(--right-sidebar-width);
  }
  .sidebar-left,
  .sidebar-right {
    display: block;
  }
  .sidebar-left {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + var(--space-md));
    align-self: start;
    max-height: calc(100vh - var(--header-height) - var(--nav-height) - var(--space-xl));
    overflow-y: auto;
  }
  .sidebar-right {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + var(--space-md));
    align-self: start;
  }
}

@media (max-width: 600px) {
  .hero-banner {
    padding: var(--space-xl) var(--space-md);
    border-radius: var(--radius-lg);
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .pros-cons {
    grid-template-columns: 1fr;
  }
  .match-card {
    width: 200px;
  }
}
