/* =========================================
   DOMINIA — Guide Pages Stylesheet
   Shared across all 8 guide pages
   ========================================= */

/* === RESET & ROOT === */
*{margin:0;padding:0;box-sizing:border-box}

:root {
  /* Base palette (Dark, immersive, ancient) */
  --bg-deep: #08080c;
  --bg-surface: #12111a;
  --bg-card: #181722;
  --bg-card-hover: #1e1c2b;
  --gold: #c9a84c;
  --gold-dim: #8b6e2f;
  --gold-light: #dac06a;
  --text: #e8e6de;
  --text-dim: #9e9c94;
  --text-muted: #605840;
  --border: #2a2835;
  --border-hover: rgba(201,168,76,.25);

  /* Highlight/Accent */
  --accent: #8b2828; /* Deep crimson for specific highlights */
  --accent-light: #b03a3a;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  /* Subdued marble-like texture overlay */
  background-image: radial-gradient(circle at center, rgba(20,20,30,.4) 0%, var(--bg-deep) 100%);
}

::selection { background: rgba(201,168,76,.2); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,.3); }

a { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold-light); }

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px,4vw,48px);
  background: rgba(8,8,12,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all .4s;
}
.nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.8); border-bottom-color: rgba(201,168,76,.1); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 32px; border-radius: 4px; }
.nav-brand span {
  font-family: 'Cinzel', serif; font-size: 15px; font-weight: 700;
  color: var(--gold); letter-spacing: 4px;
}
.nav-links {
  display: flex; gap: clamp(12px,1.5vw,20px);
  list-style: none; align-items: center;
}
.nav-links a {
  text-decoration: none; font-family: 'Cinzel', serif;
  font-size: 10px; font-weight: 600; color: var(--text-dim);
  letter-spacing: 2px; text-transform: uppercase;
  transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold); transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.mob-tog { display: none; background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; }

/* === HERO SECTION === */
.guide-hero {
  padding: 120px 20px 60px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(20,20,30,0.8) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* Ancient motif background subtle pattern */
.guide-hero::after {
  content: ''; position: absolute; inset: 0; opacity: 0.03; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M20 0l20 20-20 20L0 20z" fill="%23c9a84c" fill-rule="evenodd"/></svg>');
  background-size: 60px;
}
.hero-icon {
  font-size: 48px; margin-bottom: 16px; 
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.3));
}
.guide-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 5vw, 56px); font-weight: 900;
  color: var(--gold); letter-spacing: 4px;
  margin-bottom: 12px;
}
.guide-hero p {
  font-size: 18px; color: var(--text-dim); font-style: italic;
  max-width: 600px; margin: 0 auto; letter-spacing: 1px;
}

/* === LAYOUT: SIDEBAR + CONTENT === */
.guide-container {
  display: flex; max-width: 1400px; margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px);
  gap: 40px; position: relative;
}

/* Sidebar */
.guide-sidebar {
  width: 260px; min-width: 260px;
  position: sticky; top: 100px;
  align-self: flex-start;
  padding-right: 20px;
  border-right: 1px solid var(--border);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.guide-sidebar::-webkit-scrollbar { width: 2px; }
.sidebar-title {
  font-family: 'Cinzel', serif;
  font-size: 12px; font-weight: 700; color: var(--gold-dim);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 20px;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sidebar-nav a {
  display: block; font-size: 14px; color: var(--text-dim);
  font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 1px;
  padding: 6px 12px; border-left: 2px solid transparent;
  transition: all .2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--gold); border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(201,168,76,0.05), transparent);
}

/* Main Content */
.guide-content { flex: 1; max-width: 900px; }

/* === CONTENT TYPOGRAPHY & BLOCKS === */
.guide-content h2 {
  font-family: 'Cinzel', serif; font-size: 28px; font-weight: 700;
  color: var(--gold); letter-spacing: 2px;
  margin: 60px 0 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.guide-content h2:first-child { margin-top: 0; }
.guide-content h3 {
  font-family: 'Cinzel', serif; font-size: 20px; font-weight: 600;
  color: var(--gold-light); letter-spacing: 1px;
  margin: 40px 0 16px;
}
.guide-content p {
  font-size: 17px; margin-bottom: 24px; color: var(--text);
  line-height: 1.9;
}
.guide-content ul, .guide-content ol {
  margin-bottom: 24px; padding-left: 20px;
}
.guide-content li {
  font-size: 16px; margin-bottom: 12px; color: var(--text);
}
.guide-content li::marker { color: var(--gold-dim); font-size: 14px; }

/* Decorative Lettrine */
.dropcap::first-letter {
  font-family: 'Cinzel', serif; font-size: 50px;
  float: left; line-height: 1; margin-right: 10px; margin-top: 4px;
  color: var(--gold); font-weight: 700;
}

/* === GLOSSARY & HIGHLIGHTS === */
.term {
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700;
  color: var(--gold-light); letter-spacing: 1px;
}

/* === ALERT & PRO-TIP BOXES === */
.alert-box {
  padding: 24px; margin: 32px 0; border-radius: 4px;
  background: var(--bg-card); position: relative;
  border: 1px solid var(--border);
}
.alert-box::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; border-radius: 4px 0 0 4px;
}
.alert-box.tip::before { background: var(--gold); }
.alert-box.tip { border-color: rgba(201,168,76,0.2); background: rgba(201,168,76,0.03); }
.alert-box.warning::before { background: var(--accent); }
.alert-box.warning { border-color: rgba(139,40,40,0.3); background: rgba(139,40,40,0.03); }

.alert-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.alert-box.tip .alert-title { color: var(--gold); }
.alert-box.warning .alert-title { color: var(--accent-light); }
.alert-box p { margin-bottom: 0; font-size: 15px; color: var(--text-dim); }

/* === TABLES === */
.table-wrapper {
  margin: 40px 0; overflow-x: auto;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-surface);
}
.guide-table {
  width: 100%; border-collapse: collapse; text-align: left;
  min-width: 600px;
}
.guide-table th {
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 20px; background: rgba(201,168,76,0.05);
  border-bottom: 1px solid var(--border);
}
.guide-table td {
  padding: 16px 20px; font-size: 15px; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.guide-table tr:last-child td { border-bottom: none; }
.guide-table tr:hover td { background: rgba(255,255,255,0.02); color: var(--text); }
.guide-table strong { color: var(--gold-light); font-weight: 600; }

/* === SIBYLA SECTION === */
.sibyla-note {
  margin-top: 80px; padding: 40px; text-align: center;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.05) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}
.sibyla-icon { font-size: 32px; margin-bottom: 16px; opacity: .8; }
.sibyla-note h4 {
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  color: var(--gold-dim); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px;
}
.sibyla-note p {
  font-size: 18px; font-style: italic; color: var(--text-dim);
  max-width: 600px; margin: 0 auto; line-height: 1.8;
}

/* === FOOTER === */
.footer {
  padding: 40px clamp(16px,4vw,48px);
  border-top: 1px solid var(--border); background: var(--bg-deep);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 24px; border-radius: 3px; }
.footer-brand span { font-family: 'Cinzel', serif; font-size: 12px; color: var(--text-dim); letter-spacing: 2px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .guide-container { flex-direction: column; }
  .guide-sidebar {
    width: 100%; position: relative; top: 0; max-height: none;
    border-right: none; border-bottom: 1px solid var(--border);
    padding-right: 0; padding-bottom: 20px;
  }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .sidebar-nav a { border-left: none; border-bottom: 2px solid transparent; padding: 6px 0; }
  .sidebar-nav a:hover, .sidebar-nav a.active {
    border-left-color: transparent; border-bottom-color: var(--gold);
    background: none;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(8,8,12,.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; text-align: center; }
  .mob-tog { display: block; }
  .guide-hero h1 { font-size: 28px; }
  .alert-box { padding: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
