@charset "utf-8";

/* ==========================================================================
   PSSSA - Modern Design System & CSS Custom Properties
   ========================================================================== */

:root {
  /* Brand Colors - Pacific Northwest Athletic Palette */
  --color-primary: #059669;       /* Emerald Green */
  --color-primary-hover: #047857;
  --color-primary-light: #d1fae5;
  --color-accent: #f59e0b;        /* Athletic Gold */
  --color-accent-hover: #d97706;
  --color-accent-light: #fef3c7;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  /* Neutral Scale - Light Theme */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --border-color: #e2e8f0;
  --border-color-subtle: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --text-accent: #b45309;

  /* Header & Navigation */
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: rgba(226, 232, 240, 0.8);
  --nav-link-color: #334155;
  --nav-link-hover: #059669;

  /* Shadows & Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1200px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-body: #0b1120;
  --bg-surface: #131d33;
  --bg-surface-elevated: #1a2744;
  --bg-subtle: #1e293b;
  --bg-tertiary: #334155;
  --border-color: #243452;
  --border-color-subtle: #334155;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #0b1120;
  --text-accent: #fcd34d;

  --header-bg: rgba(19, 29, 51, 0.88);
  --header-border: rgba(36, 52, 82, 0.8);
  --nav-link-color: #cbd5e1;
  --nav-link-hover: #34d399;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.drawer-open {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--color-primary-hover);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hidden {
  display: none !important;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: all var(--transition-normal);
}

.announcement-bar {
  background: linear-gradient(90deg, #065f46, #047857, #065f46);
  color: #ffffff;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.announcement-bar .badge-season {
  background: var(--color-accent);
  color: #000000;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: transform var(--transition-normal);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05) rotate(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--nav-link-color);
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-pill);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-tertiary);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-nav-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
}

.btn-accent {
  background: var(--color-accent);
  color: #000000;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  color: #000000;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-color-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  border-radius: var(--radius-xs);
}

.btn-link {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-link:hover {
  text-decoration: underline;
}

.icon { width: 1.25rem; height: 1.25rem; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-xs { width: 0.85rem; height: 0.85rem; }

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              var(--bg-body);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .hero-tag {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-heading span.highlight {
  background: linear-gradient(135deg, var(--color-primary), #059669 40%, var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Featured Match Card */
.next-match-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  backdrop-filter: blur(8px);
}

.match-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.next-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  flex: 1;
}

.team-pill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
}

.team-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.home-tag {
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 600;
}

.vs-badge {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
}

.next-match-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.next-match-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.next-match-actions {
  display: flex;
  gap: 0.75rem;
}

/* ==========================================================================
   Section Headers & Common Card Styles
   ========================================================================== */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .section-pill {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Schedule & Match Center
   ========================================================================== */

.schedule-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) 1.5fr auto;
  gap: 0.75rem;
  align-items: center;
}

.form-select, .form-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  background: var(--bg-surface);
}

.toolbar-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.view-switcher {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
}

.view-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.view-btn.active {
  background: var(--bg-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.schedule-export-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Timeline Cards */
.schedule-day-group {
  margin-bottom: 2rem;
}

.day-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.day-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.day-of-week {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-date-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.bye-pill-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bye-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.badge-bye {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.day-fixtures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.match-fixture-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.match-fixture-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color-subtle);
  transform: translateY(-2px);
}

.fixture-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.fixture-time, .fixture-venue {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.fixture-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
}

.fixture-team.home-team {
  justify-content: flex-end;
  text-align: right;
  flex-direction: row-reverse;
}

.team-emblem {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-info-name {
  display: flex;
  flex-direction: column;
}

.team-info-name .team-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.2;
}

.team-info-name .team-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.team-info-name .home-badge {
  color: var(--color-primary);
}

.fixture-vs-divider {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-pill);
}

.team-score {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.team-score.score-winner {
  color: var(--color-success);
  font-weight: 900;
  background: var(--color-primary-light);
}

[data-theme="dark"] .team-score.score-winner {
  background: rgba(16, 185, 129, 0.2);
}

.fixture-note {
  font-size: 0.78rem;
  color: var(--text-accent);
  background: var(--color-accent-light);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

[data-theme="dark"] .fixture-note {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.fixture-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.25rem;
}

.fixture-footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.card-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-fast);
}

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

/* Special Schedule Card (Kickoff, Jamboree, Bye) */
.schedule-special-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.schedule-special-card.kickoff {
  border-left: 5px solid var(--color-primary);
}

.schedule-special-card.jamboree {
  border-left: 5px solid var(--color-accent);
}

.schedule-special-card.league_bye {
  border-left: 5px solid var(--text-muted);
}

.special-badge {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main);
}

.special-date {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-primary);
}

.special-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.2rem 0;
}

.special-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Calendar View
   ========================================================================== */

.calendar-months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.calendar-month-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.cal-month-header {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  min-height: 60px;
  background: var(--bg-subtle);
  border-radius: var(--radius-xs);
  padding: 4px;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}

.cal-cell-empty {
  background: transparent;
}

.cal-day-num {
  font-weight: 700;
  color: var(--text-muted);
}

.cal-cell-gameday {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.cal-cell-gameday .cal-day-num {
  color: var(--color-primary);
  font-weight: 900;
}

.cal-games-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.cal-game-chip {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform var(--transition-fast);
}

.cal-game-chip:hover {
  transform: scale(1.04);
}

.cal-special-pill {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 2px;
  background: var(--color-accent);
  color: #000;
  margin-top: 2px;
}

/* ==========================================================================
   Matrix View (Coach Grid)
   ========================================================================== */

.matrix-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.matrix-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

.matrix-table th, .matrix-table td {
  padding: 0.6rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  white-space: nowrap;
}

.matrix-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-muted);
}

.matrix-table th.sticky-col, .matrix-table td.sticky-col {
  position: sticky;
  left: 0;
  background: var(--bg-surface);
  z-index: 2;
  text-align: left;
  border-right: 2px solid var(--border-color);
}

.matrix-day-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 800;
}

.matrix-date-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--text-main);
}

.team-code-badge {
  font-size: 0.7rem;
  background: var(--bg-subtle);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-xs);
  margin-left: 0.35rem;
}

.matrix-cell {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.matrix-cell:hover {
  background: var(--bg-subtle);
}

.matrix-home {
  font-weight: 700;
  color: var(--color-primary);
}

.matrix-away {
  color: var(--text-muted);
}

.matrix-special {
  font-weight: 800;
  color: var(--color-accent);
  background: rgba(245, 158, 11, 0.08);
}

.matrix-bye {
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

.matrix-footer-notes {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Standings Table
   ========================================================================== */

.standings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.standings-card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th, .standings-table td {
  padding: 0.85rem 1rem;
  text-align: center;
}

.standings-table th {
  background: var(--bg-subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.standings-table td {
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.standings-table th.col-team, .standings-table td.col-team {
  text-align: left;
}

.team-cell-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.team-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-name-bold {
  font-weight: 700;
  color: var(--text-main);
}

.team-code-tag {
  font-size: 0.7rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-xs);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle);
  font-weight: 800;
  font-size: 0.78rem;
}

.leader-row td {
  background: rgba(5, 150, 105, 0.04);
}

.leader-row .rank-badge {
  background: var(--color-accent);
  color: #000000;
}

/* ==========================================================================
   Field Locations Grid
   ========================================================================== */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.venue-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all var(--transition-fast);
}

.venue-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color-subtle);
  transform: translateY(-2px);
}

.venue-badge-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.venue-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .venue-icon {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
}

.venue-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.venue-city {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
}

.venue-body {
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-muted);
}

.venue-address strong, .venue-teams strong {
  color: var(--text-main);
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.amenity-chip {
  font-size: 0.725rem;
  background: var(--bg-subtle);
  color: var(--text-main);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.venue-footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Teams Grid
   ========================================================================== */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.team-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.team-profile-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.team-card-banner {
  padding: 1.5rem;
  color: #ffffff;
  position: relative;
}

.team-crest-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
}

.team-card-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}

.team-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.team-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.team-card-details {
  font-size: 0.825rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
}

.team-card-details li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-card-footer {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.65rem;
}

/* ==========================================================================
   Rules, Safety & FAQ
   ========================================================================== */

.safety-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.rule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.rule-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .rule-icon {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
}

.rule-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.rule-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.game-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.rule-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.rule-cat-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.rule-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rule-cat-list li {
  position: relative;
  padding-left: 1.25rem;
}

.rule-cat-list li::before {
  content: '•';
  color: var(--color-primary);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  text-align: left;
  background: transparent;
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Forms & Contact
   ========================================================================== */

.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-card-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ==========================================================================
   Modals & Dialogs
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalEnter 0.2s ease-out;
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-close-btn {
  color: var(--text-muted);
  padding: 0.25rem;
  border-radius: var(--radius-xs);
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
}

.modal-match-meta {
  background: var(--bg-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.score-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.score-input-wrap {
  text-align: center;
}

.score-num-input {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  padding: 0.5rem;
  height: 60px;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notifications */
.app-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: var(--bg-body);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 4000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Print Stylesheet (@media print)
   ========================================================================== */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .site-header, .announcement-bar, .hero-section, .schedule-toolbar,
  .btn, .fixture-footer, .theme-toggle-btn, .mobile-menu-btn, .site-footer,
  .modal-backdrop, .app-toast, #rules, #register, #contact {
    display: none !important;
  }

  .section {
    padding: 1rem 0 !important;
  }

  .matrix-table-card, .standings-card, .match-fixture-card {
    box-shadow: none !important;
    border: 1px solid #000000 !important;
    page-break-inside: avoid;
  }

  .matrix-table th, .matrix-table td, .standings-table th, .standings-table td {
    color: #000000 !important;
    border-color: #999999 !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .forms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-heading {
    font-size: 2.1rem;
  }
  .filter-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
