/* ===== 2026FIFA.LIVE — STADIUM NIGHT THEME v2 ===== */

:root {
  --bg:         #070B15;
  --bg-card:    #0F1629;
  --bg-surface: #18203A;
  --bg-hover:   #1E2A4A;
  --gold:       #F5C518;
  --gold-dim:   #C9A015;
  --gold-glow:  rgba(245, 197, 24, 0.15);
  --green:      #00C853;
  --green-dim:  #00963E;
  --green-glow: rgba(0, 200, 83, 0.15);
  --red:        #FF1744;
  --blue:       #1E88E5;
  --text:       #FFFFFF;
  --text-sec:   #8892A4;
  --text-dim:   #4A5568;
  --border:     #1A2340;
  --border-glow:#2A3F6F;
  --radius:     10px;
  --radius-lg:  16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(245, 197, 24, 0.3); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

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

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

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 21, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(7, 11, 21, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-trophy {
  font-size: 26px;
  filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.3));
  animation: trophyFloat 3s ease-in-out infinite;
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
}

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

.logo-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-sec);
  margin-top: -2px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  transition: all 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.2s;
}

.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-surface);
}

.nav-cta {
  background: var(--gold) !important;
  color: #000 !important;
  font-weight: 600;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-dim) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(15, 22, 41, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px 16px;
  gap: 4px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-sec);
}

.mobile-nav a:hover { background: var(--bg-surface); color: var(--text); }
.mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 70px 0 60px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30, 136, 229, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(245, 197, 24, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0A1225 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.25);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 0.9;
  letter-spacing: 4px;
  color: var(--text);
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(245, 197, 24, 0.1);
}

.hero-year {
  color: var(--gold);
  display: block;
  text-shadow: 0 0 60px rgba(245, 197, 24, 0.2);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-sec);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-dates {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.06);
  border: 1px solid rgba(245, 197, 24, 0.15);
  padding: 6px 20px;
  border-radius: 6px;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(120px, 25vw, 280px);
  color: rgba(255,255,255,0.02);
  letter-spacing: 10px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ===== SECTIONS & ANIMATIONS ===== */
.section { padding: 36px 0; position: relative; z-index: 1; }

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

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh-info, .date-badge {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Scroll animations ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ===== LIVE DOT ===== */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.pulse-text { animation: pulseText 2s infinite; }

@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== ADS ===== */
.ad-wrapper {
  padding: 12px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ad-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ad-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border-glow);
  color: var(--text-dim);
  font-size: 12px;
  padding: 18px;
  border-radius: var(--radius);
  max-width: 728px;
  margin: 0 auto;
}

.ad-300 {
  width: 300px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

/* ===== MATCH CARDS ===== */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.match-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #0D1425 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.match-card:hover::before { opacity: 1; }

.match-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.match-card.live {
  border-color: rgba(0, 200, 83, 0.3);
  background: linear-gradient(135deg, #0F1629 0%, #0A1A10 100%);
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.05);
}

.match-card.live::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: shimmerLine 2s infinite;
}

@keyframes shimmerLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.match-card.live .match-status {
  color: var(--green);
  animation: pulse 1.5s infinite;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.team-flag {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.team-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center;
}

.score-area {
  text-align: center;
  min-width: 80px;
}

.score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 4px;
  color: var(--text);
  transition: color 0.3s;
}

.score.live-score { color: var(--green); }

.match-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-sec);
  margin-top: 4px;
  display: block;
}

.match-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--gold);
  margin-top: 4px;
  display: block;
}

.match-result-bar {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.no-matches {
  color: var(--text-sec);
  font-size: 14px;
  padding: 28px;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  grid-column: 1/-1;
}

.no-match-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.loading-card {
  color: var(--text-dim);
  font-size: 13px;
  padding: 20px;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  grid-column: 1/-1;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== 2 COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 32px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.card-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, #0D1425 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.15), transparent);
}

.card-section .section-title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== STANDINGS TABLE ===== */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.standings-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-align: right;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.standings-table th:first-child,
.standings-table th:nth-child(2) { text-align: left; }

.standings-table td {
  padding: 7px 8px;
  text-align: right;
  border-bottom: 1px solid rgba(26, 35, 64, 0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-sec);
}

.standings-table td:nth-child(2) {
  text-align: left;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.rank-num {
  color: var(--text-dim) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  width: 20px;
}

.standings-table tr:last-child td { border-bottom: none; }
.standings-table .pts { color: var(--gold); font-weight: 600; font-size: 14px; }

.standings-table .qualify td {
  position: relative;
}

.standings-table .qualify td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--green);
  border-radius: 1px;
}

.group-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold);
  padding: 12px 8px 6px;
}

/* ===== TOP SCORERS ===== */
.scorer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 35, 64, 0.5);
  transition: background 0.2s;
  border-radius: 6px;
  padding-left: 6px;
  padding-right: 6px;
}

.scorer-row:hover {
  background: var(--bg-hover);
}

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

.scorer-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  min-width: 20px;
  text-align: center;
}

.scorer-rank:first-child {
  color: var(--gold);
  font-weight: 600;
}

.scorer-info { flex: 1; }

.scorer-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.scorer-team {
  font-size: 11px;
  color: var(--text-sec);
  margin-top: 2px;
}

.scorer-goals {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--green);
  min-width: 30px;
  text-align: right;
  text-shadow: 0 0 20px rgba(0, 200, 83, 0.2);
}

/* ===== PROMO SECTION ===== */
.promo-section {
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.promo-card {
  background: linear-gradient(135deg, #1A2235 0%, #0D1520 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.promo-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.promo-text p {
  font-size: 14px;
  color: var(--text-sec);
}

.btn-promo {
  background: var(--gold);
  color: #000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  padding: 12px 28px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.btn-promo:hover {
  background: var(--gold-dim);
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(245, 197, 24, 0.3);
}

/* ===== VIEW ALL ===== */
.view-all {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  transition: color 0.2s;
}

.view-all:hover { color: #fff; }
.view-all.center { display: block; text-align: center; }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card) 0%, #080C18 100%);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-sec);
  transition: color 0.2s;
}

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

.footer-credit {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-credit a { color: var(--gold); }

.footer-small {
  font-size: 11px;
  color: var(--text-dim);
}

/* ===== GOAL FLASH ANIMATION ===== */
.goal-flash {
  animation: goalFlash 0.6s ease-out;
}

@keyframes goalFlash {
  0% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.8); }
  50% { box-shadow: 0 0 30px 10px rgba(255, 23, 68, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: block; }

  .two-col {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .promo-card {
    flex-direction: column;
    text-align: center;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }

  .hero-title { font-size: 56px; }
  .section { padding: 24px 0; }
}

@media (max-width: 480px) {
  .match-card { padding: 14px; }
  .score { font-size: 32px; }
  .team-flag { font-size: 26px; }
  .hero { padding: 50px 0 40px; }
  .section-title { font-size: 18px; }
}
