/* ============================================================
   SHARED SITE CHROME — Nav, Event Banner, Signup Popup, Footer
   Used on every page. Edit here once, it applies everywhere.
   Relies on the --gold/--red/--ink-dim/--line/--font-display/
   --font-accent/--snow/--magenta tokens defined in each page's
   own :root block.
   ============================================================ */

/* NAVIGATION */
.nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__brand {
  font-family: var(--font-accent);
  font-size: 18px;
  letter-spacing: 0.10em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__brand span { color: var(--gold); }
.nav__links { display: flex; gap: 22px; list-style: none; align-items: center; }
.nav__links a {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 0.10em;
  transition: color 0.2s ease;
}
.nav__links a:hover,
.nav__links a.active { color: var(--gold); }
@media (max-width: 768px) { .nav__links { display: none; } }

.nav__logo-img {
  height: 200px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  margin: -46px 0 -86px 0;
  vertical-align: middle;
}

.nav__signup {
  background: #d82648; /* darkened brand red — passes 4.5:1 contrast with white text at this small size */
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
}
.nav__signup:hover { opacity: 0.85; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
}

/* Mobile nav drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.97);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 24px;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a,
.mobile-nav-overlay button {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.mobile-nav-overlay .mobile-signup {
  margin-top: 12px;
  padding: 14px 36px;
  background: #d82648; /* darkened brand red — passes 4.5:1 contrast with white text at this size */
  border-radius: 50px;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* ── EVENT COUNTDOWN BANNER ── */
.event-banner {
  position: relative;
  width: 100%;
  background: #0e0e0e;
  border-bottom: 2px solid #C8102E;
  overflow: hidden;
  z-index: 200;
}
.event-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.event-banner__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.event-banner__mascot {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.event-banner__name {
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
}
.event-banner__name span { color: #C8102E; }
.event-banner__tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  color: rgba(255,255,255,0.70);
  margin-top: 4px;
}
.event-banner__countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.event-banner__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}
.event-banner__unit span {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}
.event-banner__unit label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.event-banner__sep {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: rgba(255,255,255,0.18);
  margin-bottom: 10px;
}
.event-banner__cta {
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  background: #C8102E;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.event-banner__cta:hover { background: #a50d26; }
.event-banner__close { display: none; }
@media (max-width: 768px) {
  .event-banner__inner { flex-direction: column; height: auto; padding: 12px 16px; gap: 10px; }
  .event-banner__unit span { font-size: 22px; }
  .event-banner__cta { width: 100%; text-align: center; }
}

/* ── SIGNUP POPUP ── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-overlay.active { display: flex; }
.popup {
  background: #111;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 36px 32px 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}
.popup__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.popup__close:hover { color: #fff; }
.popup__logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}
.popup__title {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--snow);
  margin-bottom: 8px;
  line-height: 1.1;
}
.popup__subtitle {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}
.popup__field {
  margin-bottom: 14px;
  text-align: left;
}
.popup__field input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--snow);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.popup__field input:focus { border-color: var(--red); }
.popup__field input::placeholder { color: rgba(255,255,255,0.3); }
.popup__submit {
  width: 100%;
  background: #d82648; /* darkened brand red — passes 4.5:1 contrast with white text */
  color: #fff;
  border: 3px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(200,16,46,0.5);
}
.popup__submit:hover { opacity: 0.9; transform: translateY(-1px); }
.popup__submit:active { transform: translateY(0); }
.popup__disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
}
.popup__success {
  display: none;
  padding: 20px 0;
}
.popup__success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.popup__success-title {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.popup__success-msg {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.6;
}
@media (max-width: 480px) {
  .popup { padding: 28px 20px 24px; border-radius: 12px; }
  .popup__title { font-size: 22px; }
}

.popup__lang-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  width: 140px;
  margin-left: auto;
  margin-right: auto;
}
.lang-tab {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background .2s, color .2s;
  user-select: none;
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.lang-tab.active { background: var(--red); color: #fff; }
.lang-tab:hover { color: #fff; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 36px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
}
.footer__brand span { color: var(--gold); }
.footer__meta {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__meta a { transition: color 0.2s; }
.footer__meta a:hover { color: var(--gold); }
.footer__meta-sep { color: var(--line); }
.footer__socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  transition: color 0.2s;
  text-decoration: none;
}
.footer__social:hover { color: var(--gold); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
@media (max-width: 640px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
