/* ==========================================================================
   js/modules/bibliography/bibliography.module.css
   ESTÉTICA CÓDICE DE ALTA CURADORIA — GRANDE BIBLIOTECA ALEXANDRINA OCULTA
   Zero-Pill Discipline (sem pílulas estáticas falsas ou bordas neon agressivas)
   ========================================================================== */

:root {
  --codex-gold: #d4af37;
  --codex-gold-subtle: rgba(212, 175, 55, 0.22);
  --codex-surface: rgba(15, 23, 42, 0.88);
  --codex-surface-elevated: rgba(17, 24, 39, 0.94);
  --codex-text-primary: #f8fafc;
  --codex-text-secondary: #cbd5e1;
  --codex-text-muted: #94a3b8;
}

.alexandria-header-banner {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(10, 15, 30, 0.92) 100%);
  border: 1px solid var(--codex-gold-subtle);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.alexandria-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--codex-gold-subtle);
  padding-bottom: 12px;
}

.alexandria-tab-btn {
  background: rgba(15, 23, 42, 0.7);
  color: var(--codex-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-header, 'Cinzel', serif);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alexandria-tab-btn:hover {
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
}

.alexandria-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(15, 23, 42, 0.95));
  color: #fde047;
  border-color: var(--codex-gold);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

/* Códice Editorial Card — Medida de Leitura Erudita (65ch–75ch) */
.codex-entry-card {
  background: var(--codex-surface);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.codex-entry-card:hover {
  border-color: rgba(212, 175, 55, 0.42);
}

.codex-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.codex-entry-title {
  font-family: var(--font-header, 'Cinzel', serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.01em;
}

.codex-meta-inline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #d4af37;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.codex-entry-author {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.codex-entry-desc {
  font-size: 0.95rem;
  line-height: 1.72;
  color: #e2e8f0;
  max-width: 74ch;
  margin: 0 0 12px 0;
}

.codex-entry-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.8rem;
  color: #94a3b8;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

/* Laboratório Alquímico & Geometria Sagrada */
.codex-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.codex-emblem-card {
  background: var(--codex-surface-elevated);
  border: 1px solid var(--codex-gold-subtle);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.codex-svg-frame {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.75) 0%, rgba(9, 13, 24, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.codex-latin-motto {
  font-style: italic;
  color: #fde047;
  font-size: 0.88rem;
  border-left: 2px solid var(--codex-gold);
  padding-left: 12px;
  margin: 4px 0;
}

/* 12 Operações Alquímicas Grid */
.codex-operations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.codex-operation-item {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
}

/* Trilhas Iniciáticas */
.codex-track-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.codex-track-step:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.codex-track-step.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}
