/* ============================================
   Westside Kings & Queens — Design System
   Mobile-first. Semantic CSS. No utilities.
   ============================================ */

/* ============================================
   Design Tokens
   ============================================ */
:root {
  --color-black: #0a0a0a;
  --color-dark: #141414;
  --color-gray-800: #262626;
  --color-red: #d42026;
  --color-red-rgb: 212, 32, 38;
  --color-red-hover: #e8333a;
  --color-white: #ffffff;
  --color-gray-100: #f0f0f0;
  --color-gray-200: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-600: #737373;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --max-width: 1200px;
  --nav-height: 52px;
  --border-radius: 4px;
  --border-radius-lg: 8px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  --color-success: #22c55e;
  --color-success-rgb: 34, 197, 94;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --color-warning-alt: #eab308;

  --font-size-xs: 0.75rem;
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-gray-100);
  background-color: var(--color-black);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-red-hover); }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

/* ============================================
   Layout: Container
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   Component: Buttons
   Partial: shared across views
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-red-hover);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-gray-800);
  color: var(--color-gray-200);
}

.btn-secondary:hover {
  background: var(--color-gray-600);
  color: var(--color-white);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}

/* ============================================
   Component: SiteNav
   Partial: layouts/_navbar.html.erb
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-black);
  border-bottom: 2px solid var(--color-red);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 0;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-brand:hover { color: var(--color-red); }

.nav-links {
  display: none;
  gap: var(--space-xl);
}

.nav-links li { display: contents; }

.nav-links a {
  color: var(--color-gray-200);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-links a:hover { color: var(--color-red); }
.nav-links a.active { color: var(--color-red); }

.nav-links a.nav-signin {
  color: var(--color-white);
  border: 1px solid var(--color-red);
  padding: 0.35em 1em;
  border-radius: var(--border-radius);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-links a.nav-signin:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-white);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.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.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--color-black);
  border-bottom: 2px solid var(--color-red);
  padding: var(--space-lg);
  gap: var(--space-lg);
}

/* ============================================
   Component: Hero
   Partial: public/_hero.html.erb
   ============================================ */
.hero {
  margin-top: var(--nav-height);
  padding: var(--space-3xl) 0;
  text-align: center;
  background: var(--color-black);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 32, 38, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 32, 38, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: var(--space-md); letter-spacing: -0.03em; }

.hero-logo {
  display: block;
  margin: 0 auto 2rem;
  width: 200px;
  height: auto;
  object-fit: contain;
}

.hero-tagline {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-gray-200);
  margin-bottom: var(--space-2xl);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ============================================
   Component: Section
   ============================================ */
.section { padding: var(--space-3xl) 0; }
.section-alt { background-color: var(--color-dark); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 { margin-bottom: var(--space-sm); }

.section-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-red);
  margin: var(--space-sm) auto 0;
}

.section-header p {
  color: var(--color-gray-400);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Component: ProgramIntro
   Partial: public/_program_intro.html.erb
   ============================================ */
.program-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.program-intro p {
  font-size: var(--font-size-lg);
  color: var(--color-gray-200);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.learn-more-link {
  display: inline-block;
  color: var(--color-red);
  font-weight: 700;
  font-size: var(--font-size-base);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.learn-more-link:hover { color: var(--color-red-hover); }

/* ============================================
   Component: Card
   ============================================ */
.card {
  background-color: var(--color-dark);
  border: 1px solid var(--color-gray-800);
  border-left: 3px solid var(--color-red);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
}

.section-alt .card { background-color: var(--color-black); }
.card h3 { margin-bottom: var(--space-sm); }
.card p { color: var(--color-gray-400); }

/* ============================================
   Component: Grid
   ============================================ */
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* ============================================
   Component: Steps
   Partial: public/_steps.html.erb
   ============================================ */
.step {
  text-align: center;
  padding: var(--space-xl);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: var(--font-size-xl);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.step h3 { margin-bottom: var(--space-sm); }
.step p { color: var(--color-gray-400); }

/* ============================================
   Component: CTABanner
   Partial: public/_cta_banner.html.erb
   ============================================ */
.cta-banner {
  text-align: center;
  padding: var(--space-3xl) 0;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(212, 32, 38, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: var(--space-md); }

.cta-banner p {
  color: var(--color-gray-200);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Component: SiteFooter
   Partial: layouts/_footer.html.erb
   ============================================ */
.site-footer {
  background-color: var(--color-black);
  border-top: 2px solid var(--color-red);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.site-footer p {
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  margin-bottom: 0.25rem;
}

.site-footer a { color: var(--color-gray-400); }
.site-footer a:hover { color: var(--color-red); }

/* ============================================
   Component: Flash Messages
   ============================================ */
.flash {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  border: 1px solid;
  font-size: var(--font-size-sm);
}

.flash-notice {
  background: var(--color-green-bg, #0d1a0c);
  border-color: var(--color-green-border, #2d5a27);
  color: var(--color-green, #7ec875);
}

.flash-alert {
  background: var(--color-danger-bg, #1a0d0d);
  border-color: var(--color-danger-border, #5a1a1a);
  color: var(--color-danger, #ff6b6b);
}

.flash-warning {
  background: var(--color-yellow-bg, #1a1700);
  border-color: var(--color-yellow-border, #5a4a00);
  color: var(--color-yellow, #ffd700);
}

/* ============================================
   Component: Forms
   Partial: shared across views
   ============================================ */
.form .field {
  margin-bottom: var(--space-lg);
}

.form .field label {
  display: block;
  font-weight: 700;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
  color: var(--color-gray-200);
}

.form .field input,
.form .field textarea,
.form .field select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: var(--font-size-base);
  background: var(--color-dark);
  color: var(--color-gray-100);
}

.form .field input:focus,
.form .field textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(var(--color-red-rgb), 0.2);
}

.form .actions {
  margin-top: var(--space-lg);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--color-gray-200);
  cursor: pointer;
}

/* ============================================
   Component: FileTree
   Partial: welcome/filetree.html.erb
   ============================================ */
.filetree-meta {
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
}

.filetree {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.filetree-entry {
  color: var(--color-gray-200);
}

.filetree-dir {
  color: var(--color-blue, #6bb5ff);
}

/* ============================================
   Component: Inbox
   Partial: emails/inbox.html.erb
   ============================================ */
.inbox-list {
  padding: 0;
}

.inbox-message {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-gray-800);
}

.inbox-message:last-child {
  border-bottom: none;
}

.inbox-message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}

.inbox-from {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-gray-200);
}

.inbox-date {
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

.inbox-subject {
  color: var(--color-gray-400);
}

.inbox-empty {
  padding: var(--space-lg);
  color: var(--color-gray-600);
}

/* ============================================
   Component: Compose
   Partial: emails/compose.html.erb
   ============================================ */
.recipients-card {
  margin-bottom: var(--space-xl);
}

.recipients-list {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  columns: 1;
  gap: var(--space-md);
}

/* ============================================
   Shared: Spacing Helpers
   ============================================ */
.mt-md { margin-top: var(--space-md); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ============================================
   Shared: State Classes (Stimulus)
   ============================================ */
.is-hidden { display: none; }

/* ============================================
   Component: ButtonOutline
   Partial: shared across views
   ============================================ */
.btn-outline {
  background-color: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}

.btn-outline:hover {
  background-color: var(--color-red);
  color: var(--color-white);
}

/* ============================================
   Component: CardCentered
   Partial: public/about.html.erb
   ============================================ */
.card-centered {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================
   Component: QuoteBlock
   Partial: public/about.html.erb
   ============================================ */
.quote-block {
  border-left: 4px solid var(--color-red);
  padding: var(--space-xl);
  background-color: var(--color-dark);
  margin: var(--space-2xl) 0;
}

.quote-block p {
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--color-gray-200);
  line-height: 1.6;
}

.quote-block .quote-author,
.quote-author {
  font-style: normal;
  font-weight: 700;
  color: var(--color-white);
  margin-top: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-sm);
  display: block;
}

/* ============================================
   Component: SponsorBar
   Partial: public/staff.html.erb
   ============================================ */
.sponsor-bar {
  background-color: var(--color-dark);
  border-top: 1px solid var(--color-gray-800);
  border-bottom: 1px solid var(--color-gray-800);
  padding: var(--space-md) 0;
  text-align: center;
}

.sponsor-bar p {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand-names {
  color: var(--color-white);
  font-weight: 800;
  font-size: var(--font-size-base);
  letter-spacing: 0.15em;
  margin-top: var(--space-sm);
}

.sponsor-cta {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}

.sponsor-cta a {
  color: var(--color-red);
  text-decoration: underline;
}

.sponsor-cta a:hover {
  color: var(--color-red-hover);
}

/* ============================================
   Component: CoachCard
   Partial: public/staff.html.erb
   ============================================ */
.coaches-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.coach-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.coach-photo {
  width: 100%;
  max-width: 300px;
  background-color: var(--color-gray-800);
  border-radius: var(--border-radius-lg);
  margin: 0 auto;
  overflow: hidden;
}

.coach-photo img {
  width: 100%;
  height: auto;
}

.coach-info h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xs);
}

.coach-role {
  color: var(--color-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.coach-info p {
  color: var(--color-gray-400);
  margin-bottom: var(--space-md);
}

/* ============================================
   Component: KQToggle (Kings/Queens)
   Partial: public/tryouts.html.erb, public/gear.html.erb
   ============================================ */
.kq-toggle {
  display: inline-flex;
  border: 2px solid var(--color-red);
  border-radius: 100px;
  overflow: hidden;
  margin-top: var(--space-lg);
}

.kq-toggle-btn {
  padding: 0.4rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--color-gray-200);
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--transition-fast);
}

.kq-toggle-btn.is-active {
  background: var(--color-red);
  color: var(--color-white);
}

.kq-toggle-btn:hover:not(.is-active) {
  background: rgba(var(--color-red-rgb), 0.2);
  color: var(--color-white);
}

/* ============================================
   Component: TryoutInfo
   Partial: public/tryouts.html.erb
   ============================================ */
.tryout-info-card {
  background: var(--color-dark);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.tryout-info-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.tryout-info-meta {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.tryout-info-result {
  font-size: var(--font-size-base);
  color: var(--color-gray-200);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.tryout-info-link {
  display: inline-block;
  color: var(--color-red);
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tryout-info-link:hover {
  color: var(--color-red-hover);
}

/* ============================================
   Component: NextSeasonBox
   Partial: public/tryouts.html.erb
   ============================================ */
.next-season-box {
  background: linear-gradient(135deg, rgba(var(--color-red-rgb), 0.08) 0%, transparent 50%);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.next-season-box h3 {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.next-season-box p {
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.next-season-box a {
  color: var(--color-red);
  text-decoration: none;
}

.next-season-box a:hover {
  color: var(--color-red-hover);
}

/* ============================================
   Component: GearGallery
   Partial: public/gear.html.erb
   ============================================ */
.gear-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.gear-item {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-gray-800);
  background: var(--color-dark);
}

.gear-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-base);
}

.gear-item:hover img {
  transform: scale(1.03);
}

/* ============================================
   Component: SponsorCard
   Partial: public/sponsors.html.erb
   ============================================ */
.sponsors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 700px;
  margin: 0 auto;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.sponsor-card:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
}

.sponsor-logo {
  background-color: var(--color-gray-800);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.sponsor-logo img {
  width: 100%;
  height: auto;
}

.sponsor-info h3 {
  margin-bottom: var(--space-sm);
}

.sponsor-info p {
  color: var(--color-gray-400);
  margin-bottom: var(--space-md);
}

.sponsor-card .btn {
  align-self: flex-start;
}

/* ============================================
   Component: FAQ
   Partial: public/sponsors.html.erb
   ============================================ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-gray-800);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: var(--color-red);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-base);
  text-transform: none;
  letter-spacing: 0;
}

.faq-item p {
  color: var(--color-gray-400);
}

/* ============================================
   Shared: Links and Spacing
   ============================================ */
.back-link {
  margin-top: var(--space-lg);
}

.card-link {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-gray-800);
}

/* ============================================
   Component: TeamCard
   Partial: public/teams.html.erb
   ============================================ */
.teams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.team-card {
  background: var(--color-dark);
  border: 1px solid var(--color-gray-800);
  border-left: 3px solid var(--color-red);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}

.team-card-header {
  margin-bottom: var(--space-md);
}

.team-card-header h3 {
  margin-bottom: var(--space-sm);
}

.team-card-meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.team-badge {
  display: inline-block;
  padding: 0.15em 0.6em;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(var(--color-red-rgb), 0.15);
  color: var(--color-red);
  border-radius: var(--border-radius);
}

.team-badge-division {
  background: var(--color-gray-800);
  color: var(--color-gray-200);
}

.team-coach {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-md);
}

/* ============================================
   Component: RosterList
   Partial: public/teams.html.erb
   ============================================ */
.roster-list {
  border-top: 1px solid var(--color-gray-800);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

.roster-list h4 {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.roster-list ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
}

.roster-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  transition: background var(--transition-fast);
}

.roster-player:hover {
  background: var(--color-gray-800);
}

.roster-name {
  font-size: var(--font-size-sm);
  color: var(--color-gray-200);
}

.roster-number {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-red);
}

/* ============================================
   Component: ScheduleEvent
   Partial: public/schedule.html.erb
   ============================================ */
.schedule-events {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.schedule-event {
  display: flex;
  gap: var(--space-lg);
  background: var(--color-dark);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  align-items: flex-start;
}

.schedule-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  padding: var(--space-sm);
  background: rgba(var(--color-red-rgb), 0.1);
  border-radius: var(--border-radius);
}

.schedule-event-month {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
}

.schedule-event-day {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.schedule-event-info h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.schedule-event-meta {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-xs);
}

.schedule-event-type {
  font-weight: 700;
  color: var(--color-red);
}

.schedule-event-location {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
}

/* ============================================
   Component: PracticeSlot
   Partial: public/schedule.html.erb
   ============================================ */
.practice-slots {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.practice-day-group {
  margin-bottom: var(--space-md);
}

.practice-day-label {
  font-size: var(--font-size-lg);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-gray-800);
}

.practice-slot {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-black);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
  align-items: center;
}

.practice-slot-time {
  min-width: 130px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
}

.practice-slot-label {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-gray-200);
  margin-bottom: 0;
}

.practice-slot-location {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  margin-bottom: 0;
}

/* ============================================
   Component: InterestForm
   Partial: public/_interest_form.html.erb
   ============================================ */
.interest-form {
  max-width: 600px;
  margin: 0 auto;
}

.interest-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.interest-success {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-black);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  margin: 0 auto;
}

.interest-success h3 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.interest-success p {
  color: var(--color-gray-400);
}

/* ============================================
   Component: EmptyState
   Partial: public/teams.html.erb, public/schedule.html.erb
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-dark);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--border-radius-lg);
}

.empty-state h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
}

/* ============================================
   Responsive — mobile-first
   ============================================ */
@media (min-width: 640px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .recipients-list { columns: 2; }

  .coach-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .coach-photo {
    min-width: 250px;
    margin: 0;
  }

  .gear-gallery { grid-template-columns: repeat(2, 1fr); }

  .teams-grid { grid-template-columns: repeat(2, 1fr); }
  .roster-list ul { grid-template-columns: repeat(2, 1fr); }
  .interest-form-grid { grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-lg); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--font-size-5xl); }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: var(--space-4xl) 0; }
  .teams-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   Admin Dashboard
   ============================================ */
.page-header { margin-bottom: var(--space-2xl); }
.page-subtitle { color: var(--color-gray-400); margin-top: var(--space-xs); }

.dashboard-section { margin-bottom: var(--space-3xl); }
.dashboard-section .section-heading {
  font-size: var(--font-size-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-200);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-gray-800);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--color-gray-800);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  text-align: center;
}
.stat-card .stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-white);
}
.stat-card .stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}
.stat-card--green .stat-value { color: var(--color-success); }
.stat-card--red .stat-value { color: var(--color-red); }

.team-card {
  background: var(--color-dark);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}
.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-gray-800);
}
.team-header h3 {
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge {
  font-size: var(--font-size-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  background: rgba(var(--color-red-rgb), 0.15);
  color: var(--color-red);
}

.payment-table-wrap { overflow-x: auto; }
.payment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.payment-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-gray-800);
}
.payment-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.payment-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.player-name { font-weight: 600; color: var(--color-white); white-space: nowrap; }
.player-email { color: var(--color-gray-400); font-size: 0.8rem; }
.date-note { display: block; font-size: 0.75rem; color: var(--color-gray-600); }

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge--paid { background: rgba(var(--color-success-rgb),0.15); color: var(--color-success); }
.status-badge--unpaid { background: rgba(var(--color-red-rgb),0.15); color: var(--color-red); }
.status-badge--partial { background: rgba(234,179,8,0.15); color: var(--color-warning-alt); }
.status-badge--active { background: rgba(var(--color-red-rgb),0.15); color: var(--color-red); }

/* ============================================
   Component: RosterReport
   Partial: admin/roster_report/index.html.erb
   Mobile-first: stacked cards on phone, table on desktop
   ============================================ */
.roster-report-table-wrap {
  display: none;
}

.roster-report-cards {
  display: flex;
  flex-direction: column;
}

.roster-card {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-gray-800);
}

.roster-card:last-child {
  border-bottom: none;
}

.roster-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.roster-card-name {
  font-weight: 600;
  color: var(--color-white);
  font-size: var(--font-size-base);
}

.roster-card-details {
  display: flex;
  gap: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-xs);
}

.roster-card-fee {
  font-weight: 700;
  color: var(--color-gray-200);
}

.roster-card-contact {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  text-decoration: none;
  word-break: break-all;
}

.roster-card-contact:hover {
  color: var(--color-red);
}

.roster-card-contact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ============================================
   Component: Inline Fee Editor
   ============================================ */
/* Utility: used by Stimulus controllers for show/hide toggling */
.hidden { display: none !important; }

.fee-cell {
  position: relative;
  white-space: nowrap;
}

.fee-display {
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.fee-display:hover {
  border-color: var(--color-gray-600);
  background: rgba(255,255,255,0.04);
}

.fee-form {
  display: inline-block;
}

.fee-input-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.fee-currency {
  color: var(--color-gray-400);
  font-weight: 700;
  font-size: var(--font-size-sm);
}

.fee-input {
  width: 5rem;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-gray-800);
  border: 1px solid var(--color-gray-600);
  border-radius: var(--border-radius);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  -moz-appearance: textfield;
}

.fee-input::-webkit-inner-spin-button,
.fee-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fee-input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px rgba(var(--color-red-rgb), 0.25);
}

.fee-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fee-btn {
  padding: var(--space-xs) var(--space-sm);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.fee-btn--save {
  background: var(--color-red);
  color: var(--color-white);
}

.fee-btn--save:hover:not(:disabled) {
  background: var(--color-red-hover);
}

.fee-btn--save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fee-btn--cancel {
  background: var(--color-gray-800);
  color: var(--color-gray-400);
}

.fee-btn--cancel:hover {
  background: var(--color-gray-600);
  color: var(--color-white);
}

.fee-status {
  font-size: var(--font-size-xs);
  margin-top: var(--space-xs);
  font-weight: 600;
}

.fee-status--success {
  color: var(--color-success);
}

.fee-status--success-link {
  color: var(--color-warning);
}

.fee-status--error {
  color: var(--color-error);
}

.fee-status--pending {
  color: var(--color-gray-400);
}

.fee-link-ready {
  font-size: var(--font-size-xs);
  color: var(--color-success);
  font-weight: 600;
}

.fee-link-generating {
  font-size: var(--font-size-xs);
  color: var(--color-gray-400);
  font-weight: 600;
}

/* Mobile fee form adjustments */
.fee-form--mobile {
  width: 100%;
}

.fee-form--mobile .fee-input-row {
  flex-wrap: wrap;
}

.fee-form--mobile .fee-input {
  flex: 1;
  min-width: 3rem;
}

@media (min-width: 768px) {
  .roster-report-table-wrap {
    display: block;
    overflow-x: auto;
  }

  .roster-report-cards {
    display: none;
  }
}

/* ============================================
   Component: Delinquency Report
   Partial: admin/delinquency_report/index.html.erb
   Mobile-first: stacked cards on phone, table on desktop
   ============================================ */
.delinquency-empty {
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-gray-400);
}

.delinquency-table-wrap {
  display: none;
}

.delinquency-amount {
  color: var(--color-red);
  white-space: nowrap;
}

.delinquency-cards {
  display: flex;
  flex-direction: column;
}

.delinquency-card {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-gray-800);
}

.delinquency-card:last-child {
  border-bottom: none;
}

.delinquency-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.delinquency-card-name {
  font-weight: 600;
  color: var(--color-white);
  font-size: var(--font-size-base);
}

.delinquency-card-amount {
  font-weight: 700;
  color: var(--color-red);
  font-size: var(--font-size-base);
}

.delinquency-card-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.delinquency-card-parent {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-xs);
}

.delinquency-card-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.delinquency-card-link {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  text-decoration: none;
  word-break: break-all;
}

.delinquency-card-link:hover {
  color: var(--color-red);
}

.delinquency-card-details {
  border-top: 1px solid var(--color-gray-800);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
}

.delinquency-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  padding: var(--space-xs) 0;
}

@media (min-width: 768px) {
  .delinquency-table-wrap {
    display: block;
    overflow-x: auto;
  }

  .delinquency-cards {
    display: none;
  }
}

/* ============================================
   Component: Player List
   Partial: admin/players/index.html.erb
   Mobile-first: stacked cards on phone, table on desktop
   ============================================ */
.player-list-empty {
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-gray-400);
}

.player-list-table-wrap {
  display: none;
}

.player-list-link {
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}
.player-list-link:hover {
  border-bottom-color: var(--color-red);
}

.player-list-cards {
  display: flex;
  flex-direction: column;
}

.player-list-card {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-gray-800);
}
.player-list-card:last-child {
  border-bottom: none;
}

.player-list-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.player-list-card-name {
  font-weight: 600;
  color: var(--color-white);
  font-size: var(--font-size-base);
  text-decoration: none;
}
.player-list-card-name:hover {
  color: var(--color-red);
}

.player-list-card-details {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-xs);
}

.player-list-card-contact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.player-list-card-contact {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  text-decoration: none;
  word-break: break-all;
}
.player-list-card-contact:hover {
  color: var(--color-red);
}

@media (min-width: 768px) {
  .player-list-table-wrap {
    display: block;
    overflow-x: auto;
  }

  .player-list-cards {
    display: none;
  }
}

/* ============================================
   Component: Player Detail
   Partial: admin/players/show.html.erb
   ============================================ */
.back-link {
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: var(--font-size-sm);
}
.back-link:hover {
  color: var(--color-red);
}

.player-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-lg);
}

@media (min-width: 768px) {
  .player-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.player-detail-section h4 {
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.detail-list {
  margin: 0;
  padding: 0;
}

.detail-row {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-gray-800);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row dt {
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
  min-width: 5rem;
  flex-shrink: 0;
}

.detail-row dd {
  margin: 0;
  color: var(--color-white);
  font-size: var(--font-size-sm);
  word-break: break-word;
}

.detail-row dd a {
  color: var(--color-white);
  text-decoration: none;
}

.detail-row dd a:hover {
  color: var(--color-red);
}

.payment-link-btn {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(var(--color-red-rgb), 0.15);
  color: var(--color-red);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.payment-link-btn:hover {
  background: rgba(var(--color-red-rgb), 0.3);
}

.player-detail-notes {
  padding: var(--space-lg);
  color: var(--color-gray-200);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}
