/* ═══════════════════════════════════════
   SHARED STYLES — rarityquiz.com
   All pages import this file
════════════════════════════════════════ */

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

:root {
  --bg:       #0a0a12;
  --surface:  #12121e;
  --card:     #1a1a2e;
  --border:   rgba(255,255,255,0.08);
  --gold:     #f5c842;
  --gold2:    #e0a820;
  --teal:     #00e5cc;
  --purple:   #9b5de5;
  --pink:     #ff6b9d;
  --text:     #f0eee8;
  --muted:    #b0aec8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── AMBIENT ORBS ─── */
.glow-orb { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; opacity: 0.18; }
.glow-orb-1 { width: 600px; height: 600px; background: var(--purple); top: -200px; left: -200px; }
.glow-orb-2 { width: 500px; height: 500px; background: var(--teal);   bottom: -150px; right: -150px; }

/* ─── SITE HEADER / NAV ─── */
.site-nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,18,0.8);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

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

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  border-radius: 8px;
  color: #fff !important;
  padding: 8px 18px;
  font-weight: 500;
  font-size: 0.85rem !important;
}

/* ─── PAGE WRAPPER ─── */
.page-wrap {
  position: relative; z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* ─── PROSE ─── */
.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 16px;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 10px;
}

.prose p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.prose p strong { color: var(--text); }

.prose ul, .prose ol {
  color: var(--muted);
  padding-left: 24px;
  margin-bottom: 18px;
  line-height: 1.8;
}

.prose li { margin-bottom: 6px; }

.prose a { color: var(--teal); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose .lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.7;
  opacity: 0.9;
}

/* ─── PAGE HERO ─── */
.page-hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ─── CARDS ─── */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--teal));
}

/* ─── SITE FOOTER ─── */
.site-footer-bar {
  position: relative; z-index: 1;
  text-align: center;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer-bar a { color: var(--muted); text-decoration: none; margin: 0 10px; }
.site-footer-bar a:hover { color: var(--text); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,229,204,0.3); }

/* ─── AD SLOTS ─── */
.ad-slot {
  width: 100%;
  min-height: 90px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 28px 0;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.7s 0.3s ease both; }

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .site-nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .page-wrap { padding: 40px 16px 80px; }
}

/* ═══════════════════════════════════════
   COOKIE CONSENT BANNER
   UK GDPR / PECR compliant
════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #13131f;
  border-top: 1px solid rgba(155, 93, 229, 0.4);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-body);
}

#cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
}

.cookie-text p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.cookie-text p strong {
  color: var(--text);
}

.cookie-text a {
  color: var(--teal);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

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

.cookie-btn {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: #fff;
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 229, 204, 0.3);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}

.cookie-btn-reject:hover {
  border-color: var(--muted);
  color: var(--text);
}

@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}
