/* ============================================
   AuroraMapleHub – Main Stylesheet
   Theme: Northern lights meets Canadian maple
   Palette: Aurora greens, maple amber, deep navy
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --primary-900: #0b1f2e;
  --primary-800: #112940;
  --primary-700: #163552;
  --primary-600: #1b4068;
  --primary-500: #1e5080;

  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;

  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;

  --aurora-green: #10b981;
  --aurora-cyan:  #06b6d4;

  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-400: #94a3b8;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50:  #f8fafc;

  --success: #22c55e;
  --warning: #f59e0b;
  --error:   #ef4444;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.15);
  --shadow-glow-teal: 0 0 24px rgba(20,184,166,.35);
  --shadow-glow-amber: 0 0 24px rgba(251,191,36,.35);

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--primary-900);
  color: var(--neutral-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--neutral-300); }

/* ── Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.text-center { text-align: center; }
.text-amber  { color: var(--amber-400); }
.text-teal   { color: var(--teal-400); }
.text-muted  { color: var(--neutral-500); font-size: .9rem; }

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge--teal   { background: rgba(20,184,166,.15); color: var(--teal-400); border: 1px solid rgba(20,184,166,.3); }
.badge--amber  { background: rgba(251,191,36,.15);  color: var(--amber-400); border: 1px solid rgba(251,191,36,.3); }

.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--amber-400));
  border-radius: 2px;
  margin: 16px auto 0;
}
.divider--left { margin-left: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md);
  font-weight: 600; font-size: .95rem;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0; transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn--primary {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff;
  box-shadow: var(--shadow-glow-teal);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(20,184,166,.5); }
.btn--amber {
  background: linear-gradient(135deg, var(--amber-600), var(--amber-400));
  color: var(--neutral-900);
  box-shadow: var(--shadow-glow-amber);
}
.btn--amber:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(251,191,36,.5); }
.btn--ghost {
  background: rgba(255,255,255,.07);
  color: var(--neutral-200);
  border: 1px solid rgba(255,255,255,.12);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Cards ── */
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(20,184,166,.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px;
  transition: all var(--transition);
}
.nav--scrolled {
  background: rgba(11,31,46,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: var(--shadow-md);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: #fff;
}
.nav__logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--teal-500), var(--amber-400));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--neutral-300);
  transition: all var(--transition);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__link--active { color: var(--teal-400); }
.nav__cta { margin-left: 8px; }

/* Mobile menu */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px;
}
.nav__burger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--neutral-300);
  transition: all var(--transition);
}
.nav__mobile-menu {
  display: none;
  position: fixed; inset: 0; top: 72px; z-index: 99;
  background: rgba(11,31,46,.97);
  backdrop-filter: blur(16px);
  padding: 32px 24px;
  flex-direction: column; gap: 8px;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-link {
  padding: 14px 20px; border-radius: var(--radius-md);
  font-size: 1.05rem; font-weight: 500; color: var(--neutral-300);
  transition: all var(--transition); border: 1px solid transparent;
}
.nav__mobile-link:hover { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }

/* ── Footer ── */
.footer {
  background: var(--neutral-900);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand p { color: var(--neutral-500); font-size: .9rem; line-height: 1.7; margin-top: 12px; }
.footer__col-title {
  font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--neutral-400); margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  font-size: .9rem; color: var(--neutral-500);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--teal-400); }

.footer__disclaimer {
  margin: 0 0 0;
  padding: 24px 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  font-size: .82rem; color: var(--neutral-600);
  line-height: 1.65;
}
.footer__disclaimer strong { color: var(--neutral-500); }
.footer__disclaimer a { color: var(--teal-500); text-decoration: underline; transition: color var(--transition); }
.footer__disclaimer a:hover { color: var(--teal-400); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: .85rem; color: var(--neutral-600); }
.footer__age-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  color: #ef4444; font-size: .8rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}

/* ── Age Verification Modal ── */
.age-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.age-modal__box {
  background: var(--primary-800);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 480px; width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: modalPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes modalPop {
  from { opacity:0; transform: scale(.85); }
  to   { opacity:1; transform: scale(1); }
}
.age-modal__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--amber-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 24px;
}
.age-modal h2 { font-size: 1.7rem; margin-bottom: 10px; }
.age-modal p  { font-size: .95rem; color: var(--neutral-400); margin-bottom: 24px; }
.age-modal__check {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md); padding: 16px 18px;
  text-align: left; margin-bottom: 24px; cursor: pointer;
  transition: border-color var(--transition);
}
.age-modal__check:hover { border-color: rgba(20,184,166,.4); }
.age-modal__check input[type="checkbox"] {
  width: 20px; height: 20px; min-width: 20px;
  accent-color: var(--teal-500); cursor: pointer; margin-top: 2px;
}
.age-modal__check-label { font-size: .9rem; color: var(--neutral-300); line-height: 1.5; }
.age-modal__btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff; border-radius: var(--radius-md);
  font-size: 1rem; font-weight: 600;
  transition: all var(--transition);
  opacity: .45; pointer-events: none;
}
.age-modal__btn.enabled { opacity: 1; pointer-events: auto; }
.age-modal__btn.enabled:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-teal); }
.age-modal__decline { margin-top: 12px; font-size: .85rem; color: var(--neutral-600); }
.age-modal__decline a { color: var(--neutral-500); text-decoration: underline; cursor: pointer; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9000; max-width: 680px; width: calc(100% - 48px);
  background: var(--primary-800);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  animation: slideUp .4s cubic-bezier(.4,0,.2,1) both;
}
@keyframes slideUp {
  from { opacity:0; transform: translateX(-50%) translateY(24px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner p { font-size: .88rem; color: var(--neutral-400); flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-banner p a { color: var(--teal-400); text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  transition: all var(--transition);
}
.cookie-btn--accept {
  background: var(--teal-600); color: #fff;
}
.cookie-btn--accept:hover { background: var(--teal-500); }
.cookie-btn--decline {
  background: rgba(255,255,255,.07); color: var(--neutral-300);
  border: 1px solid rgba(255,255,255,.1);
}
.cookie-btn--decline:hover { background: rgba(255,255,255,.12); }

/* ── Hero (shared) ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 72px;
}
.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13,148,136,.18) 0%, transparent 65%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245,158,11,.1) 0%, transparent 55%),
              linear-gradient(180deg, var(--primary-900) 0%, var(--neutral-900) 100%);
}
.hero__aurora {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 0%, transparent 30%,
    rgba(16,185,129,.06) 35%, rgba(6,182,212,.08) 45%, rgba(245,158,11,.05) 52%,
    transparent 58%);
  animation: auroraShift 12s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { opacity: .6; transform: skewY(-2deg) scaleX(1); }
  100% { opacity: 1;  transform: skewY(2deg)  scaleX(1.04); }
}

/* ── Particles / Stars ── */
.stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 22%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 8%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 68% 35%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 15%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 65%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 70%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 55% 90%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,.35) 0%, transparent 100%);
}

/* ── Section Headings ── */
.section-heading { margin-bottom: 56px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .btn--lg { padding: 14px 28px; font-size: 1rem; }
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 140px 0 72px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(13,148,136,.15) 0%, transparent 60%),
              linear-gradient(180deg, var(--primary-900) 0%, var(--neutral-900) 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero .stars { opacity: .5; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p  { max-width: 600px; margin: 0 auto; font-size: 1.05rem; color: var(--neutral-400); }

/* ── Prose content (legal pages) ── */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 14px; color: #fff; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--neutral-200); }
.prose p  { margin-bottom: 16px; }
.prose ul { margin: 12px 0 16px 20px; list-style: disc; }
.prose ul li { margin-bottom: 6px; color: var(--neutral-300); }
.prose a  { color: var(--teal-400); text-decoration: underline; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Game iframe wrapper ── */
.game-frame {
  background: var(--neutral-900);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
