/* ============ SHARED STYLES FOR ALL PAGES ============ */
/* This file is referenced by all content pages to maintain consistent branding */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Cinzel:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --gold-dim: #A08840;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --bg-deep: #0A0A0C;
  --bg-card: #111114;
  --bg-surface: #18181C;
  --bg-elevated: #1E1E23;
  --text-primary: #E8E4DC;
  --text-secondary: #ADA9A0;
  --text-dim: #7A776F;
  --border: #2A2A2F;
  --border-light: #35353B;
  --accent-red: #A0443B;
  --accent-blue: #3B5A7C;
  --accent-green: #3B7C5A;
  --accent-purple: #6B4C8C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-logo span { color: var(--text-dim); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  padding: 6rem 3rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.breadcrumbs a,
.breadcrumbs span {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 0.6rem; color: var(--border); }
.breadcrumbs .current { color: var(--gold-dim); }

/* ============ ARTICLE HERO ============ */
.article-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 3rem 0;
  position: relative;
}

.article-hero-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.article-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.article-hero h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.article-hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

.article-meta-item {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.article-meta-item strong {
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
}

/* ============ ARTICLE BODY ============ */
.article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.article-body h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.article-body h2 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
}

.article-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold-dim);
  margin: 2rem 0 0.8rem;
  letter-spacing: 0.04em;
}

.article-body p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 1.3rem;
}

.article-body p:first-of-type::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  padding-right: 0.5rem;
  color: var(--gold);
  font-weight: 600;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--gold);
  background: var(--bg-card);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-body blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--text-dim);
}

/* ============ QUICK FACTS BOX ============ */
.quick-facts {
  margin: 2.5rem 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2rem 2.5rem;
}

.quick-facts-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.quick-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 2rem;
}

.quick-fact {
  display: flex;
  gap: 0.6rem;
}

.quick-fact-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 80px;
  flex-shrink: 0;
}

.quick-fact-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============ RELATED LINKS ============ */
.related-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem 4rem;
}

.related-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.related-card {
  background: var(--bg-card);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.related-card:hover { background: var(--bg-surface); }

.related-card-icon { font-size: 1.5rem; }

.related-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  transition: color 0.3s;
}

.related-card:hover h4 { color: var(--gold); }

.related-card span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-dim);
}

/* ============ TABLE OF CONTENTS ============ */
.toc {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.toc-title {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 0.4rem;
}

.toc li::before {
  content: counter(toc, upper-roman) ". ";
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-right: 0.3rem;
}

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.toc a:hover { color: var(--gold); }

/* ============ NEWSLETTER CTA (INLINE) ============ */
.inline-cta {
  margin: 3rem 0;
  padding: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inline-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.04) 0%, transparent 70%);
}

.inline-cta h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  position: relative;
}

.inline-cta p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-dim) !important;
  margin-bottom: 1.2rem !important;
  position: relative;
}

.inline-cta-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--border);
  position: relative;
}

.inline-cta-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--bg-surface);
  border: none;
  color: var(--text-primary);
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  outline: none;
}

.inline-cta-form input::placeholder { color: var(--text-dim); }

.inline-cta-form button {
  padding: 0.7rem 1.5rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.inline-cta-form button:hover { background: var(--gold-light); }

/* ============ FOOTER (SIMPLE) ============ */
.page-footer {
  padding: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.page-footer p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.page-footer a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 0.8rem;
  transition: color 0.3s;
}

.page-footer a:hover { color: var(--gold); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .breadcrumbs { padding: 5rem 1.5rem 0; }
  .article-hero { padding: 2rem 1.5rem 0; }
  .article-body { padding: 2rem 1.5rem; }
  .related-section { padding: 0 1.5rem 3rem; }
  .quick-facts-grid { grid-template-columns: 1fr; }
  .article-meta { flex-wrap: wrap; gap: 1rem; }
  .related-grid { grid-template-columns: 1fr; }
}
/* ============ CUSTOM ICON SYSTEM ============ */
/* SVG icons injected by myth-icons.js — sized per container */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 1;
  vertical-align: middle;
}

.icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.2));
  transition: all 0.4s ease;
}

/* ---- Homepage: God/Goddess cards ---- */
.god-card-icon { font-size: 0; line-height: 0; }
.god-card-icon .icon { width: 28px; height: 28px; margin-bottom: 0.5rem; }
.god-card:hover .god-card-icon .icon svg {
  filter: drop-shadow(0 0 14px rgba(201, 168, 76, 0.4));
  transform: scale(1.1);
}

/* ---- Homepage: Creature cards ---- */
.creature-icon { font-size: 0; line-height: 0; }
.creature-icon .icon { width: 28px; height: 28px; margin-bottom: 0.5rem; }
.creature-card:hover .creature-icon .icon svg {
  filter: drop-shadow(0 0 14px rgba(201, 168, 76, 0.4));
  transform: scale(1.12);
}

/* ---- Homepage: Hero strip cards ---- */
.hero-strip-icon { font-size: 0; line-height: 0; }
.hero-strip-icon .icon { width: 28px; height: 28px; margin-bottom: 0.5rem; }
.hero-strip-card:hover .hero-strip-icon .icon svg {
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.35));
  transform: scale(1.1);
}

/* ---- Homepage: Titan cards ---- */
.titan-icon { font-size: 0; line-height: 0; }
.titan-icon .icon { width: 28px; height: 28px; margin-bottom: 0.5rem; }
.titan-card:hover .titan-icon .icon svg {
  filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.35));
  transform: scale(1.1);
}

/* ---- Homepage: Realm cards ---- */
.realm-icon { font-size: 0; line-height: 0; }
.realm-icon .icon { width: 48px; height: 48px; margin-bottom: 0.8rem; }

/* ---- Homepage: Spirit/Nymph cards ---- */
.spirit-icon { font-size: 0; line-height: 0; }
.spirit-icon .icon { width: 32px; height: 32px; margin-bottom: 0.4rem; }

/* ---- Homepage: Constellation cards ---- */
.constellation-stars { font-size: 0; line-height: 0; }
.constellation-stars .icon { width: 36px; height: 36px; margin-bottom: 0.5rem; }

/* ---- Homepage: Tree nodes ---- */
.tree-node-icon { font-size: 0; line-height: 0; }
.tree-node-icon .icon { width: 28px; height: 28px; margin-bottom: 0.2rem; }

/* ---- Homepage: Quiz emojis ---- */
.quiz-emoji { font-size: 0; line-height: 0; }
.quiz-emoji .icon { width: 40px; height: 40px; }

/* ---- Homepage: Did You Know icon ---- */
.dyk-icon { font-size: 0; line-height: 0; }
.dyk-icon .icon { width: 52px; height: 52px; }

/* ---- Content pages: Article hero icon ---- */
.article-hero-icon { font-size: 0; line-height: 0; }
.article-hero-icon .icon { width: 48px; height: 48px; margin-bottom: 1.2rem; }

/* ---- Content pages: Related card icons ---- */
.related-card-icon { font-size: 0; line-height: 0; }
.related-card-icon .icon { width: 24px; height: 24px; }

/* ---- Mobile adjustments ---- */
@media (max-width: 768px) {
  .god-card-icon .icon { width: 28px; height: 28px; }
  .creature-icon .icon { width: 28px; height: 28px; }
  .article-hero-icon .icon { width: 56px; height: 56px; }
  .realm-icon .icon { width: 40px; height: 40px; }
}

