/* Football Hub — Premium Dark Theme */
:root {
  --bg: #08111F;
  --card: #111B2E;
  --card-hover: #162038;
  --accent: #00D084;
  --accent-dim: rgba(0, 208, 132, 0.15);
  --secondary: #3B82F6;
  --text: #FFFFFF;
  --text-muted: #A8B3C5;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(17, 27, 46, 0.72);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 208, 132, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.06), transparent);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #33e8a0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; }
ul { list-style: none; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; z-index: 9999;
  padding: 0.75rem 1.25rem; background: var(--accent); color: var(--bg);
  border-radius: var(--radius-sm); font-weight: 600; clip: auto; width: auto; height: auto;
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: 4rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.section-desc { color: var(--text-muted); margin-bottom: 1.5rem; }
.section-block { margin-bottom: 2.5rem; }
.link-arrow { color: var(--accent); font-weight: 500; white-space: nowrap; }
.empty-state { color: var(--text-muted); text-align: center; padding: 3rem; }

/* Glass Card */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.glass-card:hover { border-color: rgba(0, 208, 132, 0.2); box-shadow: var(--shadow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600;
  font-family: var(--font-heading); font-size: 0.95rem; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #00b872); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 208, 132, 0.35); color: var(--bg); }
.btn-secondary { background: rgba(59, 130, 246, 0.15); color: var(--secondary); border: 1px solid rgba(59, 130, 246, 0.3); }
.btn-secondary:hover { background: rgba(59, 130, 246, 0.25); color: #60a5fa; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 17, 31, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.875rem 0; flex-wrap: wrap;
}
.site-logo {
  display: flex; align-items: center; gap: 0.625rem;
  color: var(--text); font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem;
}
.site-logo:hover { color: var(--accent); }
.primary-nav { flex: 1; }
.nav-list { display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap; }
.nav-link {
  display: block; padding: 0.5rem 0.875rem; color: var(--text-muted);
  border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.5rem; box-shadow: var(--shadow); z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 0.5rem 0.75rem; color: var(--text-muted); border-radius: 6px; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.header-search {
  display: flex; align-items: center; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.header-search input {
  background: none; border: none; color: var(--text); padding: 0.5rem 0.75rem;
  font-size: 0.875rem; width: 160px; outline: none;
}
.header-search button { background: none; border: none; color: var(--text-muted); padding: 0.5rem 0.75rem; cursor: pointer; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-block; padding: 0.375rem 0.875rem; background: var(--accent-dim);
  color: var(--accent); border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem;
}
.hero-subtitle { color: var(--text-muted); font-size: 1.125rem; margin: 1rem 0 1.75rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual img { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); animation: float 6s ease-in-out infinite; }
.demo-notice { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.demo-notice code { background: var(--card); padding: 0.15rem 0.4rem; border-radius: 4px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Filters */
.filters-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.5rem 1rem; border-radius: 999px; color: var(--text-muted);
  border: 1px solid var(--border); font-size: 0.875rem; font-weight: 500;
}
.filter-tab:hover, .filter-tab.active { background: var(--accent-dim); color: var(--accent); border-color: rgba(0,208,132,0.3); }
.section-search input {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 0.5rem 1rem; font-size: 0.875rem; min-width: 220px;
}

/* Match Cards */
.league-group { margin-bottom: 2rem; }
.league-group-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; color: var(--text-muted); margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.league-group-title a { color: var(--text); }
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.75rem; }
.match-card {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; color: var(--text);
  transition: all var(--transition);
}
.match-card:hover { background: var(--card-hover); border-color: rgba(0,208,132,0.2); transform: translateY(-2px); color: var(--text); }
.match-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: 0.8rem; }
.match-league { color: var(--text-muted); display: flex; align-items: center; gap: 0.375rem; }
.match-status { font-weight: 600; font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 4px; }
.status-live .match-status, .match-status.status-live { background: rgba(239,68,68,0.15); color: #f87171; }
.status-finished .match-status, .match-status.status-finished { color: var(--text-muted); }
.status-upcoming .match-status, .match-status.status-upcoming { color: var(--secondary); }
.match-card-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; }
.match-team { display: flex; align-items: center; gap: 0.5rem; }
.match-team.away { flex-direction: row-reverse; text-align: right; }
.team-name { font-weight: 500; font-size: 0.9rem; }
.match-score .score { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.match-score .vs { color: var(--text-muted); font-size: 0.9rem; }
.team-logo { border-radius: 50%; object-fit: contain; background: rgba(255,255,255,0.05); }

/* Featured */
.featured-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.featured-card { min-width: 300px; scroll-snap-align: start; color: var(--text); }
.featured-card:hover { color: var(--text); }
.featured-league { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.featured-teams { display: flex; flex-direction: column; gap: 0.75rem; }
.featured-team { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.featured-score { text-align: center; padding: 0.5rem 0; }
.featured-score strong { font-size: 1.5rem; font-family: var(--font-heading); }
.featured-status { display: block; font-size: 0.75rem; margin-top: 0.25rem; }
.featured-time { font-size: 1.25rem; font-weight: 600; color: var(--secondary); }

/* Stats Preview */
.stats-preview { margin-top: 1rem; }
.stats-header { display: grid; grid-template-columns: 1fr auto 1fr; text-align: center; margin-bottom: 1.25rem; font-weight: 600; font-size: 0.9rem; }
.stats-header .stats-team:first-child { text-align: left; }
.stats-header .stats-team:last-child { text-align: right; }
.stats-label { color: var(--text-muted); font-size: 0.8rem; }
.stat-row { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem; }
.stat-value { font-weight: 600; font-size: 0.85rem; }
.stat-value.home { text-align: right; }
.stat-name { display: block; text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.stat-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,0.05); }
.stat-bar-home { background: var(--accent); transition: width 0.6s ease; }
.stat-bar-away { background: var(--secondary); transition: width 0.6s ease; }

/* Standings */
.standings-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.standings-table th, .standings-table td { padding: 0.75rem 1rem; text-align: center; border-bottom: 1px solid var(--border); }
.standings-table th { background: rgba(255,255,255,0.03); color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.standings-table .team-cell { text-align: left; }
.standings-table .team-cell a { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.standings-table .points { color: var(--accent); }
.standings-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Fixtures & Results */
.fixture-list, .results-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.fixture-card, .result-card { display: flex; flex-direction: column; gap: 0.5rem; }
.fixture-time { font-weight: 700; color: var(--secondary); font-size: 1.1rem; }
.fixture-teams, .result-match { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-weight: 500; }
.fixture-teams span { display: flex; align-items: center; gap: 0.375rem; }
.countdown { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.result-score { font-family: var(--font-heading); font-size: 1.25rem; color: var(--accent); }
.result-scorers { font-size: 0.85rem; color: var(--text-muted); }

/* League Cards */
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.league-card { color: var(--text); text-align: center; }
.league-card:hover { color: var(--text); transform: translateY(-4px); }
.league-card-flag { font-size: 2rem; margin-bottom: 0.5rem; }
.league-card-name { margin-bottom: 0.25rem; }
.league-card-country { color: var(--text-muted); font-size: 0.85rem; }
.league-card-cta { display: block; margin-top: 0.75rem; color: var(--accent); font-size: 0.85rem; font-weight: 500; }

/* Page Layout */
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; padding: 2rem 0 4rem; }
.page-content { min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
.sidebar { position: sticky; top: 5rem; align-self: start; }

/* Match Page */
.match-header { margin-bottom: 2rem; text-align: center; }
.match-header-league { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.match-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.scoreboard-team a { color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.scoreboard-team h1 { font-size: 1.25rem; }
.scoreboard-score { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; }
.scoreboard-status { display: block; margin-top: 0.5rem; font-weight: 600; }
.scoreboard-venue { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.match-timeline { padding-left: 0; }
.timeline-event { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.timeline-minute { font-weight: 700; color: var(--accent); min-width: 36px; }
.lineups-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.lineup-card h3 { margin-bottom: 0.5rem; }
.formation { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.lineup-coach { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.lineup-card h4 { font-size: 0.85rem; color: var(--text-muted); margin: 0.75rem 0 0.375rem; }
.lineup-card li { padding: 0.25rem 0; font-size: 0.9rem; }
.lineup-card .subs li { color: var(--text-muted); }

/* Team Page */
.team-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.team-meta, .team-standing { color: var(--text-muted); font-size: 0.9rem; }
.team-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stat-box { text-align: center; padding: 1rem; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); }
.stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--accent); font-family: var(--font-heading); }
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); }

/* Breadcrumbs */
.breadcrumbs { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb-list li:not(:last-child)::after { content: '/'; margin-left: 0.5rem; opacity: 0.5; }
.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list a:hover { color: var(--accent); }

/* Ad Placeholders */
.ad-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 90px; background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}
.ad-sidebar { min-height: 250px; }
.ad-footer-banner { min-height: 90px; max-width: 728px; margin-inline: auto; }
.ad-label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; }

/* Legal & Content */
.content-page { padding: 2rem 0 4rem; max-width: 800px; }
.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.35rem; }
.prose p, .prose li { color: var(--text-muted); margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--accent); }
.legal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 2rem; }
.legal-card { color: var(--text); }
.legal-card:hover { color: var(--text); }
.legal-card h2 { font-size: 1.1rem; margin-bottom: 0.375rem; }
.legal-card p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* Forms */
.contact-form { max-width: 560px; margin-top: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.375rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.alert-success { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,208,132,0.3); }
.alert-error { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.search-form { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; padding: 1.5rem; margin-bottom: 2rem; }
.search-form input { flex: 1; min-width: 200px; }

/* Cookie Consent */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
  animation: slideUp 0.4s ease;
}
.cookie-consent[hidden] { display: none; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-inner { width: min(100% - 2rem, var(--container)); margin-inline: auto; padding: 1.5rem 0; }
.cookie-content h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.cookie-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.cookie-preferences { margin-bottom: 1rem; }
.cookie-option { display: block; padding: 0.5rem 0; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; }
.cookie-option input { margin-right: 0.5rem; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.75rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; max-width: 320px; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--text-muted); border: 1px solid var(--border); }
.social-links a:hover { color: var(--accent); border-color: var(--accent); }
.footer-links h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.375rem; }

/* Error Pages */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1rem; }
.error-code { font-size: 6rem; font-weight: 800; font-family: var(--font-heading); color: var(--accent); line-height: 1; }
.error-page h1 { margin: 1rem 0; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .page-layout, .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lineups-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .primary-nav { display: none; width: 100%; order: 3; }
  .primary-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .header-search { order: 2; flex: 1; }
  .header-search input { width: 100%; }
  .match-scoreboard { grid-template-columns: 1fr; gap: 1rem; }
  .scoreboard-team.away { order: 3; }
  .hide-mobile { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
