/*
 * Arapixeldistrict | World Cup 2026 Premium Editorial Match Guide Stylesheet
 * Elegant Editorial Design with Luxury Gold Accents, Clean Grid Systems, and Modern Fluid Typography
 */

:root {
  /* Color Palette */
  --color-bg-deep: #08090c;
  --color-bg-card: #11131a;
  --color-bg-card-hover: #161a24;
  --color-bg-accent: #171921;
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gold-dark: #aa8a1e;
  --color-gold-glow: rgba(212, 175, 55, 0.15);
  --color-gold-glow-heavy: rgba(212, 175, 55, 0.35);
  
  --color-text-main: #f4f5f7;
  --color-text-muted: #9fa1a6;
  --color-text-dark: #08090c;
  
  --color-border: rgba(212, 175, 55, 0.15);
  --color-border-heavy: rgba(212, 175, 55, 0.35);
  --color-border-light: rgba(255, 255, 255, 0.05);

  --color-success: #2ec4b6;
  --color-warning: #ff9f1c;
  --color-danger: #e71d36;

  /* Typography */
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions & FX */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --luxury-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.03);
  --inset-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
  
  /* Layout Constraints */
  --header-height: 80px;
  --container-max-width: 1200px;
}

/* 1. Base Reset & Typography Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
}

/* Base Headings & Typographic System */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-main);
}

.serif-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

.text-gold {
  color: var(--color-gold) !important;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Focus outline for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

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

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

/* Golden Brand Divider Line */
.gold-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 20px auto;
}

/* Section Tag styling (E.g. Tournament Context) */
.section-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  display: block;
  margin-bottom: 12px;
}

/* Editorial Buttons styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary-gold {
  background-color: var(--color-gold);
  color: var(--color-text-dark);
  border-color: var(--color-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary-gold:hover {
  background-color: transparent;
  color: var(--color-gold);
  box-shadow: 0 4px 25px var(--color-gold-glow);
  transform: translateY(-2px);
}

.btn-editorial {
  background-color: transparent;
  color: var(--color-text-main);
  border-color: var(--color-border-heavy);
}

.btn-editorial:hover {
  background-color: var(--color-gold-glow);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border-light);
}

.btn-outline:hover {
  color: var(--color-text-main);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-card-action {
  font-size: 0.75rem;
  padding: 10px 16px;
  border-color: var(--color-border);
  color: var(--color-gold);
  background: transparent;
  margin-top: 15px;
  width: 100%;
}

.btn-card-action:hover {
  background-color: var(--color-gold);
  color: var(--color-text-dark);
  border-color: var(--color-gold);
}


/* 2. Main Header / Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(8, 9, 12, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
}

.brand-logo .gold-accent {
  color: var(--color-gold);
}

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

.desktop-nav {
  display: none;
}

.desktop-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  padding: 8px 0;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.desktop-nav a:hover {
  color: var(--color-text-main);
}

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

/* Burger Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  transition: var(--transition-smooth);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-bg-card);
  border-left: 1px solid var(--color-border);
  z-index: 999;
  padding: 120px 40px 40px;
  transition: var(--transition-smooth);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-nav-links a:hover {
  color: var(--color-gold);
  padding-left: 10px;
}

.mobile-btn {
  margin-top: 20px;
}


/* 3. Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(17, 19, 26, 0.4) 0%, rgba(8, 9, 12, 1) 100%),
              radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  overflow: hidden;
}

.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-image: 
    radial-gradient(circle at 100% 150%, var(--color-gold) 24%, transparent 24%),
    radial-gradient(circle at 0% 150%, var(--color-gold) 24%, transparent 24%),
    linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
  background-size: 8% 8%, 8% 8%, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  pointer-events: none;
}

.hero-content-wrapper {
  position: relative;
  z-index: 5;
  max-width: 800px;
}

.badge-container {
  margin-bottom: 24px;
}

.gold-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 8px 16px;
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  background-color: rgba(212, 175, 55, 0.05);
  display: inline-block;
  color: var(--color-gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
}

.hero-footer-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 700px;
  margin-top: auto;
  z-index: 5;
}

.stat-pill {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pill-label {
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
}


/* 4. Overview Section */
.overview-section {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
  background-color: rgba(17, 19, 26, 0.3);
}

.section-intro {
  margin-bottom: 60px;
}

.section-intro .serif-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 8px;
}

.intro-paragraph {
  max-width: 800px;
  margin: 24px auto 0;
  font-size: 1.1rem;
  line-height: 1.75;
  font-weight: 300;
}

.section-desc {
  max-width: 700px;
  margin: 16px auto 0;
  font-weight: 300;
}

.max-600 {
  max-width: 600px;
}

.overview-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.overview-visual-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-top: 3px solid var(--color-border);
  padding: 40px 30px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.overview-visual-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--color-gold);
  border-color: var(--color-border-heavy);
  box-shadow: var(--luxury-shadow);
}

.card-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.15);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.overview-visual-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.overview-visual-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}


/* 5. Title Race Section */
.favorites-section {
  padding: 100px 0;
  background-color: var(--color-bg-deep);
}

.favorites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 50px;
}

.favorite-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.favorite-card:hover {
  border-color: var(--color-border-heavy);
  transform: translateY(-4px);
  box-shadow: var(--luxury-shadow);
}

/* Specific styling for Top Favorite */
.favorite-card.highlight-card {
  border-color: var(--color-gold);
  background: linear-gradient(145deg, var(--color-bg-card) 60%, rgba(212, 175, 55, 0.05) 100%);
}

.favorite-card.highlight-card::before {
  content: 'TOP CONTENDER';
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: var(--color-gold);
  color: var(--color-text-dark);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 4px 30px;
  transform: rotate(45deg);
}

.fav-rank {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 12px;
}

.fav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.fav-country {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.group-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid var(--color-border-heavy);
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--color-text-muted);
}

.fav-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.fav-stat-block {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* Animated Progress bar representation */
.card-progress {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
  border-radius: 10px;
}


/* 6. Top 10 Matchups Overview */
.matchups-section {
  padding: 100px 0;
  background-color: var(--color-bg-accent);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.matchups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 50px;
}

.match-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  padding: 24px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.match-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-heavy);
  box-shadow: var(--luxury-shadow);
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.group-indicator {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.match-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.match-teams-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.team-side {
  flex: 1;
}

.team-side h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.team-rank {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.versus-divider {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-gold);
  padding: 0 15px;
  opacity: 0.8;
}

.match-short-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.match-card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--color-border-light);
  padding-top: 16px;
}

.match-card-stats-grid div {
  display: flex;
  flex-direction: column;
}

.match-card-stats-grid .lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.match-card-stats-grid .val {
  font-size: 0.85rem;
  font-weight: 700;
}


/* 7. Expanded Match Guide Blocks */
.expanded-guide-section {
  padding: 100px 0;
  background-color: var(--color-bg-deep);
}

.guide-blocks-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
}

.guide-block {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  padding: 40px 30px;
  scroll-margin-top: calc(var(--header-height) + 20px);
  position: relative;
}

.guide-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-gold), transparent);
}

.guide-meta {
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.guide-group {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.guide-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.guide-comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-light);
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 30px;
}

.guide-team-col {
  display: flex;
  flex-direction: column;
}

.guide-team-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--color-gold);
}

.guide-team-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.guide-vs {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-muted);
  align-self: center;
  position: relative;
  width: 100%;
  text-align: center;
}

.guide-vs::before, .guide-vs::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: var(--color-border-light);
}

.guide-vs::before { left: 0; }
.guide-vs::after { right: 0; }

.guide-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 6px;
  width: max-content;
}

.guide-body p {
  font-size: 0.95rem;
  line-height: 1.7;
}


/* 8. Group Balance Section (Table) */
.group-balance-section {
  padding: 100px 0;
  background-color: var(--color-bg-accent);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 40px;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
}

.balance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 800px;
}

.balance-table th {
  background-color: var(--color-bg-card);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  padding: 20px 24px;
  font-weight: 600;
  border-bottom: 2px solid var(--color-border-heavy);
}

.balance-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
}

.balance-table tbody tr {
  background-color: rgba(17, 19, 26, 0.4);
  transition: var(--transition-fast);
}

.balance-table tbody tr:hover {
  background-color: var(--color-bg-card);
}

.balance-table td strong {
  color: var(--color-text-main);
  font-weight: 600;
}

.badge-margin {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
}

.badge-margin.high {
  background-color: rgba(231, 29, 54, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(231, 29, 54, 0.2);
}

.badge-margin.medium {
  background-color: rgba(255, 159, 28, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(255, 159, 28, 0.2);
}

.badge-margin.low {
  background-color: rgba(46, 196, 182, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(46, 196, 182, 0.2);
}


/* 9. Host Nations Section */
.hosts-section {
  padding: 100px 0;
  background-color: var(--color-bg-deep);
}

.hosts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 50px;
}

.host-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  padding: 30px;
  transition: var(--transition-smooth);
}

.host-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-heavy);
  box-shadow: var(--luxury-shadow);
}

.host-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.host-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 4px;
}

.host-country-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.host-rank {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: 1px solid var(--color-border-heavy);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.02);
}

.host-body-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  padding-bottom: 8px;
}

.metric-row span {
  color: var(--color-text-muted);
}

.metric-row strong {
  color: var(--color-text-main);
  font-weight: 600;
}

.host-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}


/* 10. Tournament Guide / Metrology Explainer */
.tournament-guide-section {
  padding: 100px 0;
  background-color: var(--color-bg-accent);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.guide-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

.guide-list {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.guide-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
}

.guide-list strong {
  color: var(--color-text-main);
  font-weight: 600;
}

.guide-graphic {
  display: flex;
  justify-content: center;
}

.graphic-box {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--luxury-shadow);
  position: relative;
}

.graphic-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 12px;
}

.graphic-data-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.graphic-chart-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.graphic-chart-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 85%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
}

.graphic-chart-bar.partial::before {
  width: 45%;
}


/* 11. FAQ Section */
.faq-section {
  padding: 100px 0;
  background-color: var(--color-bg-deep);
}

.faq-accordion {
  max-width: 800px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--color-border);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-main);
  text-align: left;
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  transition: var(--transition-fast);
}

.faq-question::after {
  content: '+';
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-gold);
  transition: var(--transition-smooth);
  margin-left: 15px;
}

.faq-item.active .faq-question {
  color: var(--color-gold);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  border-color: var(--color-border-light);
}

.faq-answer p {
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.65;
}


/* 12. Legal Modal Component */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-modal-overlay.active {
  display: flex;
}

.legal-modal-box {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: var(--luxury-shadow);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1;
}

.close-modal:hover {
  color: var(--color-gold);
}


/* 13. Premium Footer */
.main-footer {
  background-color: #050608;
  border-top: 1px solid var(--color-border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
}

.footer-logo .gold-accent {
  color: var(--color-gold);
}

.footer-logo .dot {
  color: var(--color-gold);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.address-placeholder-block {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-border);
  padding-left: 15px;
  margin-top: 10px;
  line-height: 1.6;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a, .link-btn {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: left;
}

.footer-nav a:hover, .link-btn:hover {
  color: var(--color-text-main);
  padding-left: 4px;
}

.link-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 0;
  transition: var(--transition-fast);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}


/* 14. Cookie Consent Banner */
.cookie-banner-wrapper {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  z-index: 1500;
  padding: 24px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.cookie-banner-wrapper.active {
  bottom: 0;
}

.cookie-banner-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.cookie-banner-content p {
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-muted);
}

.link-btn-cookie {
  background: transparent;
  border: none;
  color: var(--color-gold);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: center;
}

.btn-outline-cookie {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  flex: 1;
  max-width: 150px;
}

.btn-gold-cookie {
  background-color: var(--color-gold);
  border: 1px solid var(--color-gold);
  color: var(--color-text-dark);
  font-size: 0.75rem;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  flex: 1;
  max-width: 150px;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.15);
}


/* 15. Responsive Media Queries (Mobile-First Upgrades) */

@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
  }
  
  .cookie-banner-actions {
    width: auto;
  }
}

@media (min-width: 768px) {
  /* Layout Paddings scale up */
  .overview-section, .favorites-section, .matchups-section, 
  .expanded-guide-section, .group-balance-section, .hosts-section, 
  .tournament-guide-section, .faq-section {
    padding: 120px 0;
  }

  /* Grid Layout Implementations */
  .overview-visual-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .hosts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-comparison-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .guide-team-col {
    width: 45%;
  }

  .guide-vs {
    width: 10%;
  }

  .guide-vs::before, .guide-vs::after {
    display: none;
  }

  .hero-footer-stats {
    flex-direction: row;
  }

  .cookie-banner-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-banner-content p {
    text-align: left;
    max-width: 70%;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 992px) {
  /* Navigation Desktop transformation */
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-nav-drawer {
    display: none;
  }

  /* Structural Columns Upgrades */
  .matchups-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .favorites-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 1200px) {
  .matchups-grid {
    gap: 40px;
  }
  
  .favorites-grid {
    gap: 30px;
  }
}