@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=DM+Serif+Display&display=swap');

/* =========================================================
   WHATCHAN CRICKET — STADIUM LIGHTS DESIGN SYSTEM
   ========================================================= */

:root {
  --bg:          #050c0a;
  --bg-deep:     #030806;
  --bg-raised:   #0c1814;
  --bg-card:     #12221d;
  --bg-soft:     #182d27;
  --text:        #f0f7f2;
  --text-soft:   #b0c4ba;
  --muted:       #7a9489;
  --border:      rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.13);
  --green:       #4ade80;
  --green-bright:#22c55e;
  --green-soft:  rgba(74,222,128,0.12);
  --gold:        #fde047;
  --gold-soft:   rgba(253,224,71,0.1);
  --blue:        #60a5fa;
  --blue-soft:   rgba(96,165,250,0.1);
  --red:         #f87171;
  --red-soft:    rgba(248,113,113,0.1);
  --shadow:      0 24px 64px rgba(0,0,0,0.4);
  --radius:      20px;
  --radius-sm:   12px;
  --radius-lg:   28px;
  --max:         1240px;
  --font:        'Inter', -apple-system, sans-serif;
  --font-display:'DM Serif Display', Georgia, serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(74,222,128,0.07), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(253,224,71,0.04), transparent 40%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; text-decoration: none; transition: 0.2s ease; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
}

/* ── Header & Nav ───────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(5,12,10,0.88);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #050c0a;
  font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(34,197,94,0.28);
  flex-shrink: 0;
}
.brand span { color: var(--green); }
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--green);
  transition: 0.25s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding: 60px 0;
}
.section--tight {
  padding: 28px 0;
}
.section--bordered {
  border-top: 1px solid var(--border);
}
.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section__title em {
  font-style: normal;
  color: var(--green);
}
.section__summary {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(to right, var(--green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__summary {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 680px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__aside {
  padding: 36px;
  display: grid;
  gap: 22px;
  border-color: var(--border-bright);
}

/* ── Competition Hero ───────────────────────────────────── */
.competition-hero {
  padding: 120px 0 70px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.competition-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,12,10,0.45) 0%, var(--bg) 95%);
  z-index: 1;
}
.competition-hero .container { position: relative; z-index: 2; }
.competition-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.competition-hero h1 em {
  font-style: normal;
  color: var(--green);
}
.competition-hero .hero__summary {
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 36px;
}

/* ── Page Hero (utility pages) ─────────────────────────── */
.page-hero {
  padding: 60px 0 40px;
}
.page-hero__box {
  padding: 48px 52px;
  border-top: 4px solid var(--green);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero__title em {
  font-style: normal;
  color: var(--green);
}
.page-hero__summary {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 660px;
}

/* ── Eyebrow / Kicker ───────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 16px;
}
.mini-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.mini-value {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

/* ── Panels & Cards ─────────────────────────────────────── */
.panel, .card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.card {
  padding: 26px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(74,222,128,0.35);
}
a.card:hover { border-color: var(--green); }

/* ── Bento Grid ─────────────────────────────────────────── */
.bento-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.bento-item       { grid-column: span 4; }
.bento-item--wide { grid-column: span 8; }

/* ── General Grids ──────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  min-height: 48px;
  transition: 0.2s ease;
}
.btn--primary {
  background: var(--green);
  color: #050c0a;
}
.btn--primary:hover { background: var(--green-bright); transform: scale(1.02); }
.btn--secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-bright);
  color: var(--text);
}
.btn--secondary:hover { background: rgba(255,255,255,0.09); }

/* ── Tags / Pills ───────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.4;
}
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--blue  { background: var(--blue-soft);  color: var(--blue); }
.tag--gold  { background: var(--gold-soft);  color: var(--gold); }
.tag--red   { background: var(--red-soft);   color: var(--red); }

/* ── Trust Strip ────────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 14px 20px;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.trust-strip__item { display: flex; gap: 8px; align-items: baseline; }
.trust-strip__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.trust-strip__value {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-card {
  flex: 1;
  min-width: 130px;
  padding: 20px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.stat-card__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ── Stat-Line (F1-style) ───────────────────────────────── */
.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stat-line__item {
  flex: 1;
  min-width: 120px;
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-line__item:last-child { border-right: none; }
.stat-line__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}
.stat-line__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 5px;
}

/* ── Content Layout (2-col: main + aside) ───────────────── */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.content-layout__main { min-width: 0; }
.content-layout__aside { display: flex; flex-direction: column; gap: 16px; }

/* ── Pull Quote ─────────────────────────────────────────── */
.pull-quote {
  margin: 40px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ── Highlight Box ──────────────────────────────────────── */
.highlight-box {
  padding: 20px 24px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

/* ── Match Cards ────────────────────────────────────────── */
.match-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.match-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.match-card__teams {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}
.match-card__channel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* ── Channel Pills ──────────────────────────────────────── */
.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
}
.channel-pill img {
  width: auto;
  height: 18px;
  max-width: 60px;
  object-fit: contain;
  display: inline-block;
  border-radius: 3px;
}

/* ── Result Card ────────────────────────────────────────── */
.result-card { display: flex; flex-direction: column; gap: 8px; }
.result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.result-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
thead { background: var(--bg-soft); }
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.4;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Content-Rich (editorial sections) ──────────���──────── */
.content-rich h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  letter-spacing: -0.02em;
  padding: 14px 20px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}
.content-rich h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.content-rich p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.content-rich ul, .content-rich ol {
  padding-left: 1.5em;
  margin-bottom: 1.5rem;
}
.content-rich li {
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.content-callout {
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
}
.content-callout h4 { margin-top: 0; color: var(--blue); font-size: 1rem; margin-bottom: 10px; }
.content-callout p:last-child { margin-bottom: 0; }

/* ── Link List ──────────────────────────────────────────── */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link-list a.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  font-weight: 800;
  font-size: 0.95rem;
}
.link-list a.card span {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-soft);
}

/* ── Competition Card ───────────────────────────────────── */
.competition-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

/* ── Footer ───────────────────────────────────────���─────── */
.footer {
  padding: 60px 0 40px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer__inner > div:first-child {
  font-weight: 800;
  font-size: 1.05rem;
}
.footer__inner > div:first-child div {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.footer__nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
}
.footer__nav a:hover { color: var(--green); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .bento-item { grid-column: span 6; }
  .bento-item--wide { grid-column: span 12; }
  .content-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header__inner { flex-direction: column; padding: 16px 0; gap: 12px; }
  .nav { gap: 10px; font-size: 0.82rem; flex-wrap: wrap; justify-content: center; }
  .hero h1, .competition-hero h1 { font-size: 2.8rem; }
  .bento-item { grid-column: span 12; }
  .bento-item--wide { grid-column: span 12; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; }
  .stat-line__item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .stat-line__item:nth-last-child(-n+2) { border-bottom: none; }
  .section__header { flex-direction: column; }
  .footer__inner { flex-direction: column; }
  .page-hero__box { padding: 32px 28px; }
  .hero__aside { padding: 28px; }
  table { font-size: 0.8rem; }
  th, td { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .hero h1, .competition-hero h1 { font-size: 2.2rem; }
  .btn { padding: 11px 22px; font-size: 0.88rem; }
  .card { padding: 20px; }
  .trust-strip { padding: 12px 16px; }
}
