/* ============================================================
   Plano Sharks Baseball · styles.css
   Color scheme: Teal & White
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --teal-900: #062a35;
  --teal-800: #0a3d4a;
  --teal-700: #0d5266;
  --teal-600: #0e6b7c;
  --teal-500: #1a8fa8;
  --teal-400: #1ab5d4;
  --teal-300: #2dd4f0;
  --teal-200: #7de8f8;
  --teal-100: #c2f3fc;
  --teal-50:  #e8fafd;

  --color-bg:       #ffffff;
  --color-bg-shaded:#f0f8fa;
  --color-text:     #0c2830;
  --color-muted:    #4a7a8a;
  --color-border:   #c8e8f0;

  --color-win:      #16a34a;
  --color-win-bg:   #dcfce7;
  --color-upcoming: #0e6b7c;

  --font-sans: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --max-w: 1080px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 4px rgba(10, 61, 74, 0.08);
  --shadow:    0 4px 16px rgba(10, 61, 74, 0.12);
  --shadow-lg: 0 8px 36px rgba(10, 61, 74, 0.16);

  --transition: 200ms ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--teal-300); }
ul[role="list"] { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: 5rem;
}
.section-shaded { background: var(--color-bg-shaded); }

.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}
.section-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.section-sub {
  color: var(--color-muted);
  margin-top: 0.4rem;
  font-size: 1rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-300);
  color: var(--teal-900);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--teal-200);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 212, 240, 0.35);
}
.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline-light:hover, .btn-outline-light:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-1px);
}

/* ── Header / Nav ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal-900);
  border-bottom: 1px solid rgba(45, 212, 240, 0.18);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-name    { font-weight: 800; font-size: 1rem; color: white; }
.nav-tagline { font-size: 0.72rem; color: var(--teal-300); text-transform: uppercase; letter-spacing: 0.06em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 4px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: white;
  background: rgba(255,255,255,0.08);
}
.nav-cta-btn {
  background: var(--teal-300) !important;
  color: var(--teal-900) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 50px !important;
}
.nav-cta-btn:hover, .nav-cta-btn:focus-visible {
  background: var(--teal-200) !important;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  padding-top: 4.5rem;
}

/* Decorative circles */
.hero-bg-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(45, 212, 240, 0.15);
}
.hero-circle-1 { width: 420px; height: 420px; top: -180px; right: -80px; }
.hero-circle-2 { width: 240px; height: 240px; top: -80px;  right: 80px; border-color: rgba(45, 212, 240, 0.1); }
.hero-circle-3 { width: 600px; height: 600px; bottom: -320px; left: -160px; border-color: rgba(45, 212, 240, 0.07); }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-bottom: 3rem;
}

.hero-logo-col { flex-shrink: 0; }
.hero-logo {
  width: clamp(160px, 22vw, 240px);
  height: clamp(160px, 22vw, 240px);
  filter: drop-shadow(0 8px 32px rgba(45, 212, 240, 0.3));
}

.hero-text-col { color: white; flex: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 0.75rem;
}
.hero-text-col h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: white;
  margin-bottom: 0.75rem;
}
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stats bar */
.hero-stats-bar {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(45, 212, 240, 0.15);
  padding-block: 1.25rem;
}
.hero-stats-inner {
  display: flex;
  justify-content: center;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: white;
}
.stat-item:last-child { border-right: none; }
.stat-item strong {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--teal-300);
  line-height: 1;
}
.stat-item span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
}

/* Wave divider */
.wave-divider {
  display: block;
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg { display: block; width: 100%; height: 60px; }

/* ── Schedule ───────────────────────────────────────────── */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.game-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.game-win   { border-left: 4px solid var(--color-win); }
.game-upcoming { border-left: 4px solid var(--teal-300); }

.game-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  background: var(--color-bg-shaded);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  text-align: center;
}
.gd-month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-600);
}
.gd-day {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--teal-800);
  line-height: 1;
}

.game-details { flex: 1; min-width: 0; }
.game-vs {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}
.game-opponent {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.1rem;
}

.game-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 80px;
}
.result-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}
.result-score {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-win);
}
.upcoming-label { color: var(--teal-500); }

/* ── Roster ─────────────────────────────────────────────── */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.player-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.player-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.player-photo-wrap {
  position: relative;
  background: var(--teal-800);
  padding: 1rem;
}
.player-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}
.player-num {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: var(--teal-300);
  color: var(--teal-900);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 50px;
  line-height: 1.4;
}

.player-info {
  padding: 0.75rem 1rem 1rem;
  text-align: center;
}
.player-info h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}
.player-pos {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── News ───────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.news-img-link { display: block; overflow: hidden; }
.news-img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}
.news-img-link:hover .news-img { transform: scale(1.03); }

.news-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.news-tag {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal-600);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 10px;
  border-radius: 50px;
  border: 1px solid var(--teal-100);
}
.news-meta time {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.news-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.news-body h3 a:hover { color: var(--teal-600); }
.news-body p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── Contact CTA ────────────────────────────────────────── */
.section-dark-cta {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: white;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 0.75rem;
}

.contact-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: white;
  margin-bottom: 0.85rem;
}
.contact-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(45, 212, 240, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition);
}
.contact-item:hover { background: rgba(255,255,255,0.11); }

.contact-icon {
  width: 40px;
  height: 40px;
  color: var(--teal-300);
  margin-bottom: 0.25rem;
}
.contact-icon svg { width: 100%; height: 100%; }

.contact-item strong {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
}
.contact-item a, .contact-item span {
  font-size: 0.9rem;
  color: var(--teal-300);
}
.contact-item a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--teal-900);
  border-top: 1px solid rgba(45, 212, 240, 0.12);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo { width: 44px; height: 44px; border-radius: 50%; }
.footer-brand-text strong { display: block; color: white; font-size: 0.9rem; }
.footer-brand-text p { color: var(--teal-300); font-size: 0.75rem; margin-top: 0.1rem; }

.footer-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--teal-300); }

.footer-legal {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--teal-900);
    border-bottom: 1px solid rgba(45, 212, 240, 0.15);
    padding: 0.75rem 1rem 1rem;
    z-index: 99;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.65rem 0.9rem; }
  .nav-cta-btn { text-align: center; margin-top: 0.25rem; }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.75rem;
  }
  .hero-logo { width: 160px; height: 160px; }
  .hero-text-col h1 { font-size: 2.4rem; }
  .hero-actions { justify-content: center; }

  .hero-stats-inner { gap: 0; }
  .stat-item { padding-inline: 1.25rem; }

  /* Schedule */
  .game-card { flex-wrap: wrap; gap: 0.75rem; padding: 1rem; }
  .game-result { align-items: flex-start; min-width: unset; }

  /* Roster */
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; margin-left: 0; }
}

@media (max-width: 480px) {
  .section { padding-block: 3.5rem; }
  .hero { padding-top: 2.5rem; }
  .stat-item { padding-inline: 0.75rem; }
  .stat-item strong { font-size: 1.3rem; }
}
