:root {
  --bg-primary: #08111b;
  --bg-secondary: #0f1d2e;
  --bg-surface: #13263a;
  --bg-surface-hover: #1c3550;
  
  --accent-primary: #22c55e;
  --accent-secondary: #38bdf8;
  --accent-tertiary: #f97316;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --header-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-accent-primary { color: var(--accent-primary); }
.text-accent-secondary { color: var(--accent-secondary); }
.text-accent-tertiary { color: var(--accent-tertiary); }
.text-secondary { color: var(--text-secondary); }

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
}

.section-title {
  font-size: 2rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 8px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(8, 17, 27, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.brand-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
  position: relative;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--text-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: #1ea34d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-outline:hover {
  background-color: var(--accent-secondary);
  color: #000;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Page Layout */
.page-wrapper {
  padding-top: var(--header-height);
  min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background-image: linear-gradient(to bottom, rgba(8,17,27,0.4), var(--bg-primary)), url('assets/images/world-cup-stadium-lights.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(34, 197, 94, 0.2);
  color: var(--accent-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
}

/* Top Odds Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th, .data-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: rgba(0,0,0,0.2);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

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

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

.col-rank {
  width: 60px;
  font-weight: 700;
  color: var(--text-secondary);
}

.col-country {
  font-weight: 700;
  font-size: 1.1rem;
}

.col-group {
  text-align: center;
}

.group-badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.1);
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
}

.col-odds {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--accent-secondary);
  font-weight: 700;
}

.col-pct {
  font-weight: 600;
}

.highlight-green {
  color: var(--accent-primary);
}

.highlight-orange {
  color: var(--accent-tertiary);
}

/* Cards System */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.sport-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sport-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-secondary);
  opacity: 0.5;
}

.sport-card.rank-top::before { background-color: var(--accent-primary); opacity: 1; }
.sport-card.rank-mid::before { background-color: var(--accent-secondary); opacity: 1; }
.sport-card.rank-low::before { background-color: var(--accent-tertiary); opacity: 1; }

.sport-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-highlight);
}

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

.card-rank {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-iso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 26px;
  background-color: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  letter-spacing: 0.05em;
}

.card-body {
  flex-grow: 1;
}

.card-editorial {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.5;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-value.odds {
  font-family: monospace;
  color: var(--accent-secondary);
}

.stat-value.chance {
  color: var(--text-primary);
}

/* Predictions Specific */
.prediction-tier {
  margin-bottom: 60px;
}

.tier-header {
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--accent-primary);
}

.tier-title {
  font-size: 1.5rem;
}

.tier-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tier-challengers .tier-header { border-left-color: var(--accent-secondary); }
.tier-darkhorses .tier-header { border-left-color: var(--accent-tertiary); }
.tier-longshots .tier-header { border-left-color: var(--text-muted); }

/* Groups Specific */
.group-section {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
  overflow: hidden;
}

.group-header {
  background-color: rgba(0,0,0,0.2);
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
}

.group-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.group-teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background-color: var(--border-color);
}

.group-team-card {
  background-color: var(--bg-surface);
  padding: 24px;
}

.group-team-card:hover {
  background-color: var(--bg-surface-hover);
}

.team-position {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: 8px;
}

/* Guide Specific */
.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

.guide-block {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.guide-block h3 {
  color: var(--accent-secondary);
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.guide-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guide-block p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 60px;
}

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

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Utilities & Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .mobile-menu-toggle { display: block; }
  
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 2.25rem; }
  
  .section { padding: 50px 0; }
  
  .data-table th, .data-table td { padding: 12px 16px; }
  
  .grid-cards { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  
  /* Mobile Menu Active State */
  .main-nav.mobile-active {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
  }
  .main-nav.mobile-active ul {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .group-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}