/* Lore deep-dive page styles — extends style.css */

/* ── Nav ─────────────────────────────────────────────────── */
.lore-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-home {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-cta:hover {
  background: var(--gold);
  color: #0a0a0f !important;
}

/* ── Lore Hero ───────────────────────────────────────────── */
.lore-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 4rem;
  background: linear-gradient(180deg, #0a0a0f 0%, #18101a 50%, #0a0a0f 100%);
}

.lore-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.lore-hero .tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  max-width: 700px;
  line-height: 1.8;
}

/* ── Section Intro ───────────────────────────────────────── */
.section-intro {
  font-size: 1.15rem;
  color: var(--text-bright);
  max-width: 760px;
  margin-bottom: 2.5rem;
}

/* ── Source Deep Dive Blocks ─────────────────────────────── */
.source-deep {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.source-deep:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.source-deep h3 {
  font-size: 1.5rem;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.source-meta {
  font-size: 0.85rem;
  color: var(--gold-dim);
  font-style: italic;
  margin-bottom: 1.2rem !important;
}

.source-deep p {
  max-width: 760px;
}

.source-deep strong {
  color: var(--text-bright);
}

.source-deep em {
  color: var(--gold-dim);
}

/* ── Demon Orders List ───────────────────────────────────── */
.demon-orders {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  max-width: 760px;
}

.demon-orders li {
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-left: 2px solid var(--maleficium);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.demon-orders li strong {
  color: var(--gold);
}

/* ── Pull Quotes ─────────────────────────────────────────── */
.pull-quote {
  margin: 3rem 0;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--gold);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-bright);
  max-width: 700px;
  line-height: 1.8;
}

/* ── Corpus Stats ────────────────────────────────────────── */
.corpus-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Connections Grid ────────────────────────────────────── */
.connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.connection {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.8rem;
}

.connection h3 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.connection p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Source Table ─────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.source-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--gold-dim);
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  white-space: nowrap;
}

.source-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.source-table tr:hover td {
  background: rgba(217, 177, 80, 0.04);
}

.source-table em {
  color: var(--text-bright);
}

.source-table td:last-child {
  font-size: 0.82rem;
  color: var(--text);
  max-width: 300px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .lore-nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
  }

  .nav-links {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
  }

  .source-deep h3 {
    font-size: 1.25rem;
  }

  .pull-quote {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .connections-grid {
    grid-template-columns: 1fr;
  }

  .demon-orders li {
    padding-left: 1rem;
  }
}
