/* =========================
   THEME TOKENS
   ========================= */
:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --text: #eaf1ff;
  --muted: #b7c4ff;
  --mint: #3EB489;
  --mint-dark: #34a07b;
}

/* =========================
   RESET + BASE
   ========================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Raleway', sans-serif;
  background: linear-gradient(180deg, #0b1220 0%, #111a2e 100%);
  color: #f5f5f5;
  line-height: 1.6;
  /* Medium Lock (non-intrusive): */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--mint-dark); }

h1, h2, h3, h4, h5, h6, p, span, li, label, input, textarea { color: #f5f5f5; }

/* =========================
   HEADER / NAV
   ========================= */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(17,26,46,0.95), rgba(17,26,46,0.85));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 12px; }
.site-logo { height: 48px; width: auto; border-radius: 6px; filter: brightness(1.4); }
.nav a { margin-left: 18px; opacity: .9; color: var(--mint); }
.nav a.active { color: #fff; font-weight: 600; }
.nav a:hover { color: var(--mint-dark); opacity: 1; }

.nav .donate-link { 
  color: #fff; font-weight: 700; 
  background: var(--mint); padding: 8px 14px; 
  border-radius: 999px; 
}
.nav .donate-link:hover { background: var(--mint-dark); }

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  height: 70vh; min-height: 460px;
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-top: 90px; /* space for fixed header */
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.55), rgba(11,18,32,0.92));
  z-index: -1;
}
.hero-content { text-align: center; padding: 0 24px; animation: fadeInHero 1.2s ease both; }
.hero h2 {
  margin: 0 0 10px; font-weight: 700; letter-spacing: .4px; color: #fff;
  text-shadow: 0 3px 8px rgba(0,0,0,.6);
}
.hero p {
  margin: 0 0 24px;
  color: var(--mint);
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.6);
}

.cta, .btn {
  display: inline-block;
  background: var(--mint); color: #fff !important;
  padding: 14px 30px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 12px 28px rgba(62,180,137,.45);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: none; cursor: pointer;
}
.cta:hover, .btn:hover { background: var(--mint-dark); transform: translateY(-2px); box-shadow: 0 15px 30px rgba(62,180,137,.55); }
.btn-muted { background: #2b3657; }
.btn-muted:hover { background: #394776; }

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === HERO CLEAN (No Image) === */
.hero-clean {
  background: radial-gradient(circle at 50% 0%, rgba(62,180,137,0.18) 0%, rgba(11,18,32,0) 55%),
              linear-gradient(180deg, #0b1220 0%, #111a2e 100%);
  height: 62vh;
  min-height: 430px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 90px; /* header offset */
}

.hero-centered .hero-subtle {
  margin: 10px auto 26px;
  max-width: 650px;
}

.hero-cta-center {
  justify-content: center;
}

.hero-btn {
  box-shadow: 0 0 18px rgba(62,180,137,0.45);
  transition: box-shadow .25s ease, transform .25s ease;
}

.hero-btn:hover {
  box-shadow: 0 0 22px rgba(62,180,137,0.6);
  transform: translateY(-2px);
}


/* =========================
   LIBRARY ROWS + CARDS (Landscape)
   ========================= */
.library { padding: 28px 24px 60px; }
.row { margin-bottom: 30px; }

.row-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.row h3 { margin: 0; font-size: 20px; }

.row-track {
  display: flex; gap: 12px;
  overflow-x: auto; padding-bottom: 6px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.row-track::-webkit-scrollbar { height: 8px; }
.row-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; }

/* Landscape Cards */
.card {
  flex: 0 0 auto;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: #0e162b;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card img {
  width: 100%; 
  height: 170px; 
  object-fit: cover; 
  display: block; 
  filter: saturate(1.05);
}
.card-title {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(0,0,0,.45); padding: 6px 10px; border-radius: 8px;
  font-size: 12px; color: #e9edff;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0,0,0,.35); }

/* =========================
   MODAL (YouTube player)
   ========================= */
.modal {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  z-index: 9999;
}
.modal.open { display: flex; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1;
}
.modal-dialog {
  position: relative; z-index: 2;
  width: min(920px, 92vw); aspect-ratio: 16/9;
  background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.modal-close { display: none; }
.player-wrap { width: 100%; height: 100%; }

/* =========================
   COOKIE BANNER (Small, Bottom, Dark Transparent)
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  padding: 12px 18px;
  border-radius: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  z-index: 99999;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
}
.cookie-banner.hidden { display: none; }

.cookie-actions { display: flex; gap: 10px; }

.cb-btn {
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  color: #fff;
  background: rgba(255,255,255,0.18);
  transition: 0.2s;
}
.cb-btn:hover { background: rgba(255,255,255,0.3); }
.cb-muted { background: rgba(255,255,255,0.07); }
.cb-muted:hover { background: rgba(255,255,255,0.2); }

/* =========================
   PAST EVENT BADGE
   ========================= */
.card.past-event img { filter: brightness(50%); transition: filter .25s ease; }
.card.past-event:hover img { filter: brightness(65%); }
.card.past-event .overlay{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.6); color:#fff; font-weight:600;
  padding: 6px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: 1px;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  background: var(--bg); color: var(--text);
  padding: 24px; border-top: 1px solid rgba(255,255,255,.08); text-align: center;
}
.site-footer a { color: var(--mint); }

.social-links {
  display: flex; justify-content: center; gap: 20px; padding-bottom: 30px;
}
.social-links img {
  width: 32px; height: 32px; filter: brightness(0) invert(1); opacity: .8;
  transition: all .25s ease;
}
.social-links img:hover {
  opacity: 1;
  filter: brightness(0) invert(.8) sepia(1) hue-rotate(120deg) saturate(2);
  transform: translateY(-3px);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .site-header { flex-direction: column; align-items: center; text-align: center; padding: 18px 12px; }
  .brand { flex-direction: column; gap: 6px; }
  .site-logo { height: 42px; }
  .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
  .nav a { font-size: 14px; padding: 6px 10px; }

  .hero { margin-top: 65px; height: auto; padding: 70px 20px 80px; }
  .hero h2 { font-size: 1.6rem; line-height: 1.3; }
  .hero p { font-size: .95rem; }

  .library { padding: 20px 14px 50px; }
  .row h3 { font-size: 1.1rem; }

  .card { width: 85%; flex: 0 0 85%; }
  .card img { height: auto; }
  .card-title { font-size: 11px; }

  .site-footer { padding: 24px 12px 40px; }
  .site-footer p { font-size: .9rem; }
  .social-links { flex-wrap: wrap; gap: 12px; }
  .social-links img { width: 26px; height: 26px; }

  .cookie-banner {
    width: 90%;
    bottom: 12px;
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions { justify-content: center; width: 100%; }
}

.success-card {
  text-align: center;
  padding: 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  animation: fadeIn 0.4s ease forwards;
}
.success-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.success-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@keyframes fadeIn { from {opacity:0; transform: translateY(6px);} to {opacity:1; transform:none;} }


/* =========================================================
   === MOBILE VIEW ENHANCEMENTS (DO NOT TOUCH DESKTOP) ===
   ========================================================= */
@media (max-width: 900px) {

  /* --- Burger Button --- */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.9rem;
    cursor: pointer;
    z-index: 1101;
  }

  /* --- Hide nav by default --- */
  .nav {
    position: fixed;
    top: 10%;
    right: -260px;
    width: 220px;
    height: 80%;
    background: linear-gradient(180deg, rgba(17,26,46,0.95), rgba(11,18,32,0.92));
    border-left: 1px solid rgba(255,255,255,0.08);
    box-shadow: -2px 0 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.3s ease;
    z-index: 1100;
  }

  .nav.open {
    right: 0;
  }

  /* --- Overlay behind menu --- */
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }
  .menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* --- Adjust nav links --- */
  .nav a {
    font-size: 1.05rem;
    color: var(--mint);
  }

  /* --- Prevent body scroll when open --- */
  body.menu-open {
    overflow: hidden;
  }
}


