/* ==========================================================================
   Football Jersey Sponsorship — Precision Blueprint Design
   Matching Reference Blueprint (media_1789841652043.jpg)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --red:          #ff1a1a;
  --red-border:   #ff2222;
  --red-fill:     rgba(220, 20, 20, 0.22);
  --red-glow:     rgba(255, 26, 26, 0.65);
  --gold:         #f59e0b;
  --gold-glow:    rgba(245, 158, 11, 0.55);
  --glass-bg:     rgba(8, 12, 26, 0.94);
  --glass-border: rgba(255, 255, 255, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #050914;
  color: #f1f5f9;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.heading-font {
  font-family: 'Space Grotesk', sans-serif;
}

/* ── Glassmorphism ─────────────────────────────────────────────────────────── */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
}

/* ── STAGE WRAPPER ─────────────────────────────────────────────────────────── */
#jersey-stage-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  max-height: calc(100vh - 120px);
  max-width: 98vw;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 50px rgba(0, 0, 0, 0.85);
}

#hero-player-img {
  display: block;
  max-height: calc(100vh - 120px);
  max-width: 98vw;
  width: auto;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ── Vignette ─────────────────────────────────────────────────────────────── */
.bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 72%, rgba(5, 9, 20, 0.35) 94%, rgba(5, 9, 20, 0.70) 100%),
    linear-gradient(to bottom, rgba(5, 9, 20, 0.25) 0%, transparent 12%, transparent 88%, rgba(5, 9, 20, 0.45) 100%);
}

#hotspots-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: auto;
}

#logos-overlay-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}

/* ==========================================================================
   RED SPONSORSHIP BOXES (EXACT 1:1 WITH REFERENCE BLUEPRINT media_1789844853091.jpg)
   ========================================================================== */

.sponsorship-box {
  position: absolute;
  /* x_coord & y_coord represent CENTER of the box */
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ff1a1a;
  background: rgba(220, 20, 20, 0.16);
  border-radius: 0px;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 34px;
  min-height: 22px;
  padding: 0 1px;
  margin: 0;
  z-index: 30;
  /* Strong glow so the buttons stand out on ANY photo background */
  box-shadow:
    0 0 0 1px rgba(255, 26, 26, 0.30),
    0 0 14px rgba(255, 26, 26, 0.35),
    inset 0 0 10px rgba(255, 26, 26, 0.18);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.sponsorship-box:hover,
.sponsorship-box:focus-within {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: #ffffff;
  background: rgba(255, 0, 0, 0.18);
  z-index: 35;
}

/* White price text inside each box: ONLY the dollar amount (e.g. 100 $, 50 $, 40 $, 60 $, 30 $) */
.sponsorship-box-price {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: clamp(9px, 0.9vw, 13px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* ── Sold State ───────────────────────────────────────────────────────────── */
.sponsorship-box.sold {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  cursor: default;
}
.sponsorship-box.sold:hover {
  transform: translate(-50%, -50%) scale(1.02);
  border-color: #fde68a;
}
.sponsorship-box.sold .sponsorship-box-price {
  color: #fef3c7;
}

/* ── Closed State (still visible, just not clickable) ─────────────────────── */
.sponsorship-box.closed {
  border-color: #64748b;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Brand Logo Inside Sold Box ───────────────────────────────────────────── */
.jersey-logo-overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
  padding: 1px;
}

.jersey-logo-overlay img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}

/* ── Header Pill ───────────────────────────────────────────────────────────── */
.countdown-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 12, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Footer & CTA ─────────────────────────────────────────────────────────── */
footer.main-footer {
  background: rgba(5, 9, 20, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cta-btn {
  background: linear-gradient(135deg, #ef4444 0%, #e11d48 60%, #f97316 100%);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 20px;
  border: none;
  cursor: pointer;
  transition: opacity 0.16s, transform 0.14s;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-btn:hover  { opacity: 0.92; transform: scale(1.04); }
.cta-btn:active { transform: scale(0.97); }

/* ── Modals ────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-backdrop.flex {
  display: flex !important;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(9, 13, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  padding: 24px;
  max-height: 92vh;
  overflow-y: auto;
}

/* ── Custom Scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 999px; }

/* ==========================================================================
   FEATURE ADD-ONS — Mobile Countdown Strip, Sponsors Ticker & Grid,
   Fundraising Progress Bar, Live Auction Pulse & Price Flash
   ========================================================================== */

/* ── Compact Mobile Countdown Strip ───────────────────────────────────────── */
#mobile-countdown-strip {
  min-height: 22px;
}
#cd-mobile-time {
  letter-spacing: 0.04em;
}

/* ── Live Sponsors Ticker (seamless marquee, pauses on hover) ─────────────── */
#sponsors-ticker {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
#ticker-track {
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}
#sponsors-ticker:hover #ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Fundraising Progress Bar glow ────────────────────────────────────────── */
#progress-bar-fill,
#spots-progress-fill {
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}
.progress-goal-reached {
  background: linear-gradient(90deg, #10b981, #34d399, #2dd4bf) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.55) !important;
}

/* ── Live Auction: pulsing available spots + blinking LIVE pill ───────────── */
body.auction-live .sponsorship-box.available {
  animation: auction-pulse 1.6s ease-in-out infinite;
}
@keyframes auction-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(255, 26, 26, 0.35); }
  50%      { box-shadow: 0 0 16px rgba(255, 26, 26, 0.85); }
}
#auction-live-pill {
  animation: auction-pill-blink 1.2s ease-in-out infinite;
}
@keyframes auction-pill-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* ── Live price-change flash (admin drops/raises a price) ─────────────────── */
.sponsorship-box.price-flash-down {
  animation: price-flash-down 1.6s ease-out;
}
.sponsorship-box.price-flash-up {
  animation: price-flash-up 1.6s ease-out;
}
@keyframes price-flash-down {
  0%   { background: rgba(34, 197, 94, 0.60); border-color: #22c55e; box-shadow: 0 0 20px rgba(34, 197, 94, 0.85); }
  100% { background: rgba(220, 20, 20, 0.16); border-color: #ff1a1a; box-shadow: none; }
}
@keyframes price-flash-up {
  0%   { background: rgba(245, 158, 11, 0.60); border-color: #f59e0b; box-shadow: 0 0 20px rgba(245, 158, 11, 0.85); }
  100% { background: rgba(220, 20, 20, 0.16); border-color: #ff1a1a; box-shadow: none; }
}

/* ── Sold boxes with a website link act as business cards ─────────────────── */
.sponsorship-box.sold.has-link {
  cursor: pointer;
}

/* ── Confetti canvas (above the backdrop, below the success card) ─────────── */
#confetti-canvas {
  z-index: 1;
}
