:root {
  --night-ink: #070D19;
  --stadium-grey: #5A6D7C;
  --chalk: #F4F3ED;
  --dark-accent: #0E1626;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Vibrant Yellow & Red Theme */
  --brand-red: #EF4444; /* Vivid Red */
  --brand-yellow: #FFD600; /* Rich Gold Yellow */

  /* Map old names so rest of the layout transitions automatically */
  --brand-green: var(--brand-red);
  --electric-lime: var(--brand-red);
  --restrained-magenta: var(--brand-yellow);

  --neon-lime-glow: 0 0 15px rgba(239, 68, 68, 0.45);
  --neon-magenta-glow: 0 0 15px rgba(255, 214, 0, 0.45);
  --neon-green-glow: var(--neon-lime-glow);
  --neon-yellow-glow: var(--neon-magenta-glow);
}

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

body {
  background-color: var(--night-ink);
  color: var(--chalk);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Base Accessibility & Focus */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible, 
select:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
}

/* Header & Navigation - Perfect and Slim */
header {
  border-bottom: 2px solid rgba(90, 109, 124, 0.3);
  background-color: rgba(7, 13, 25, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 2rem;
  gap: 1.5rem;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(var(--neon-green-glow));
  flex-shrink: 0;
}

.brand-name {
  color: var(--chalk);
  font-weight: 850;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand-dot {
  color: var(--brand-yellow);
}

.nav-desktop {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: var(--chalk);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
  text-shadow: var(--neon-lime-glow);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--chalk);
  cursor: pointer;
  padding: 0.4rem;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: var(--dark-accent);
  border-bottom: 2px solid rgba(90, 109, 124, 0.3);
  padding: 1rem 2rem;
  gap: 1rem;
}

@media (min-width: 769px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile .nav-link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(244, 243, 237, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 2rem 3.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #201215 0%, var(--night-ink) 70%);
  border-bottom: 1px solid rgba(90, 109, 124, 0.2);
}

.hero-subtitle {
  color: var(--brand-yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-shadow: var(--neon-yellow-glow);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  text-transform: uppercase;
}

.hero-desc {
  color: var(--chalk);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  opacity: 0.85;
}

.snapshot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(244, 243, 237, 0.05);
  border: 1px solid var(--stadium-grey);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--chalk);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-red);
  border-radius: 50%;
  animation: blink 2s infinite;
  box-shadow: var(--neon-lime-glow);
}

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Layout Core Elements */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  margin-bottom: 3rem;
  border-left: 4px solid var(--brand-red);
  padding-left: 1.5rem;
}

.section-label {
  color: var(--stadium-grey);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.section-title {
  font-size: 2.2rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Stats Overview */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stats-card {
  background-color: var(--dark-accent);
  border: 1px solid rgba(90, 109, 124, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.stats-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-red);
  text-shadow: var(--neon-lime-glow);
}

.stats-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--stadium-grey);
}

/* Interactive Filtering Tabs */
.filter-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background-color: var(--dark-accent);
  border: 1px solid rgba(90, 109, 124, 0.3);
  color: var(--chalk);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--brand-red);
  color: var(--night-ink);
  border-color: var(--brand-red);
  box-shadow: var(--neon-lime-glow);
}

/* Match Panels (After the Whistle Archive System) */
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.match-card {
  background-color: var(--dark-accent);
  border: 1px solid rgba(90, 109, 124, 0.3);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.match-card.penalty-match {
  border-color: var(--brand-yellow);
  box-shadow: var(--neon-yellow-glow);
}

.match-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(78, 93, 104, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-meta-date {
  font-size: 0.85rem;
  color: var(--stadium-grey);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.match-meta-round {
  font-size: 0.8rem;
  background-color: rgba(244, 243, 237, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.match-body {
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.match-scoreline {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.match-team {
  text-transform: uppercase;
  font-size: 1.8rem;
}

.match-numbers {
  background-color: var(--night-ink);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--stadium-grey);
  min-width: 60px;
  display: inline-block;
}

/* Country Flag Logos and Elements */
.team-crest-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.team-crest-svg {
  width: 28px;
  height: 20px;
  border-radius: 2px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Penalty Stamp */
.penalty-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 3px double var(--brand-yellow);
  color: var(--brand-yellow);
  background-color: rgba(7, 13, 25, 0.95);
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  pointer-events: none;
  box-shadow: var(--neon-yellow-glow);
  z-index: 5;
  white-space: nowrap;
}

.match-footer {
  padding: 1.25rem 1.5rem;
  background-color: rgba(12, 20, 34, 0.5);
  border-top: 1px solid rgba(78, 93, 104, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.outcome-indicator {
  width: 10px;
  height: 10px;
  background-color: var(--brand-red);
  border-radius: 50%;
  box-shadow: var(--neon-lime-glow);
}

.outcome-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Route Table & Match Cards (Upcoming) */
.routes-wrapper {
  background-color: var(--dark-accent);
  border: 1px solid rgba(90, 109, 124, 0.3);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.routes-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.routes-table th {
  background-color: rgba(12, 20, 34, 0.8);
  padding: 1.25rem 1.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--stadium-grey);
  border-bottom: 2px solid var(--stadium-grey);
}

.routes-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(78, 93, 104, 0.3);
  font-size: 0.95rem;
}

.routes-table tr:last-child td {
  border-bottom: none;
}

.route-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.route-badge.confirmed {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--brand-red);
  border: 1px solid var(--brand-red);
}

.route-badge.pending {
  background-color: rgba(244, 243, 237, 0.05);
  color: var(--chalk);
  border: 1px solid var(--stadium-grey);
}

/* Grid for Upcoming Routes */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.route-card {
  background-color: var(--dark-accent);
  border: 1px solid rgba(90, 109, 124, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.route-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.route-card-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.route-card-meta {
  font-size: 0.85rem;
  color: var(--stadium-grey);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Info Banner and Methods */
.method-note {
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid var(--brand-red);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.method-icon {
  color: var(--brand-red);
  flex-shrink: 0;
  filter: drop-shadow(var(--neon-lime-glow));
}

.method-title {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--brand-red);
}

.method-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Page Specific Blocks: About, Legal, Forms */
.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-header {
  text-align: center;
  margin-bottom: 4rem;
}

.legal-title {
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--stadium-grey);
}

.legal-content h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
  color: var(--brand-red);
  border-bottom: 1px solid rgba(90, 109, 124, 0.3);
  padding-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--chalk);
  opacity: 0.95;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.75rem;
}

/* Contact Form styling */
.contact-form {
  background-color: var(--dark-accent);
  border: 1px solid rgba(90, 109, 124, 0.3);
  border-radius: 8px;
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--chalk);
}

.form-control {
  width: 100%;
  background-color: var(--night-ink);
  border: 1px solid rgba(90, 109, 124, 0.3);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--chalk);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--brand-red);
  outline: none;
}

.btn-primary {
  display: inline-block;
  background-color: var(--brand-red);
  color: var(--night-ink);
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary:hover {
  background-color: #f87171;
  box-shadow: var(--neon-lime-glow);
  transform: translateY(-1px);
}

.form-success-message {
  display: none;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--brand-red);
  color: var(--brand-red);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 600;
}

/* Cookie Banner & Consent Modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-accent);
  border-top: 3px solid var(--brand-red);
  padding: 1.5rem 2rem;
  z-index: 2000;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
  display: none;
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-text {
  font-size: 0.95rem;
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--chalk);
  border: 1px solid var(--stadium-grey);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--chalk);
}

.cookie-preferences-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(7, 13, 25, 0.85);
  backdrop-filter: blur(5px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-content {
  background-color: var(--dark-accent);
  border: 1px solid rgba(90, 109, 124, 0.3);
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--chalk);
  cursor: pointer;
  padding: 0.5rem;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.modal-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(90, 109, 124, 0.3);
  padding-bottom: 0.5rem;
}

.preference-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background-color: rgba(7, 13, 25, 0.4);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(78, 93, 104, 0.3);
}

.preference-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-red);
  cursor: pointer;
  margin-top: 0.2rem;
}

.preference-label-wrapper {
  display: flex;
  flex-direction: column;
}

.preference-name {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.preference-desc {
  font-size: 0.85rem;
  color: var(--stadium-grey);
  margin-top: 0.25rem;
}

/* Footer & Addresses */
footer {
  background-color: #040810;
  border-top: 2px solid rgba(90, 109, 124, 0.3);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(78, 93, 104, 0.3);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand-section .logo-icon {
  width: 32px;
  height: 32px;
}

.footer-desc {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 400px;
}

.footer-links-heading {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--stadium-grey);
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-item a {
  color: var(--chalk);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-link-item a:hover {
  color: var(--brand-red);
}

.footer-addresses {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.address-block {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.5;
}

.address-title {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--stadium-grey);
}

.legal-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

.legal-inline-link a {
  color: var(--stadium-grey);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.legal-inline-link a:hover {
  color: var(--chalk);
}

.persistent-cookie-trigger {
  background: none;
  border: none;
  color: var(--stadium-grey);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.persistent-cookie-trigger:hover {
  color: var(--chalk);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .routes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
  }
  .nav-desktop {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .match-grid {
    grid-template-columns: 1fr;
  }
  .routes-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-form {
    padding: 2rem;
  }
  .stats-overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .match-scoreline {
    font-size: 2rem;
    gap: 1rem;
  }
  .match-team {
    font-size: 1.4rem;
  }
  .match-numbers {
    min-width: 45px;
  }
  .stats-overview-grid {
    grid-template-columns: 1fr;
  }
}