/* ============================================
   Chatki Bet — Home Page Styles
   ============================================ */

/* Main Content Offset */
.main-content {
  padding-top: calc(var(--header-height) + var(--nav-height));
}

/* --- Three-Column Layout --- */
.layout-3col {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--right-sidebar-width);
  gap: 20px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px;
}
.col-left,
.col-right {
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height) + 16px);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - var(--nav-height) - 32px);
  overflow-y: auto;
}
.col-center { min-width: 0; }

/* --- Left Sidebar --- */
.sidebar-sports {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.sidebar-sports h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 12px;
  margin-top: 0;
}
.sport-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition-fast);
  cursor: pointer;
}
.sport-item:hover { background: rgba(245, 179, 1, 0.08); }
.sport-item .sport-icon { width: 20px; height: 20px; color: var(--color-muted); }
.sidebar-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.sidebar-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
  margin-bottom: 8px;
  margin-top: 0;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--color-text);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.sidebar-link:hover { background: rgba(245, 179, 1, 0.08); color: var(--color-primary); }

/* --- Right Sidebar --- */
.betslip-widget,
.winners-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.betslip-widget h3,
.winners-widget h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text);
  margin-bottom: 12px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.betslip-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--color-muted);
  font-size: 13px;
}
.betslip-empty svg { margin: 0 auto 12px; color: var(--color-border); }
.winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.winner-row:last-child { border-bottom: none; }
.winner-name { color: var(--color-muted); }
.winner-amount { color: var(--color-primary); font-weight: 600; }

/* --- Hero Banner --- */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a2030 50%, var(--color-dark) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 48px 40px;
  margin-bottom: 24px;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #009639 33%, #FCDD09 33% 66%, #DA121A 66%);
}
.hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 179, 1, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-content h1 .text-primary { color: var(--color-primary); }
.hero-content p {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 179, 1, 0.12);
  border: 1px solid rgba(245, 179, 1, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

/* --- Featured Matches --- */
.featured-matches {
  margin-bottom: 24px;
}
.featured-matches h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.match-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color var(--transition-fast);
}
.match-card:hover { border-color: rgba(245, 179, 1, 0.3); }
.match-card .match-league {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.match-card .match-teams {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.match-card .match-odds {
  display: flex;
  gap: 8px;
}
.match-card .odd-btn {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.match-card .odd-btn:hover {
  border-color: var(--color-primary);
  background: rgba(245, 179, 1, 0.08);
}
.match-card .odd-label {
  font-size: 10px;
  color: var(--color-muted);
  display: block;
}
.match-card .odd-value {
  font-weight: 700;
  color: var(--color-odds);
  font-size: 14px;
}
.match-card .example-label {
  font-size: 10px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* --- SEO Content Area --- */
.seo-content {
  background: var(--color-bg);
}
.seo-content .section-banner {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 2em 0 1.5em;
  position: relative;
  overflow: hidden;
}
.seo-content .section-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #009639 33%, #FCDD09 33% 66%, #DA121A 66%);
}
.seo-content .section-banner h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.seo-content .section-banner .cta-inline {
  margin-top: 16px;
}

/* --- Responsive --- */
@media (min-width: 1025px) {
  .header-search { display: block; }
}
@media (max-width: 1024px) {
  .layout-3col {
    grid-template-columns: 1fr;
  }
  .col-left,
  .col-right { display: none; }
  .sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    cursor: pointer;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .hero-banner {
    padding: 28px 20px;
    min-height: auto;
  }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .match-cards {
    grid-template-columns: 1fr;
  }
  .seo-content .section-banner {
    padding: 20px 16px;
  }
}
