/* ===========================
   The Tuck – Edge Score Baseball
   =========================== */

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

:root {
  --green:   #1a6b2e;
  --green-light: #25903e;
  --cream:   #f5f0e8;
  --brown:   #7b4f2e;
  --red:     #c0392b;
  --dark:    #1a1a2e;
  --text:    #2c2c2c;
  --muted:   #6b7280;
  --border:  #e2d9c9;
  --live:    #e74c3c;
}

body {
  font-family: 'Georgia', serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: var(--dark);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: .03em;
}

.logo-icon { font-size: 1.8rem; }
.logo-text  { color: var(--cream); }

nav { display: flex; gap: 1.5rem; }
nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-family: sans-serif;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s;
}
nav a:hover { color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.tagline {
  font-family: sans-serif;
  color: rgba(255,255,255,.75);
  font-size: 1.15rem;
  letter-spacing: .06em;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
}
.section h2 {
  font-size: 1.6rem;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: .4rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Scoreboard */
.scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.game-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.game-card.live { border-color: var(--live); box-shadow: 0 0 0 2px rgba(231,76,60,.25); }

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 90px;
}
.team-name { font-family: sans-serif; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.score { font-size: 2.2rem; font-weight: bold; color: var(--dark); }

.vs {
  font-family: sans-serif;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}

.live-badge {
  display: inline-block;
  background: var(--live);
  color: #fff;
  font-size: .7rem;
  font-weight: bold;
  padding: .15rem .45rem;
  border-radius: 3px;
  margin-bottom: .25rem;
  animation: pulse 1.5s infinite;
}
.inning { display: block; font-size: .75rem; }

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

/* Standings */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.standings-table th,
.standings-table td {
  padding: .75rem 1rem;
  text-align: left;
  font-family: sans-serif;
  font-size: .9rem;
}
.standings-table th {
  background: var(--dark);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
}
.standings-table td:not(:first-child) { text-align: center; }
.standings-table th:not(:first-child) { text-align: center; }
.standings-table tr:nth-child(even) td { background: rgba(0,0,0,.03); }
.standings-table tr.leader td { font-weight: bold; color: var(--green); }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.stat-card h3 {
  font-family: sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .75rem;
}
.stat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: sans-serif;
  font-size: .95rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.stat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.player { color: var(--text); }
.value  { font-weight: bold; color: var(--green); }

/* Footer */
footer {
  margin-top: auto;
  background: var(--dark);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 1.25rem;
  font-family: sans-serif;
  font-size: .85rem;
}
footer a { color: rgba(255,255,255,.65); text-decoration: none; }
footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 600px) {
  header { flex-direction: column; gap: .75rem; }
  .hero  { padding: 2.5rem 1rem; }
}
