/* EverySportStats.com — base stylesheet, v1 */

:root {
  --bg: #0f1216;
  --bg-elevated: #171b21;
  --border: #262c35;
  --text: #e8ebef;
  --text-muted: #9aa4b2;
  --accent: #4fd1c5;
  --accent-strong: #38b8ac;
  --link: #7dd3fc;
  --max-width: 1080px;
  --radius: 10px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / nav */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

nav.sport-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav.sport-tabs a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

nav.sport-tabs a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

nav.sport-tabs a.active {
  color: var(--bg);
  background: var(--accent);
}

nav.sport-tabs a.coming-soon {
  opacity: 0.55;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 8px;
}

/* Content sections */
main { padding: 40px 0 80px; }

section { margin-bottom: 44px; }

h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

p { color: var(--text); margin: 0 0 14px; }
p.muted, .muted { color: var(--text-muted); }

/* Sport status cards on homepage */
.sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.sport-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sport-card h3 { margin: 0; }

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 100px;
  width: fit-content;
}

.status-live { background: rgba(79,209,197,0.15); color: var(--accent); }
.status-building { background: rgba(250,204,21,0.15); color: #facc15; }
.status-planned { background: rgba(148,163,184,0.15); color: var(--text-muted); }

/* Methodology / callout box */
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 20px 0;
}

.callout p:last-child { margin-bottom: 0; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer.site-footer a { color: var(--text-muted); }
footer.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }

/* Cookie consent banner */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 100;
  display: none;
}

#consent-banner.visible { display: block; }

.consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.consent-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1 1 320px;
}

.consent-actions { display: flex; gap: 10px; }

button.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

button.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06201d;
}

button.btn:hover { opacity: 0.9; }

/* Table styling (for future stats tables) */
table.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.stats-table th, table.stats-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

table.stats-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Team/club/country badge — colored initials, not a trademarked crest
   image (see data/team_colors.py for why). Gives tables a visual scan
   point without the licensing exposure of official logos. */
.team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

@media (max-width: 640px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  nav.sport-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}
