/*
 * Shared styling for seasonal-event landing pages on curveclash.com.
 *
 * Per-page HTML (tennis/index.html, racing/index.html, golf/index.html,
 * football/index.html) sets the accent colour palette via :root vars, then
 * pulls this stylesheet for layout. Keeps the visual identity consistent
 * across families while letting each page brand its own hue.
 *
 * Pattern follows web_root/easter/index.html — fixed-bg hero, sticky
 * header, embedded iframe game next to a leaderboard column.
 */

:root {
  --bg-dark: #000;
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-mid: rgba(255, 255, 255, 0.7);
  --border-soft: rgba(255, 255, 255, 0.08);
  /* Per-family override — set on <body> dataset or :root in the HTML. */
  --accent: #fb6aff;
  --accent-dim: rgba(251, 106, 255, 0.25);
  --accent-glow: rgba(251, 106, 255, 0.15);
  --accent-grad-1: #fb6aff;
  --accent-grad-2: #16c4fe;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: Montserrat, sans-serif; font-weight: 700; }
a { color: inherit; text-decoration: none; }

.page-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.55) 40%,
      rgba(0, 0, 0, 0.8) 70%,
      rgba(0, 0, 0, 0.95) 100%
    );
  z-index: -1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area img { height: 32px; }
.breadcrumb { font-size: 13px; color: var(--text-dim); }
.breadcrumb strong { color: var(--accent); font-weight: 600; }

/* Hero */
.hero {
  padding: 64px 24px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  background: linear-gradient(135deg, var(--accent-grad-1), var(--accent-grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.hero p { color: var(--text-mid); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* Countdown for inactive state */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
}
.countdown-cell {
  min-width: 64px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  text-align: center;
}
.countdown-cell .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--accent);
}
.countdown-cell .label {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Game + Leaderboard layout */
.game-section { padding: 40px 24px; max-width: 1100px; margin: 0 auto; }
.game-layout { display: flex; gap: 24px; }
.game-wrapper {
  flex: 1;
  height: 70vh;
  min-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--accent);
}
.game-iframe { width: 100%; height: 100%; border: none; }
.lb-column {
  flex: 1;
  height: 70vh;
  min-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) transparent;
}
@media (max-width: 768px) {
  .game-layout { flex-direction: column; }
  .game-wrapper, .lb-column { height: auto; min-height: 60vh; }
}

/* CTA */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--accent-grad-1), var(--accent-grad-2));
  color: #fff;
  font-weight: 600;
  font-size: 19px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Email opt-in form */
.optin {
  max-width: 480px;
  margin: 32px auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}
.optin h3 { font-size: 18px; margin-bottom: 8px; }
.optin p { color: var(--text-mid); font-size: 14px; margin-bottom: 16px; }
.optin input[type='email'] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}
.optin input[type='email']:focus {
  outline: none;
  border-color: var(--accent);
}
.optin button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  cursor: pointer;
}
.optin .optin-status { margin-top: 8px; font-size: 13px; color: var(--text-mid); }

/* Hall of fame leaderboard */
.lb-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 28px; color: var(--text-dim); font-size: 12px; }
.lb-flag { font-size: 16px; }
.lb-name { flex: 1; }
.lb-score { font-weight: 700; }

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--border-soft);
}
.site-footer a { color: var(--accent); }
