:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: rgba(20, 25, 38, 0.82);
  --panel-strong: #151b29;
  --text: #f6f8ff;
  --muted: #aeb7cc;
  --brand: #f4bd24;
  --brand-2: #3f82ff;
  --line: rgba(255, 255, 255, 0.1);
  --ok: #42d392;
  --live: #ff5470;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgba(63, 130, 255, 0.17), transparent 30rem),
    radial-gradient(circle at 10% 20%, rgba(244, 189, 36, 0.13), transparent 26rem),
    var(--bg);
}

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand { font-size: 1.35rem; font-weight: 900; letter-spacing: 0.04em; text-decoration: none; }
.brand span { color: var(--brand); }
.navlinks { display: flex; gap: 18px; color: var(--muted); font-weight: 650; flex-wrap: wrap; }
.navlinks a { text-decoration: none; }
.navlinks a:hover, .navlinks a:focus-visible { color: var(--text); }
.navlinks a[aria-current="page"] { color: var(--brand); }

.lang-switch select {
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 650;
  font-family: inherit;
}

.hero { padding: 96px 0 64px; display: grid; gap: 24px; }
.eyebrow { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
h1 { margin: 14px 0 20px; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.045em; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--panel-strong); text-decoration: none;
  font-weight: 800; color: var(--text); cursor: pointer; font-size: 0.95rem; font-family: inherit;
}
.button.primary { color: #10131a; background: var(--brand); border-color: var(--brand); }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.section-title { font-size: 1.4rem; margin: 0 0 4px; grid-column: 1 / -1; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px 0 86px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.card h2, .card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.page { padding: 64px 0 100px; }
.page-header { max-width: 760px; margin-bottom: 34px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.article { max-width: 880px; display: grid; gap: 16px; }
.article section { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.article h2 { margin: 0 0 12px; font-size: 1.25rem; }
.article p, .article li { color: var(--muted); line-height: 1.7; }
.article p:last-child { margin-bottom: 0; }
.article strong { color: var(--text); }
.article a { color: #89b5ff; }
.notice { border-left: 3px solid var(--brand) !important; }
.fineprint { color: var(--muted); font-size: 0.85rem; line-height: 1.6; max-width: 700px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 800; }

/* ── Veri kontrolleri (tarih seçici, lig seçici) ── */
.data-controls { display: flex; align-items: center; gap: 10px; margin: 8px 0 28px; flex-wrap: wrap; }
.data-controls input[type="date"], .data-controls select {
  background: var(--panel-strong); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-family: inherit; font-size: 0.95rem; min-height: 44px;
}

/* ── Veri bölgesi ortak durumları (loading/empty/error/unavailable) ── */
.data-region { min-height: 120px; }
.state-message {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px;
}
.state-message.is-error { border-color: rgba(255, 84, 112, 0.4); color: #ffb3c0; }

/* ── Maç listesi ── */
.competition-group { margin-bottom: 30px; }
.competition-group h3 { font-size: 1.05rem; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.match-row {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  text-decoration: none; color: var(--text); margin-bottom: 8px;
}
.match-row:hover { border-color: var(--brand); }
.match-row .kickoff-cell { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.match-row .teams-cell { display: grid; gap: 4px; }
.match-row .team-line { display: flex; justify-content: space-between; gap: 12px; }
.match-row .team-name { font-weight: 650; }
.match-row .team-score { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--brand); }
.status-pill {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 999px; background: var(--panel-strong); color: var(--muted);
  white-space: nowrap;
}
.status-pill.is-live { background: rgba(255, 84, 112, 0.16); color: var(--live); }
.status-pill.is-finished { background: rgba(66, 211, 146, 0.14); color: var(--ok); }

/* ── Puan durumu tablosu ── */
.standings-table-wrap { overflow-x: auto; }
table.standings-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.standings-table th, table.standings-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
table.standings-table th:nth-child(2), table.standings-table td:nth-child(2) { text-align: left; }
table.standings-table thead th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.standings-table td.points-cell { font-weight: 800; color: var(--brand); }

/* ── VIP kilitli kart ── */
.vip-card {
  position: relative; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(145deg, rgba(27, 34, 51, 0.95), rgba(13, 17, 27, 0.9));
  margin-bottom: 14px; display: grid; gap: 10px;
}
.vip-card .vip-rank { color: var(--brand); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.vip-card .vip-teams { font-size: 1.15rem; font-weight: 800; }
.vip-card .vip-meta { color: var(--muted); font-size: 0.9rem; }
.vip-card .locked-badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 12px;
  border-radius: 999px; background: var(--panel-strong); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.8rem; font-weight: 700;
}
.vip-card .locked-badge::before { content: "🔒"; font-size: 0.85em; }

/* ── Reklam yer tutucu (bu turda AKTİF DEĞİL — yalnız düzen rezervasyonu) ── */
.ad-slot-reserved { display: none; }

footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 90px; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner .fineprint { flex-basis: 100%; margin: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }

@media (max-width: 760px) {
  .nav { align-items: flex-start; padding: 18px 0; }
  .navlinks { gap: 12px; font-size: .88rem; }
  .hero { padding-top: 56px; }
  .grid { grid-template-columns: 1fr; }
  .match-row { grid-template-columns: 56px 1fr; }
  .match-row .status-pill { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform .2s ease, background .2s ease; }
}
