/* ===== Base / Reset ===== */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --brand-green: #28a745;
  --brand-green-dark: #218838;
  --ink: #111;
  --paper: #fff;
}

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

body {
  font-family: Arial, sans-serif;
  color: #fff;
  background: url('basketb.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* ===== Top Nav ===== */
.nav-buttons {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex; gap: .5rem; justify-content: center; align-items: center;
  background-color: #111;
  padding: 12px 20px;
  z-index: 9999;                 /* above page content */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-buttons button {
  background-color: var(--brand-green);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: background-color .2s ease, transform .15s ease;
}
.nav-buttons button:hover { background-color: var(--brand-green-dark); transform: translateY(-2px); }
.nav-buttons button:focus { outline: 2px solid #66d19e; outline-offset: 2px; }

/* Space for fixed nav when scrolling to anchors */
.overlay,
#season-countdown,
.champ-card,
.youtube-section,
.social-links,
#donate { scroll-margin-top: 80px; margin-top: 72px; }

/* ===== Hero / Overlay ===== */
.overlay {
  position: relative;
  z-index: 1;                        /* stays under nav */
  background: rgba(0,0,0,0.7);
  padding: 60px 20px;
  text-align: center;
}

.hero-content { max-width: 700px; margin: 0 auto; }
.logo { width: 120px; height: auto; margin-bottom: 16px; display: inline-block; }

h1 { font-size: 36px; font-weight: 800; margin: 12px 0; }
p  { font-size: 18px; margin: 0 0 30px; }

.download-buttons {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.download-buttons button {
  background-color: #444; color: #fff; border: none;
  padding: 12px 20px; border-radius: 10px; font-size: 16px;
  cursor: not-allowed; display: flex; align-items: center; gap: 10px; opacity: .9;
}
.download-buttons button img { width: 24px; height: 24px; }

/* ===== Countdown ===== */
.countdown-card {
  max-width: 900px; margin: 32px auto; padding: 24px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7f0 0%, #ffe6d6 100%);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  text-align: center;
  color: #111;
}
.countdown-title { margin: 0 0 4px; font-size: 28px; font-weight: 800; color: #d35400; }
.countdown-subtitle { margin: 0 0 16px; color: #5d4037; }

.countdown-grid {
  display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 12px; align-items: center; justify-items: center;
}
.cd-cell {
  background: #fff; border-radius: 16px; padding: 14px 10px; min-width: 90px;
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.cd-num {
  display: block; font-size: 32px; font-weight: 900; color: #0f5132; line-height: 1;
}
.cd-cell small {
  display: block; margin-top: 6px; letter-spacing: .5px; color: #6b7280;
  text-transform: uppercase; font-weight: 700; font-size: 11px;
}
@media (max-width: 520px) {
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .countdown-title { font-size: 24px; }
}

/* ===== Champs Card (Slideshow) ===== */
.champ-card {
  background: #fff;
  color: #111;
  max-width: 600px;
  margin: 40px auto;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.champ-card h2 {
  font-size: 24px;
  margin: 0 0 8px;
  color: #2c3e50;
}

.champ-card p {
  margin: 0 0 12px;
  color: #444;
}

/* ===== Champs Slideshow ===== */

.champ-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
  background: #000; /* optional, looks nice while loading */
}

/* Base image behavior (NO fixed height here) */
.champ-stage img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: height 220ms ease, opacity 180ms ease;
}

.champ-stage img.fade {
  opacity: 0.2;
}

/* --- Per-slide sizing --- */
.champ-stage img.img-large {
  height: 460px;
  object-position: center top;
}
.champ-stage img.img-medium     { height: 280px; } /* MVP */
.champ-stage img.img-small      { height: 200px; }
.champ-stage img.img-very-small { height: 140px; } /* Playoffs */

/* Prev/Next buttons */
.champ-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.85);
  color: #111;
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}

.champ-nav.prev { left: 10px; }
.champ-nav.next { right: 10px; }

.champ-nav:hover {
  background: rgba(255,255,255,1);
}

/* Dots */
.champ-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.champ-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: none;
  cursor: pointer;
}

.champ-dot.active {
  background: rgba(0,0,0,.85);
}

/* ===== Gallery (YouTube) ===== */
.youtube-section {
  max-width: 1180px; margin: 24px auto; text-align: center; padding: 0 16px;
}
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden;
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
@supports not (aspect-ratio: 1/1) {
  .video-embed { padding-top: 56.25%; }
  .video-embed iframe { position: absolute; top: 0; left: 0; }
}
#gallery { scroll-margin-top: 88px; } /* anchor offset for sticky header */

/* ===== Social Links ===== */
.social-links { margin: 40px 0; text-align: center; }
.social-links a {
  display: inline-block; background-color: #1e1e1e; color: #fff;
  padding: 10px 20px; margin: 6px; border-radius: 8px; text-decoration: none; font-weight: bold;
  transition: background .2s ease;
}
.social-links a:hover { background-color: #444; }

/* ===== Donate CTA ===== */
#donate { text-align: center; padding: 40px 16px; }
.donate-button {
  background-color: var(--brand-green); color: #fff; font-weight: 700;
  padding: 12px 24px; font-size: 1rem; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: background-color .2s ease, transform .15s ease;
}
.donate-button:hover { background-color: var(--brand-green-dark); transform: translateY(-1px); }

/* ===== Modal (shared for Sponsorship + Donation) ===== */
.modal {
  display: none;
  position: fixed; inset: 0;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  z-index: 11000;            /* above nav */
}
.modal.active { display: flex; }

.modal .modal-content {
  position: relative;
  background: var(--paper); color: var(--ink);
  width: min(92vw, 960px); max-height: 85vh; overflow: auto;
  border-radius: 12px; padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  display: flex; flex-direction: column;
}

/* Close button (shared) */
.close-button {
  position: absolute; top: 10px; right: 12px;
  border: none; background: transparent; font-size: 20px; cursor: pointer; color: #666;
}
.close-button:hover { color: #333; }

/* Modal Footer */
.modal-footer {
  position: sticky; bottom: 0;
  background: rgba(255,255,255,.96);
  border-top: 1px solid #eee;
  padding: 12px 16px;
  display: flex; justify-content: center;
  backdrop-filter: blur(2px);
}

/* Sponsorship styles */
.sponsorship-content { max-height: 90vh; overflow-y: auto; padding: 40px; background: #fff; font-size: 15px; }
.donor-section { max-width: 900px; margin: 0 auto; padding: 2rem; color: #222; background: #fff; line-height: 1.7; }
.donor-title { text-align: center; color: #003366; font-size: 2rem; margin-bottom: .5rem; }
.donor-subtitle { text-align: center; color: #555; font-weight: normal; font-size: 1.2rem; }
.section-heading { margin-top: 2rem; color: #003366; font-size: 1.5rem; border-bottom: 2px solid #ccc; padding-bottom: .25rem; }
.donor-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
.donor-table th, .donor-table td { border: 1px solid #ccc; padding: 10px; vertical-align: top; text-align: left; }
.donor-table thead { background: #003366; color: #fff; }
.donor-contact a { color: #003366; font-weight: bold; text-decoration: none; }
.donor-thankyou { margin-top: 2rem; text-align: center; font-size: 1.2rem; color: #003366; }
.donor-tiered-list { max-width: 800px; margin: 40px auto; padding: 0 20px; color: #222; }
.donor-tier { margin-top: 32px; }
.donor-tier h3 { font-size: 1.5rem; margin-bottom: 12px; }
.donor-tier ul { list-style: none; padding-left: 0; }
.donor-tier li { background: #f0f0f0; margin-bottom: 10px; padding: 12px 16px; border-radius: 8px; font-weight: bold; }
.donor-tier.platinum h3 { color: #b9f2ff; }
.donor-tier.gold h3     { color: #ffd700; }
.donor-tier.silver h3   { color: #c0c0c0; }
.donor-tier.bronze h3   { color: #cd7f32; }

/* Buttons inside modal */
.btn-home {
  appearance: none; border: none; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; cursor: pointer;
  background: #0f766e; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.btn-home:hover { filter: brightness(1.05); }
.btn-home:focus { outline: 2px solid #0ea5a5; outline-offset: 2px; }

/* Responsive tweaks for modal */
@media (max-width: 600px) {
  .modal .modal-content { padding: 20px 16px; }
  .donor-section { padding: 1rem; }
  .donor-title { font-size: 1.6rem; }
  .donor-table { font-size: 0.85rem; }
}
