/* ============================================================
   BOTHASIG BASEBALL CLUB — style.css
   Clean · Light · Premium sports-club aesthetic · Mobile-first
   Tailwind (CDN) handles utilities — this file covers what
   utilities can't: glassmorphism, reveals, counters, tabs, etc.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1c1f1c;
  background: #ffffff;
}

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

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #174e32;
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 0.5rem 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #fdcd19;
  outline-offset: 2px;
}

/* ---------- Glassmorphism nav ---------- */
.nav-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(23, 78, 50, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav-glass.scrolled {
  box-shadow: 0 4px 24px rgba(23, 78, 50, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #fdcd19;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}
.nav-link[aria-current="page"] {
  color: #174e32;
  font-weight: 700;
}

/* Mobile full-screen menu */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
#mobile-menu:not(.open) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open .line-1 { transform: translateY(7px) rotate(45deg); }
.hamburger.open .line-2 { opacity: 0; }
.hamburger.open .line-3 { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero / parallax ---------- */
.hero-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #0e3320 0%, #174e32 55%, #2a5c3a 100%);
}
#spline-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 30% 20%, rgba(23,78,50,0.15) 0%, rgba(14,51,32,0.65) 55%, rgba(10,38,24,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle, #fdcd19 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Reveal-on-scroll base state (GSAP flips these) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.reveal-left {
  transform: translateX(-32px);
}
.reveal.reveal-right {
  transform: translateX(32px);
}
.reveal.reveal-scale {
  transform: scale(0.94);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-left, .reveal.reveal-right, .reveal.reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Stat counters ---------- */
.stat-number {
  font-variant-numeric: tabular-nums;
  color: #fdcd19;
}

/* ---------- Glass card ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(23, 78, 50, 0.08);
}

/* ---------- Logo strip cards ---------- */
.logo-card {
  background: #ffffff;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  height: 100px;
  border: 1px solid rgba(23, 78, 50, 0.08);
}
.logo-card img,
.logo-card svg {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

/* ---------- GameChanger tabs ---------- */
.gc-tab {
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.gc-tab.active {
  border-bottom-color: #fdcd19;
  color: #174e32;
  font-weight: 700;
}
.gc-tabs-scroll {
  scrollbar-width: thin;
  scrollbar-color: #cea520 transparent;
}
.gc-panel {
  display: none;
}
.gc-panel.active {
  display: block;
}

/* ---------- FAQ accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 40rem;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 0.25s ease;
}

/* ---------- Timeline (History page) ---------- */
.timeline-line {
  background: linear-gradient(180deg, #fdcd19, #174e32);
}
.timeline-dot {
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px #fdcd19;
}

/* ---------- Player card placeholder ---------- */
.placeholder-photo {
  background: repeating-linear-gradient(135deg, #eef1ec, #eef1ec 10px, #e4e8e0 10px, #e4e8e0 20px);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: #174e32;
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fdcd19;
  color: #174e32;
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid #fdcd19;
  color: #174e32;
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fdcd19;
}

/* ---------- Marquee (social proof strip) ---------- */
.marquee-track {
  animation: marquee 32s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Utility scroll shadow for tables/tabs ---------- */
.scroll-fade-right {
  mask-image: linear-gradient(to right, black 92%, transparent 100%);
}
