/* ============================================================
   Kora Live — Home: Hero, Date Strip, Tabs, Match Grid
   ============================================================ */

/* ---- Hero section ----------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(0,168,104,.25), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,184,0,.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(239,68,68,.2);
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Section & Section Head -------------------------------- */
.section { padding: 40px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .bar {
  width: 4px;
  height: 22px;
  background: var(--grad);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- Date Strip ------------------------------------------- */
.date-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }

.date-chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 84px;
  text-align: center;
  transition: .2s;
  cursor: pointer;
}
.date-chip:hover { transform: translateY(-2px); border-color: var(--primary); }
.date-chip.active {
  background: var(--grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 24px -10px var(--primary);
}
.date-chip .day {
  font-size: .75rem;
  font-weight: 600;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.date-chip .num {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 2px;
}

/* ---- Filter Tabs ------------------------------------------ */
.tabs {
  display: flex;
  gap: 8px;
  background: var(--surface);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.tab {
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
  transition: .2s;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--grad);
  color: white;
  box-shadow: 0 6px 16px -6px var(--primary);
}
.tab .count { margin-inline-start: 6px; font-size: .75rem; opacity: .85; }

/* ---- Match Grid ------------------------------------------- */
.matches-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ---- League Group ----------------------------------------- */
.league-group {
  margin-bottom: 32px;
}
.league-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.league-header img {
  width: 32px; height: 32px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 4px;
}
.league-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

/* ---- Match Card ------------------------------------------- */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: .25s ease;
  position: relative;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  animation: rise .4s ease forwards;
}
.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

/* League row */
.match-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 14px;
}
.match-league img {
  width: 22px; height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--surface-2);
  padding: 2px;
}
.match-league .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status pills */
.status-pill {
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status-pill.live {
  background: rgba(239,68,68,.12);
  color: var(--live);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-pill.live .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.5s infinite;
}
.status-pill.upcoming { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.status-pill.finished { background: var(--surface-2); color: var(--muted); }

/* Match body — 3-col grid: home | center | away */
.match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}
.team-logo {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: .25s;
}
.match-card:hover .team-logo { transform: scale(1.05); border-color: var(--primary); }
.team-logo img { width: 44px; height: 44px; object-fit: contain; }
.team-name {
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center score/time */
.match-center  { text-align: center; min-width: 90px; }
.match-score   { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.match-score.live { color: var(--live); }
.match-time    { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.match-vs      { font-size: .75rem; font-weight: 700; color: var(--muted); margin-top: 4px; letter-spacing: .1em; }

/* Match footer */
.match-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .85rem;
  background: var(--grad);
  color: white;
  transition: .2s;
}
.watch-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px var(--primary); }
.watch-btn svg { width: 14px; height: 14px; }
.match-meta { font-size: .8rem; color: var(--muted); }

/* ---- Mobile adjustments ----------------------------------- */
@media (max-width: 640px) {
  .hero         { padding: 40px 0 50px; }
  .section      { padding: 28px 0; }
  .matches-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: stretch; }
  .tabs         { overflow-x: auto; }
  .team-logo    { width: 52px; height: 52px; }
  .team-logo img { width: 38px; height: 38px; }
  .team-name    { font-size: .82rem; }
  .match-score  { font-size: 1.3rem; }
}
