:root {
  --page-background: #F2F4F7;
  --fixture-surface: #FFFFFF;
  --divider-line: #D8DDE3;
  --dark-text: #111827;
  --muted-text: #5F6B7A;
  --group-label: #1C4E80;
  --preview-btn-dark: #15191F;
  --preview-btn-text: #FFFFFF;
  --accent-blue: #2563EB;
  --accent-green: #0E7A3D;
  --accent-red: #D62839;
  --header-black: #050505;
  --header-active: #FFFFFF;
  --light-row-header: #FAFAFA;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--page-background);
  color: var(--dark-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Home Page Background Image */
.home-page-bg-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}

.home-page-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(17, 24, 39, 0.7);
  z-index: -1;
}

body.home-page {
  background-color: transparent;
}

body.home-page .section-title {
  color: #FFFFFF;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Header Navigation */
.site-header {
  background-color: var(--header-black);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.desktop-nav {
  display: flex;
  height: 100%;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  height: 100%;
  margin: 0;
}

.desktop-nav li {
  height: 100%;
}

.desktop-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 14px;
  color: #a1a1aa;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.desktop-nav a:hover {
  color: #fff;
}

.desktop-nav a.active {
  color: var(--header-active);
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background-color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background-color: var(--header-black);
  border-top: 1px solid #333;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav a {
  display: block;
  padding: 16px 20px;
  color: #a1a1aa;
  font-size: 16px;
  border-bottom: 1px solid #222;
}

.mobile-nav a.active {
  color: var(--header-active);
  background-color: #111;
}

/* Hero Section */
.hero-section {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 20px;
}

.hero-content {
  background-color: var(--fixture-surface);
  border: 1px solid var(--divider-line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--muted-text);
  max-width: 800px;
}

.snapshot-badge {
  display: inline-flex;
  align-items: center;
  background-color: #EBF5FF;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 8px;
}

/* Schedule / Fixtures Grid */
.schedule-section {
  max-width: 1180px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.date-group {
  margin-bottom: 40px;
}

.date-header {
  background-color: var(--light-row-header);
  border: 1px solid var(--divider-line);
  border-bottom: none;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-text);
}

.fixtures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--divider-line);
  gap: 1px;
  border: 1px solid var(--divider-line);
}

.fixture-card {
  background-color: var(--fixture-surface);
  display: flex;
  height: 145px;
  transition: background-color 0.2s ease;
}

.card-left {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.group-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--group-label);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.team-row {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-text);
}

.team-flag {
  font-size: 20px;
  margin-right: 12px;
  display: inline-block;
  width: 28px;
  text-align: center;
}

.card-right {
  width: 150px;
  padding: 20px 16px;
  border-left: 1px solid var(--divider-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  gap: 12px;
}

.match-time-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.match-date, .match-time {
  font-size: 13px;
  color: var(--muted-text);
  font-weight: 500;
}

.match-time {
  color: var(--dark-text);
  font-weight: 700;
  font-size: 15px;
}

.preview-btn {
  background-color: var(--preview-btn-dark);
  color: var(--preview-btn-text);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.preview-btn:hover {
  background-color: #333;
}

/* Previews Section */
.previews-section {
  max-width: 1180px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--divider-line);
}

.preview-block {
  background-color: var(--fixture-surface);
  border: 1px solid var(--divider-line);
  padding: 24px;
  margin-bottom: 16px;
  scroll-margin-top: 80px;
}

.preview-image-container {
  margin: -24px -24px 20px -24px;
  overflow: hidden;
  border-bottom: 1px solid var(--divider-line);
}

.preview-match-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.preview-match-title {
  font-size: 20px;
  font-weight: 700;
}

.preview-meta {
  font-size: 14px;
  color: var(--muted-text);
  margin-top: 4px;
}

.preview-context {
  font-size: 15px;
  color: var(--dark-text);
  background-color: var(--light-row-header);
  padding: 16px;
  border-left: 4px solid var(--accent-blue);
  line-height: 1.5;
}

/* Decision Board */
.decision-board {
  max-width: 1180px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.decision-card {
  background-color: var(--fixture-surface);
  border: 1px solid var(--divider-line);
  padding: 20px;
}

.decision-group {
  font-size: 12px;
  font-weight: 700;
  color: var(--group-label);
  margin-bottom: 12px;
}

.decision-teams {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

.decision-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider-line);
}

.decision-stat-row {
  display: flex;
  justify-content: space-between;
}

.decision-note {
  font-size: 14px;
  color: var(--muted-text);
}

/* Group Context Page */
.context-strip {
  background-color: var(--fixture-surface);
  border: 1px solid var(--divider-line);
  margin-bottom: 24px;
}

.strip-header {
  background-color: var(--light-row-header);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 18px;
  border-bottom: 1px solid var(--divider-line);
}

.strip-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 16px 20px;
  border-bottom: 1px solid var(--divider-line);
  font-size: 15px;
}

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

.strip-row.header-row {
  font-weight: 600;
  color: var(--muted-text);
  font-size: 13px;
  text-transform: uppercase;
}

/* Standard Pages (About, Terms, etc.) */
.page-container {
  max-width: 800px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
  background-color: var(--fixture-surface);
  border: 1px solid var(--divider-line);
}

.page-container.padded {
  padding: 40px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider-line);
}

.page-content h2 {
  font-size: 20px;
  margin: 24px 0 12px 0;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--dark-text);
}

.page-content ul {
  margin: 0 0 16px 24px;
  color: var(--dark-text);
}

.page-content li {
  margin-bottom: 8px;
}

/* Contact Form */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--divider-line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--preview-btn-dark);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #333;
}

.form-message {
  display: none;
  padding: 16px;
  background-color: #E8F5E9;
  color: var(--accent-green);
  border: 1px solid #C8E6C9;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background-color: var(--header-black);
  color: #fff;
  padding: 60px 20px 40px 20px;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid #333;
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-domain {
  color: #a1a1aa;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-disclaimer {
  color: #71717a;
  font-size: 13px;
  line-height: 1.5;
  max-width: 400px;
}

.footer-links h3 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a1a1aa;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 13px;
  color: #71717a;
  text-align: left;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--fixture-surface);
  border-top: 1px solid var(--divider-line);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  padding: 24px 20px;
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  flex: 1;
  font-size: 14px;
  color: var(--muted-text);
}

.cookie-text strong {
  color: var(--dark-text);
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--divider-line);
  background: transparent;
  color: var(--dark-text);
}

.cookie-btn.primary {
  background-color: var(--preview-btn-dark);
  color: #fff;
  border-color: var(--preview-btn-dark);
}

.cookie-btn:hover {
  background-color: #f3f4f6;
}

.cookie-btn.primary:hover {
  background-color: #333;
}

.cookie-prefs {
  display: none;
  background: var(--page-background);
  padding: 16px;
  margin-top: 16px;
  border: 1px solid var(--divider-line);
  border-radius: 4px;
}

.cookie-prefs.open {
  display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .hero-section, .schedule-section, .previews-section, .decision-board {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .fixtures-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .cookie-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    flex-wrap: wrap;
    width: 100%;
  }
  
  .strip-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .strip-row.header-row {
    display: none;
  }
}

@media (max-width: 480px) {
  .fixture-card {
    height: auto;
    flex-direction: column;
  }
  
  .card-left {
    padding: 16px;
  }
  
  .card-right {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--divider-line);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
  }
  
  .match-time-info {
    align-items: flex-start;
  }
}