/* ============================================================
   SPOON RIVER SOCCER LEAGUE — Shared Styles
   Colors: Navy #0D2137 · Blue #4A90C4 · Green #4A7C3F
   Fonts: Barlow Condensed (headings) · Barlow (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D2137;
  --navy-mid:   #152D47;
  --blue:       #4A90C4;
  --blue-light: #6AAED8;
  --green:      #4A7C3F;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --gray:       #E2E8EF;
  --gray-mid:   #B8C4D0;
  --text:       #1A2B3C;
  --text-2:     #4A5E70;
  --text-3:     #7A8E9E;
  --radius:     10px;
  --radius-sm:  5px;
  --shadow:     0 2px 8px rgba(13,33,55,0.10);
  --shadow-md:  0 4px 16px rgba(13,33,55,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */

.condensed {
  font-family: 'Barlow Condensed', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ── LAYOUT ──────────────────────────────────────────────── */

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.section-rule {
  flex: 1;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  margin-bottom: 4px;
}

.section-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ── NAVIGATION ──────────────────────────────────────────── */

.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.nav-logo-text span {
  color: var(--blue-light);
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links a.active {
  color: var(--blue-light);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
  font-size: 22px;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 12px 16px 16px;
    gap: 2px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open a { font-size: 16px; padding: 10px 12px; }
  .nav-mobile-toggle { display: block; }
}

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 64px 20px 56px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74,144,196,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(74,124,63,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}

.hero-title span { color: var(--blue-light); }

.hero-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.hero-season-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.hero-season-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── STANDINGS TABLE ──────────────────────────────────────── */

.standings-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
}

.standings-table thead tr {
  background: var(--navy);
}

.standings-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 10px 10px;
  text-align: left;
}

.standings-table th.r,
.standings-table td.r { text-align: right; }

.standings-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--gray);
  font-size: 15px;
  color: var(--text);
}

.standings-table tr:last-child td { border-bottom: none; }

.standings-table tr:hover td { background: var(--off-white); }

.rank-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--gray-mid);
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-initial {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.team-name-link {
  font-weight: 600;
  color: var(--navy);
  transition: color 0.15s;
}

.team-name-link:hover { color: var(--blue); }

.pts-cell {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--navy);
}

.gd-pos { color: var(--green); font-weight: 600; }
.gd-neg { color: #C0392B; font-weight: 600; }
.gd-zero { color: var(--text-3); }

.form-pip {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 2px;
}
.form-w { background: var(--green); }
.form-d { background: var(--gray-mid); }
.form-l { background: #C0392B; }

/* ── RESULT CARDS ─────────────────────────────────────────── */

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.result-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.result-teams {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-team {
  flex: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
}

.result-team.away { text-align: right; }

.result-score {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.score-box {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
}

.score-sep {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}

/* ── CLUB GRID ────────────────────────────────────────────── */

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.club-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
}

.club-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.club-card-header {
  background: var(--navy);
  padding: 28px 20px 20px;
  text-align: center;
  position: relative;
}

.club-card-initial {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,0.2);
}

.club-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.03em;
}

.club-card-team {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

.club-card-body {
  padding: 16px 20px;
}

.club-stat-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 12px;
}

.club-stat {
  text-align: center;
}

.club-stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.club-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.club-card-footer {
  padding: 10px 20px 14px;
  border-top: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.club-town {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.club-view-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── CLUB DETAIL PAGE ─────────────────────────────────────── */

.club-hero {
  background: var(--navy);
  padding: 40px 20px 36px;
}

.club-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.club-hero-initial {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.2);
}

.club-hero-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.club-hero-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.club-hero-meta span { color: var(--blue-light); }

.club-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.club-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  transition: background 0.15s;
}

.club-link-btn:hover { background: rgba(255,255,255,0.18); color: var(--white); }

/* ── SEASON RECORD STRIP ──────────────────────────────────── */

.record-strip {
  background: var(--navy-mid);
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.record-stat {
  text-align: center;
}

.record-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.record-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ── ROSTER TABLE ─────────────────────────────────────────── */

.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.roster-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 12px;
  border-bottom: 2px solid var(--gray);
  text-align: left;
}

.roster-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray);
  color: var(--text);
}

.roster-table tr:last-child td { border-bottom: none; }
.roster-table tr:hover td { background: var(--off-white); }

.jersey-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: var(--navy);
  width: 48px;
}

/* ── SCHEDULE TABLE ───────────────────────────────────────── */

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.schedule-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 10px 12px;
  text-align: left;
  background: var(--navy);
}

.schedule-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--gray);
  font-size: 15px;
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--off-white); }

.match-status {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}

.status-final { background: #E8F5E9; color: #2E7D32; }
.status-upcoming { background: #E3F2FD; color: #1565C0; }

/* ── INFO CARDS ───────────────────────────────────────────── */

.info-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
}

.info-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 10px;
}

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

.staff-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 15px;
}

.staff-label {
  font-weight: 600;
  color: var(--text-3);
  min-width: 80px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 1px;
}

.staff-val { color: var(--text); }

/* ── TWO-COL GRID ─────────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
  .club-hero-inner { flex-direction: column; text-align: center; }
  .club-links { justify-content: center; }
  .record-strip { gap: 24px; }
}

/* ── BREADCRUMB ───────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  padding: 12px 0 0;
}

.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-mid); }

/* ── FOOTER ───────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  padding: 32px 20px 24px;
  margin-top: auto;
}

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

.footer-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); }

@media (max-width: 580px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── UTILITY ──────────────────────────────────────────────── */

.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.loading {
  text-align: center;
  padding: 40px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
