/* ═══════════════════════════════════════
   Panderic Quests — Shared Styles
   ═══════════════════════════════════════ */

:root {
  --gold: #C9920A;
  --gold-light: #E8A820;
  --gold-dim: #9B7020;
  --ink: #F8F5F0;
  --ink-soft: #F0EBE3;
  --ink-mid: #E6DDD2;
  --text-main: #1C1510;
  --text-muted: #4A3D30;
  --text-dim: #8A7B6A;
  --accent-teal: #1E9E9B;
  --accent-coral: #E8735A;
  --accent-purple: #7B5CAD;
  --border: rgba(123,92,173,0.18);
  --border-bright: rgba(123,92,173,0.45);
  --card-bg: rgba(255,255,255,0.75);
  --card-bg-hover: rgba(255,255,255,0.98);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--ink);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248,245,240,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  border-bottom-color: var(--border-bright);
  box-shadow: 0 2px 20px rgba(123,92,173,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-logo-icon { font-size: 20px; }

.nav-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-purple);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  margin-left: 1rem;
}

.nav-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--accent-purple); background: rgba(123,92,173,0.06); }
.nav-link.active { color: var(--accent-purple); background: rgba(123,92,173,0.08); }

.nav-cta {
  padding: 9px 20px;
  background: var(--accent-purple);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-cta:hover {
  background: var(--accent-teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,158,155,0.3);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 8px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 2rem 1rem;
  border-top: 0.5px solid var(--border);
  gap: 4px;
  background: var(--ink);
}

.nav-mobile.open { display: flex; }

.nav-mobile-link {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 600;
}

.nav-mobile-link:hover {
  background: rgba(123,92,173,0.08);
  color: var(--accent-purple);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 10rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(123,92,173,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s both;
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.15;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s both;
}

.page-title span {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s both;
}

/* ── Dividers ── */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  margin: 2rem auto;
}

/* ── Utility ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gold { color: var(--gold-light); }
.text-muted { color: var(--text-muted); }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive nav ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
}
