/* ============================================
   Last Dance Hub — Main Stylesheet
   Design: dark cinematic gold — pitch black
   background, warm gold accents, editorial
   typography mixing display serif + clean sans
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --gold-dim:    #7A5E24;
  --pitch:       #0A0A0A;
  --surface:     #111111;
  --surface2:    #1A1A1A;
  --surface3:    #242424;
  --border:      rgba(201,168,76,0.18);
  --border-sub:  rgba(255,255,255,0.07);
  --text:        #F0EDE4;
  --text-muted:  #7A776E;
  --text-dim:    #4A4740;
  --argentina:   #74ACDF;
  --portugal:    #D4000F;
  --radius:      6px;
  --radius-lg:   12px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--pitch);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ---- Typography ---- */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }

p { margin-bottom: 1rem; }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: 1100px; margin: 0 auto;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--text); }
.nav__links { display: flex; gap: 2rem; list-style: none; }
.nav__links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--gold); }
.nav__hamburger { display: none; cursor: pointer; background: none; border: none; color: var(--text); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 80%, rgba(201,168,76,0.06) 0%, transparent 70%);
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__content { position: relative; z-index: 2; padding: 4rem 0; }
.hero__eyebrow {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero__eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--gold);
}
.hero__title { margin-bottom: 1.5rem; }
.hero__title em {
  font-style: italic; color: var(--gold);
  display: block;
}
.hero__sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 560px; margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__countdown { margin-top: 4rem; }
.hero__countdown-label {
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 1rem;
}
.countdown {
  display: flex; gap: 1.5rem; align-items: flex-end;
}
.countdown__unit {
  text-align: center;
}
.countdown__num {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 900;
  color: var(--gold); line-height: 1;
  display: block;
}
.countdown__label {
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  margin-top: 4px;
}
.countdown__sep {
  font-size: 2rem; color: var(--gold-dim);
  margin-bottom: 8px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer; border: none;
  transition: all 0.2s;
}
.btn--gold {
  background: var(--gold); color: #0A0A0A;
}
.btn--gold:hover { background: var(--gold-light); color: #0A0A0A; }
.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Section headers ---- */
.section-head { margin-bottom: 3rem; }
.section-head h4 { margin-bottom: 0.5rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { color: var(--text-muted); max-width: 500px; }

/* ---- Player cards ---- */
.players-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.player-card {
  background: var(--surface);
  padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: background 0.2s;
}
.player-card:hover { background: var(--surface2); }
.player-card--messi { border-left: 3px solid var(--argentina); }
.player-card--ronaldo { border-left: 3px solid var(--portugal); }
.player-card__country {
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.player-card__name {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 900;
  margin-bottom: 1.5rem;
}
.player-card__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat { }
.stat__num {
  font-size: 1.8rem; font-weight: 700;
  font-family: var(--font-display);
  color: var(--gold); line-height: 1;
}
.stat__label {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim);
  margin-top: 4px;
}
.player-card__bio {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ---- Versus divider ---- */
.vs-bar {
  display: flex; align-items: center;
  justify-content: center;
  padding: 3rem 0;
  gap: 2rem;
}
.vs-bar__line { flex: 1; height: 1px; background: var(--border); }
.vs-bar__text {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 900;
  color: var(--gold-dim);
  letter-spacing: -0.05em;
}

/* ---- Stats comparison table ---- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table td, .compare-table th {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-sub);
  font-size: 0.9rem;
}
.compare-table td:first-child {
  text-align: right; color: var(--argentina);
  font-weight: 600; font-size: 1.1rem;
}
.compare-table td:last-child {
  color: var(--portugal);
  font-weight: 600; font-size: 1.1rem;
}
.compare-table td:nth-child(2) {
  text-align: center; color: var(--text-dim);
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare-table tr:hover td { background: var(--surface2); }

/* ---- Matches ---- */
.matches-list { display: flex; flex-direction: column; gap: 1px; }
.match-row {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 100px 1fr auto;
  align-items: center; gap: 1rem;
  transition: background 0.15s;
}
.match-row:hover { background: var(--surface2); }
.match-row--live { border-left: 2px solid #22c55e; }
.match-team { font-size: 0.95rem; font-weight: 500; }
.match-team--home { text-align: right; }
.match-score {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; color: var(--gold);
}
.match-score--upcoming {
  font-family: var(--font-body);
  font-size: 0.75rem; color: var(--text-dim);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.match-meta {
  font-size: 0.78rem; color: var(--text-dim);
  text-align: right;
}
.badge {
  display: inline-block;
  padding: 2px 8px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge--live { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge--upcoming { background: var(--surface3); color: var(--text-dim); }
.badge--finished { background: var(--surface3); color: var(--text-dim); }

/* ---- Articles grid ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
}
.article-card {
  background: var(--surface);
  padding: 1.75rem;
  transition: background 0.15s;
  display: flex; flex-direction: column;
}
.article-card:hover { background: var(--surface2); }
.article-card__cat {
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 0.75rem;
}
.cat--messi   { color: var(--argentina); }
.cat--ronaldo { color: var(--portugal); }
.cat--analysis,.cat--general,.cat--match { color: var(--gold); }
.article-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 0.75rem;
  color: var(--text);
}
.article-card__excerpt {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.6; flex: 1; margin-bottom: 1.25rem;
}
.article-card__footer {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---- Newsletter ---- */
.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem; text-align: center;
}
.newsletter h2 { margin-bottom: 0.5rem; }
.newsletter p { color: var(--text-muted); margin-bottom: 2rem; }
.newsletter__form {
  display: flex; gap: 0.75rem;
  max-width: 480px; margin: 0 auto;
}
.newsletter__form input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter__form input:focus { border-color: var(--gold); }
.newsletter__msg { margin-top: 1rem; font-size: 0.9rem; color: var(--gold); min-height: 1.4rem; }

/* ---- Footer ---- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 900;
  color: var(--gold); margin-bottom: 0.5rem;
}
.footer p { font-size: 0.8rem; color: var(--text-dim); }

/* ---- Ad slots ---- */
.ad-slot {
  width: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  border: 1px dashed var(--border-sub);
  border-radius: var(--radius);
  min-height: 90px;
  margin: 2rem 0;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle   { min-height: 250px; max-width: 300px; }

/* ---- Loading spinner ---- */
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border-sub);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 3rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .players-grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .match-row { grid-template-columns: 1fr 70px 1fr; }
  .match-meta { display: none; }
  .newsletter__form { flex-direction: column; }
  .articles-grid { grid-template-columns: 1fr; }
  .countdown { gap: 1rem; }
  .countdown__num { font-size: 2rem; }
}

/* ---- Tab filter ---- */
.tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border-sub);
  margin-bottom: 2rem;
}
.tab-btn {
  background: none; border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.2s;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-btn:hover  { color: var(--text-muted); }
