﻿/* ================================
   GLOBAL STYLES
================================ */

body {
  margin: 0;
  padding: 0;
  background: #0b0b0d url('/assets/img/library-bg.jpg') center/cover fixed no-repeat;
  color: #c9c4b8;
  font-family: 'Crimson Pro', serif;
  line-height: 1.6;
}

/* Optional fallback if background missing */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  pointer-events: none;
  z-index: -1;
}

/* ================================
   HEADER (Towering Interior)
================================ */

.library-header {
  height: 45vh;
  background: url('/assets/img/library-interior.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-overlay {
  background: rgba(10, 10, 14, 0.65);
  padding: 2rem 3rem;
  border: 1px solid #3b0f0f;
  box-shadow: 0 0 25px rgba(107, 178, 201, 0.25);
  text-align: center;
}

.library-title {
  font-family: 'IM Fell English', serif;
  font-size: 3.2rem;
  letter-spacing: 0.15rem;
  color: #e6e3dc;
  margin: 0;
}

.library-subtitle {
  font-size: 1.1rem;
  color: #6bb2c9;
  margin-top: 0.5rem;
}

/* ================================
   NAVIGATION
================================ */

.library-nav {
  background: #1a1a1f;
  padding: 1rem 2rem;
  border-bottom: 1px solid #3b0f0f;
  text-align: center;
}

.library-nav a {
  color: #6bb2c9;
  margin: 0 1rem;
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s ease;
}

.library-nav a:hover {
  color: #9cd8f0;
  text-shadow: 0 0 8px #6bb2c9;
}

/* ================================
   MAIN CONTENT
================================ */

.library-main {
  padding: 3rem 10%;
}

/* Section headers */
section h2 {
  font-family: 'IM Fell English', serif;
  font-size: 2rem;
  color: #e6e3dc;
  border-bottom: 1px solid #3b0f0f;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ================================
   INTRO SECTION
================================ */

.intro-section {
  background: rgba(26, 26, 31, 0.75);
  padding: 2rem;
  border: 1px solid #3b0f0f;
  box-shadow: 0 0 20px rgba(107, 178, 201, 0.15);
  margin-bottom: 3rem;
}

/* ================================
   FEATURED TOMES
================================ */

.featured-tomes .tome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.tome {
  background: #2e2a24 url('/assets/img/parchment-dark.png') center/cover;
  padding: 2rem;
  border: 1px solid #4a3f36;
  text-align: center;
  font-family: 'IM Fell English', serif;
  font-size: 1.3rem;
  color: #e6e3dc;
  transition: 0.3s ease;
  cursor: pointer;
}

.tome:hover {
  box-shadow: 0 0 20px rgba(107, 178, 201, 0.4);
  transform: translateY(-4px);
}

/* ================================
   RECENT CHRONICLES
================================ */

.scroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.scroll {
  background: #2e2a24 url('/assets/img/parchment-light.png') center/cover;
  padding: 1.5rem;
  border: 1px solid #4a3f36;
  font-size: 1.1rem;
  color: #e6e3dc;
  transition: 0.3s ease;
}

.scroll:hover {
  box-shadow: 0 0 15px rgba(107, 178, 201, 0.35);
  transform: translateY(-3px);
}

/* ================================
   NPC SECTION
================================ */

.npc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.npc-card {
  background: rgba(26, 26, 31, 0.75);
  padding: 2rem;
  border: 1px solid #3b0f0f;
  text-align: center;
  font-size: 1.2rem;
  color: #e6e3dc;
  transition: 0.3s ease;
}

.npc-card:hover {
  box-shadow: 0 0 20px rgba(107, 178, 201, 0.4);
  transform: translateY(-4px);
}
/* ================================
   NPC DIRECTORY PAGE
================================ */

.npc-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.npc-entry {
  background: rgba(26, 26, 31, 0.75);
  border: 1px solid #3b0f0f;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(107, 178, 201, 0.15);
  transition: 0.3s ease;
}

.npc-entry:hover {
  box-shadow: 0 0 25px rgba(107, 178, 201, 0.35);
  transform: translateY(-4px);
}

.npc-portrait {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid #4a3f36;
  margin-bottom: 1rem;
}

.npc-info h3 {
  font-family: 'IM Fell English', serif;
  color: #e6e3dc;
  margin: 0 0 0.5rem 0;
}

.npc-role {
  color: #6bb2c9;
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
}

.npc-desc {
  font-size: 0.9rem;
  color: #c9c4b8;
}
/* ================================
   QUEST BOARD PAGE
================================ */

.quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.quest-card {
  background: rgba(26, 26, 31, 0.75);
  border: 1px solid #3b0f0f;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(107, 178, 201, 0.15);
  transition: 0.3s ease;
}

.quest-card:hover {
  box-shadow: 0 0 25px rgba(107, 178, 201, 0.35);
  transform: translateY(-4px);
}

.quest-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.quest-status {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 3px;
  font-weight: bold;
  color: #0b0b0d;
}

.quest-status.active {
  background: #6bb2c9;
}

.quest-status.rumor {
  background: #c9b76b;
}

.quest-status.complete {
  background: #6bc97a;
}

.quest-region {
  font-size: 0.75rem;
  color: #9cd8f0;
}

.quest-desc {
  font-size: 0.9rem;
  color: #c9c4b8;
}
/* ================================
   SESSION CHRONICLE PAGE
================================ */

.session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.session-card {
  background: rgba(26, 26, 31, 0.75);
  border: 1px solid #3b0f0f;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(107, 178, 201, 0.15);
  transition: 0.3s ease;
}

.session-card:hover {
  box-shadow: 0 0 25px rgba(107, 178, 201, 0.35);
  transform: translateY(-4px);
}

.session-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.session-number {
  font-size: 0.85rem;
  background: #6bb2c9;
  color: #0b0b0d;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-weight: bold;
}

.session-date {
  font-size: 0.85rem;
  color: #9cd8f0;
}

.session-summary {
  font-size: 0.9rem;
  color: #c9c4b8;
}
/* ================================
   HANDOUTS PAGE
================================ */

.handout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.handout-card {
  background: rgba(26, 26, 31, 0.75);
  border: 1px solid #3b0f0f;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(107, 178, 201, 0.15);
  transition: 0.3s ease;
}

.handout-card:hover {
  box-shadow: 0 0 25px rgba(107, 178, 201, 0.35);
  transform: translateY(-4px);
}

.handout-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid #4a3f36;
  margin-bottom: 1rem;
}

.handout-info h3 {
  font-family: 'IM Fell English', serif;
  color: #e6e3dc;
  margin: 0 0 0.5rem 0;
}

.handout-desc {
  font-size: 0.9rem;
  color: #c9c4b8;
}
