/* ===========================
   ALCO GIRLS SOCCER — STYLES
   Colors: Royal Blue #1a3a8f / White / Gold accent #f0b418
   =========================== */

:root {
  --blue:       #1a3a8f;
  --blue-mid:   #1e4dbf;
  --blue-light: #3a6cd4;
  --blue-pale:  #e8edf8;
  --white:      #ffffff;
  --gold:       #f0b418;
  --gold-dark:  #c9940e;
  --gray-dark:  #1a1c22;
  --gray-mid:   #444a5a;
  --gray-light: #f4f5f8;
  --text:       #1a1c22;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 4px 24px rgba(26,58,143,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  border-bottom: 3px solid var(--gold);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; }
.nav-crest { flex-shrink: 0; }
.nav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.nav-sub {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 0.4rem 0.9rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--blue-mid);
  padding: 0.5rem 1rem 1rem;
}
.nav-mobile a {
  padding: 0.65rem 0.5rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, var(--blue) 0%, #0e2468 60%, #0b1c52 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 1.5rem 3rem;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 28px,
      rgba(255,255,255,0.025) 28px,
      rgba(255,255,255,0.025) 30px
    );
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.9;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
}
.hero-stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}
.hero-ball {
  position: absolute;
  right: 6%;
  bottom: -10%;
  width: clamp(200px, 35vw, 400px);
  opacity: 0.12;
  z-index: 0;
  animation: spin 40s linear infinite;
}
.ball-svg { width: 100%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- SECTIONS ---- */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--gray-light); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 2.5rem; }
.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.4rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}

/* ---- SCHEDULE ---- */
.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.schedule-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1.5px solid #e0e4ef;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.section-alt .schedule-item { background: var(--white); }
.schedule-item:hover { border-color: var(--blue-light); box-shadow: var(--shadow); }
.schedule-item.home { border-left: 4px solid var(--blue); }
.schedule-item.away { border-left: 4px solid var(--gray-mid); }
.schedule-item.win  { border-left: 4px solid #16a34a; }
.schedule-item.loss { border-left: 4px solid #dc2626; }
.schedule-item.tie  { border-left: 4px solid var(--gold-dark); }
.sched-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gray-mid);
  line-height: 1.3;
}
.sched-date .day { font-size: 1.2rem; color: var(--blue); }
.sched-opponent { font-weight: 600; font-size: 1rem; color: var(--text); }
.sched-location { font-size: 0.8rem; color: var(--gray-mid); margin-top: 2px; }
.sched-result {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: right;
  min-width: 70px;
}
.sched-result.win  { color: #16a34a; }
.sched-result.loss { color: #dc2626; }
.sched-result.tie  { color: var(--gold-dark); }
.sched-result.upcoming { color: var(--blue-light); font-size: 0.8rem; font-weight: 600; }
.sched-ha {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-top: 3px;
  display: inline-block;
}
.ha-home { background: #dbeafe; color: var(--blue); }
.ha-away { background: #f3f4f6; color: var(--gray-mid); }

/* ---- ROSTER ---- */
.roster-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.filter-btn.active, .filter-btn:hover { background: var(--blue); color: #fff; }
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.player-card {
  background: var(--white);
  border: 1.5px solid #e0e4ef;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
}
.section-alt .player-card { background: var(--white); }
.player-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.player-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--blue-pale);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.player-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.player-pos {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 20px;
}
.pos-GK  { background: #fef3c7; color: #92400e; }
.pos-DEF { background: #dbeafe; color: #1e40af; }
.pos-MID { background: #d1fae5; color: #065f46; }
.pos-FWD { background: #fee2e2; color: #991b1b; }
.player-grade { font-size: 0.75rem; color: var(--gray-mid); margin-top: 5px; }
.player-card.hidden { display: none; }

/* ---- NEWS ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.news-card {
  background: var(--white);
  border: 1.5px solid #e0e4ef;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.news-card:hover { box-shadow: var(--shadow); }
.news-card-top {
  height: 6px;
  background: var(--blue);
}
.news-card-top.gold { background: var(--gold); }
.news-card-top.green { background: #16a34a; }
.news-body { padding: 1.25rem; }
.news-date {
  font-size: 0.75rem;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.news-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.news-excerpt { font-size: 0.9rem; color: var(--gray-mid); line-height: 1.6; }

/* ---- COACHES ---- */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.coach-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid #e0e4ef;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  transition: box-shadow 0.15s;
}
.coach-card:hover { box-shadow: var(--shadow); }
.coach-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}
.coach-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2px;
}
.coach-role {
  font-size: 0.8rem;
  color: var(--blue-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.coach-info { font-size: 0.8rem; color: var(--gray-mid); margin-top: 4px; }

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; }
.gi-large { grid-column: span 2; grid-row: span 2; }
.gi-wide  { grid-column: span 2; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gp1 { background: linear-gradient(135deg, #1a3a8f, #0e2468); color: rgba(255,255,255,0.5); }
.gp2 { background: linear-gradient(135deg, #2a5abf, #1a3a8f); color: rgba(255,255,255,0.4); }
.gp3 { background: linear-gradient(135deg, #1e4dbf, #3a6cd4); color: rgba(255,255,255,0.4); }
.gp4 { background: linear-gradient(135deg, #c9940e, #f0b418); color: rgba(255,255,255,0.5); }
.gp5 { background: linear-gradient(135deg, #0b1c52, #1a3a8f); color: rgba(255,255,255,0.4); }
.gallery-note {
  font-size: 0.85rem;
  color: var(--gray-mid);
  text-align: center;
  padding: 1rem;
  background: var(--gray-light);
  border-radius: var(--radius);
}
.gallery-note code {
  background: #e0e4ef;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.82rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--blue);
  color: var(--white);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
}
.footer-sub { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 4px; line-height: 1.5; }
.footer-links h4, .footer-contact h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 0.5rem; line-height: 1.6; }
.footer-bottom {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: 420px; padding: 3rem 1.25rem 2.5rem; }
  .hero-ball { opacity: 0.08; right: -5%; }
  .schedule-item { grid-template-columns: 80px 1fr auto; gap: 0.75rem; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gi-large { grid-column: span 2; }
  .gi-wide  { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .schedule-item { grid-template-columns: 1fr; }
  .sched-date .day { display: inline; margin-right: 4px; }
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ---- GALLERY (dynamic photos) ---- */
.gallery-grid-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-photo-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-light);
  border: 1.5px solid #e0e4ef;
}
.gallery-photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.gallery-photo-item:hover img { transform: scale(1.03); }
.gallery-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--gray-mid);
  font-style: italic;
}
.nav-admin-link {
  background: rgba(240,180,24,0.15) !important;
  color: var(--gold) !important;
  border-radius: var(--radius);
}
.nav-admin-link:hover { background: rgba(240,180,24,0.3) !important; }

/* ---- PLAYER PHOTO ---- */
.player-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.5rem;
  border: 3px solid var(--blue-pale);
}
.player-avatar img { width:100%; height:100%; object-fit:cover; }
.player-num-small {
  font-size: 0.75rem;
  color: var(--gray-mid);
  margin-bottom: 0.25rem;
}

/* ---- COACH PHOTO ---- */
.coach-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--blue-pale);
}
