/* =========================================
   NorthernPlayLounge — Core Styles
   ========================================= */

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

/* --- CSS Variables --- */
:root {
  --primary: #1a6b8a;
  --primary-light: #2a8fb5;
  --primary-dark: #0f4a63;
  --secondary: #c8913a;
  --secondary-light: #e0aa55;
  --secondary-dark: #9f6f28;
  --accent: #3dbfa0;
  --accent-light: #5dd6b8;
  --accent-dark: #2a9a81;

  --success: #2ecc71;
  --success-light: #58d68d;
  --success-dark: #1a9e52;
  --warning: #f39c12;
  --warning-light: #f7b731;
  --warning-dark: #c07a0a;
  --error: #e74c3c;
  --error-light: #ec7063;
  --error-dark: #b93d30;

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

  --bg-dark: #070d1b;
  --bg-card: #0d1a2e;
  --bg-card-hover: #122033;
  --bg-overlay: rgba(7, 13, 27, 0.95);

  --text-primary: #e8f0fe;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(42, 143, 181, 0.2);
  --border-glow: rgba(42, 143, 181, 0.5);

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

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(42, 143, 181, 0.25);
  --shadow-gold: 0 0 20px rgba(200, 145, 58, 0.3);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  --spacing: 8px;
}

/* --- Reset & Base --- */
*, *::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(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Stars background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 65%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 45%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 85%, rgba(200,145,58,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 10%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 50%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 75% 35%, rgba(61,191,160,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, select, textarea { font-family: var(--font-body); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

.text-gradient {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  background: linear-gradient(135deg, #7dd3f0, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(200,145,58,0.1);
  border: 1px solid rgba(200,145,58,0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { max-width: 600px; margin: 16px auto 0; font-size: 1.1rem; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 13, 27, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.nav-logo-text span { color: var(--secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(26, 107, 138, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 107, 138, 0.6);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-gold {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(200, 145, 58, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 145, 58, 0.6);
  color: #fff;
}

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.82rem; }

.btn:active { transform: translateY(0) scale(0.98); }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* --- Aurora decorations --- */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
  animation: auroraFloat 8s ease-in-out infinite;
}

.aurora-1 {
  width: 600px; height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  top: -100px; left: -150px;
}

.aurora-2 {
  width: 400px; height: 400px;
  background: linear-gradient(135deg, var(--accent), var(--primary-dark));
  top: 100px; right: -100px;
  animation-delay: -3s;
}

.aurora-3 {
  width: 500px; height: 250px;
  background: linear-gradient(135deg, var(--secondary-dark), var(--primary));
  bottom: -50px; left: 30%;
  animation-delay: -5s;
}

@keyframes auroraFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary-light));
  border-radius: var(--radius-full);
  margin: 16px auto;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: rgba(200,145,58,0.15);
  color: var(--secondary-light);
  border: 1px solid rgba(200,145,58,0.3);
}

.badge-blue {
  background: rgba(42,143,181,0.15);
  color: var(--primary-light);
  border: 1px solid rgba(42,143,181,0.3);
}

.badge-green {
  background: rgba(61,191,160,0.15);
  color: var(--accent-light);
  border: 1px solid rgba(61,191,160,0.3);
}

/* --- Footer --- */
footer {
  background: var(--neutral-950);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-brand .badges { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.footer-contact a, .footer-contact span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.footer-contact a:hover { color: var(--primary-light); }
.footer-contact .contact-icon { flex-shrink: 0; font-size: 0.95rem; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--primary-light); }

.footer-disclaimer {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.footer-disclaimer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-disclaimer p:last-child { margin-bottom: 0; }

.footer-help-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer-help-links a {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  transition: color var(--transition);
}

.footer-help-links a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: #e74c3c;
}

/* --- Age Modal --- */
.age-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 27, 0.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.age-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.age-modal::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(42,143,181,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.age-modal-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.age-modal h2 { margin-bottom: 8px; }
.age-modal p { margin-bottom: 24px; font-size: 0.95rem; }

.age-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
  cursor: pointer;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  user-select: none;
}

.age-checkbox-label:hover { border-color: var(--primary-light); }

.age-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.age-checkbox-label span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

#age-confirm-btn {
  width: 100%;
  opacity: 0.4;
  pointer-events: none;
  transition: all var(--transition);
}

#age-confirm-btn.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.88rem;
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Inner page content --- */
.page-content {
  padding: 64px 0 96px;
  position: relative;
  z-index: 1;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-bottom: 32px;
}

.content-card h2 { font-size: 1.5rem; margin-bottom: 16px; color: var(--secondary-light); }
.content-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-primary); }
.content-card p { margin-bottom: 16px; }
.content-card ul { list-style: none; padding: 0; margin-bottom: 16px; }
.content-card ul li {
  padding: 8px 0 8px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.content-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* --- Notification Toast --- */
.toast {
  position: fixed;
  top: 90px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  z-index: 5000;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition);
  max-width: 320px;
}

.toast.show { transform: translateX(0); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--error); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .age-modal { padding: 32px 24px; }

  .content-card { padding: 28px 24px; }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Utility classes --- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
