/* TrackClubFinder.com — Shared styles for state pages */

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

:root {
  --red:    #c0392b;
  --dark:   #1a1a2e;
  --mid:    #16213e;
  --gold:   #f39c12;
  --light:  #ecf0f1;
  --muted:  #95a5a6;
  --white:  #ffffff;
  --radius: 8px;
  --max:    1200px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f6fa;
  color: #2d3436;
  line-height: 1.6;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
header {
  background: var(--dark);
  padding: 0 1.5rem;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.logo span { color: var(--gold); }
nav a {
  color: #bdc3c7;
  font-size: 0.9rem;
  margin-left: 1.5rem;
}
nav a:hover { color: var(--white); text-decoration: none; }

/* ── Section base ── */
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid #e0e0e0;
  padding: 0.6rem 0;
}
.breadcrumbs {
  font-size: 0.875rem;
  color: #636e72;
}
.breadcrumbs a { color: var(--red); }
.breadcrumbs span { margin: 0 0.4rem; color: #b2bec3; }
.breadcrumbs strong { color: #2d3436; }

/* ── State Hero ── */
.state-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 60%, #0f3460 100%);
  padding: 3.5rem 1.5rem 3rem;
  color: var(--white);
}
.state-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.hero-sub {
  color: #a0aec0;
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 2rem;
}
.state-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.state-stat { }
.state-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.state-stat span {
  font-size: 0.78rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Listings ── */
.listings-section {
  padding: 3rem 0;
}
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.club-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.club-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  border-color: #c0c0c0;
}
.club-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.club-rating {
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.stars { color: var(--gold); letter-spacing: 1px; }
.review-count { color: var(--muted); font-size: 0.8rem; }
.club-address {
  font-size: 0.875rem;
  color: #636e72;
  margin-bottom: 0.4rem;
}
.club-phone {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.club-phone:hover { text-decoration: underline; }
.club-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.club-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid currentColor;
  color: var(--red);
}
.club-link:hover { background: var(--red); color: var(--white); text-decoration: none; }
.club-link.athletic { color: #2980b9; }
.club-link.athletic:hover { background: #2980b9; color: var(--white); }

/* ── Gear section ── */
.gear-section {
  background: #f8f9fa;
  padding: 3rem 0;
}
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.gear-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.gear-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.gear-img {
  height: 150px;
  overflow: hidden;
}
.gear-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.gear-card:hover .gear-img img { transform: scale(1.05); }
.gear-body { padding: 0.9rem; }
.gear-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.gear-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.gear-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
}

/* ── CTA Banner ── */
.cta-section {
  background: linear-gradient(135deg, var(--red), #922b21);
  text-align: center;
  padding: 3rem 1.5rem;
}
.cta-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}
.btn {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; text-decoration: none; }

/* ── Footer ── */
footer {
  background: var(--dark);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--gold); }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 1.25rem;
}
.footer-links a { color: #a0aec0; font-size: 0.875rem; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-disc {
  font-size: 0.78rem;
  color: #636e72;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 600px) {
  nav { display: none; }
  .clubs-grid { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .state-stats { gap: 1.5rem; }
}
