/* Peacemakers FC — mobile-first styles */

:root {
  --home: #2e7d32;      /* accent for HOME */
  --away: #1a1a1a;      /* accent for AWAY (black jersey) */
  --brand: #14284d;     /* deep navy (from crest) */
  --brand-2: #1e3d73;   /* navy */
  --gold: #d4af37;      /* crest gold */
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #1c2434;
  --muted: #5d6577;
  --line: #e2e6ee;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--brand-2); }

.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;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 22px 0 22px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.hero .logo {
  display: block;
  width: 210px;
  height: 210px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.hero h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.3px;
}
.subtitle {
  margin: 6px 0 0;
  opacity: 0.9;
  font-size: 0.98rem;
}
.subtitle .dot { margin: 0 6px; opacity: 0.6; }

.jersey-key {
  list-style: none;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 0;
  padding: 0;
  font-size: 0.9rem;
}
.jersey-key li { display: flex; align-items: center; gap: 7px; }
.swatch {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: inline-block;
}
.swatch-home { background: #ffffff; }
.swatch-away { background: #1a1a1a; }

.cal { margin: 16px 0 0; }
.cal-btn {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}
.cal-btn:hover { background: #eef3f0; }

/* ---- Next up (two cards) ---- */
.next-up {
  display: grid;
  gap: 12px;
  margin: -18px 0 22px;   /* overlaps hero slightly */
}
.next-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--brand-2);
  padding: 16px 16px 14px;
  position: relative;
}
.next-card-practice { border-left-color: var(--gold); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 4px;
  font-weight: 700;
}
.next-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.matchup { margin: 0 0 6px; font-size: 1.05rem; }
.jersey-note { margin: 0 0 8px; color: var(--muted); }
.next-card .loc, .next-card .arrive, .next-card .notes {
  margin: 4px 0; font-size: 0.95rem;
}
.next-card .notes { color: var(--muted); font-style: italic; }

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 10px 0;
  margin-bottom: 4px;
}
.tab {
  flex: 1 1 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  color: var(--brand);
  background: #e9edf4;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { background: #dfe5ef; }
.tab.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.tab-panel[hidden] { display: none; }

/* ---- Sections ---- */
.section-title {
  font-size: 1.15rem;
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}
.empty { color: var(--muted); font-style: italic; }

/* ---- Cards ---- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  border-left: 6px solid var(--line);
}
.card.game.is-next { border-left-color: var(--brand-2); }
.card.past { opacity: 0.55; }
.card.cancelled {
  opacity: 0.8;
  border-left-color: #b91c1c;
  background: repeating-linear-gradient(
    -45deg,
    #fff,
    #fff 12px,
    #fbeaea 12px,
    #fbeaea 24px
  );
}
.card.cancelled .card-date .day { text-decoration: line-through; }

.card-date {
  flex: 0 0 52px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.card-date .mon {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 700;
}
.card-date .day { font-size: 1.5rem; font-weight: 800; line-height: 1; }

.card-body { flex: 1 1 auto; min-width: 0; }
.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.opp { font-weight: 700; font-size: 1.02rem; }
.meta { margin: 3px 0; font-size: 0.92rem; color: var(--text); }
.meta.strong { font-weight: 700; }
.meta.note { color: var(--muted); font-style: italic; }
.meta.jersey { color: var(--muted); }

/* ---- Pills & tags ---- */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
}
.pill-home { background: var(--home); }
.pill-away { background: var(--away); }
.pill-tbd { background: #78716c; }
.pill-off { background: #b91c1c; }
.tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-2);
  border: 1px solid var(--brand-2);
  border-radius: 999px;
  padding: 1px 8px;
}
.maplink { margin-left: 6px; font-size: 0.85rem; white-space: nowrap; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 34px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--brand-2); text-decoration: none; }
.contact .dot { margin: 0 6px; opacity: 0.6; }
.updated { margin-top: 6px; font-size: 0.8rem; }

/* ---- Larger screens ---- */
@media (min-width: 620px) {
  .hero h1 { font-size: 2.3rem; }
  .next-up { grid-template-columns: 1fr 1fr; margin-top: -16px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
