/* ===================================================================
   Drakoria — Chapter Reading Page Styles
   Parchment panel, reading progress, ornate dividers, prose typography
   =================================================================== */

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

:root {
  --color-midnight:    #05070A;
  --color-gold:        #D4AF37;
  --color-gold-soft:   rgba(212,175,55,0.6);
  --color-gold-faint:  rgba(212,175,55,0.3);
  --color-silver:      #E0E0E0;
  --color-blue-glow:   #4A86E8;
  --color-dark-panel:  #0D1621;
  --color-parchment-1: #F4EFE6;
  --color-parchment-2: #EDE5D6;
  --color-bronze:      #C58A3E;
  --font-heading:      'Cinzel', ui-sans-serif, system-ui, serif;
  --font-body:         'EB Garamond', ui-sans-serif, system-ui, serif;
  --font-display:      'Cinzel', ui-sans-serif, system-ui, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--color-midnight);
  color: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===================== Reading Progress Bar ===================== */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 4px;
}
.reading-progress-bar {
  height: 100%; background: var(--color-gold); width: 0%;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(212,175,55,0.85);
}

/* ===================== Fixed Background ===================== */
.chapter-bg { position: fixed; inset: 0; z-index: 0; }
.chapter-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(6px); transform: scale(1.1);
}
.chapter-bg-overlay {
  position: absolute; inset: 0; background: rgba(5,7,10,0.82);
}

/* ===================== Header ===================== */
.chapter-header {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  padding: 5rem 1rem 2.5rem; text-align: center;
}
.chapter-header .logo {
  width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--color-gold-soft); margin-bottom: 1.5rem;
  animation: fadeIn 1.4s ease-out both;
}
@media (min-width: 768px) { .chapter-header .logo { width: 5rem; height: 5rem; } }
.chapter-eyebrow {
  font-family: var(--font-heading); letter-spacing: 0.4em;
  color: var(--color-gold); font-size: 0.75rem;
  animation: titleFade 1.8s ease-out both;
}
@media (min-width: 768px) { .chapter-eyebrow { font-size: 0.875rem; } }
.chapter-title {
  font-family: var(--font-display); font-size: 2.25rem; margin-top: 0.5rem;
  background: linear-gradient(to bottom, #fff, #9a9a9a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: 0.1em;
  animation: titleFade 1.8s ease-out both; animation-delay: 0.3s;
}
@media (min-width: 768px) { .chapter-title { font-size: 3.75rem; } }

/* ===================== Reading Panel ===================== */
.chapter-main {
  position: relative; z-index: 10;
  max-width: 850px; margin: 0 auto;
  padding: 0 1rem 4rem;
}
@media (min-width: 768px) { .chapter-main { padding: 0 2rem 4rem; } }
.chapter-panel {
  border-radius: 2px; padding: 3rem 1.5rem;
  background: linear-gradient(180deg, var(--color-parchment-1), var(--color-parchment-2));
  box-shadow: 0 30px 80px rgba(0,0,0,0.85);
  border-top: 2px solid rgba(197,138,62,0.5);
  border-bottom: 2px solid rgba(197,138,62,0.5);
}
@media (min-width: 768px) { .chapter-panel { padding: 4rem 4rem; } }

/* ===================== Chapter Prose ===================== */
.chapter-prose {
  font-family: var(--font-body); font-size: 1.25rem; line-height: 1.8; color: #1A1714;
}
.chapter-prose p { margin: 0 0 1.25rem; }
.chapter-prose strong { font-weight: 700; color: #14110d; }
.chapter-prose .dialogue {
  margin: 1.6rem 0; padding-left: 2.5rem;
  border-left: 2px solid rgba(197,138,62,0.45);
}
.chapter-prose .dialogue p { margin: 0.2rem 0; }
.chapter-prose .song-block {
  margin: 2.5rem 0; padding: 1.5rem 1rem;
  border-top: 1px solid var(--color-bronze);
  border-bottom: 1px solid var(--color-bronze);
  text-align: center; background: rgba(197,138,62,0.06);
}
.chapter-prose .song-block p {
  margin: 0.4rem 0; font-style: italic; letter-spacing: 0.06em; color: #4a3416;
}
.chapter-prose .song-heading {
  font-family: var(--font-heading); text-align: center;
  font-size: 1.6rem; letter-spacing: 0.18em; color: #7a5526;
  margin: 2.5rem 0 1rem; text-transform: uppercase; font-weight: 600;
}

/* ===================== Ornate Divider ===================== */
.ornate-divider {
  display: flex; align-items: center; justify-content: center; margin: 2.5rem 0;
}
.ornate-divider .line-left {
  height: 1px; width: 4rem;
  background: linear-gradient(to right, transparent, var(--color-bronze));
}
@media (min-width: 768px) { .ornate-divider .line-left { width: 6rem; } }
.ornate-divider .line-right {
  height: 1px; width: 4rem;
  background: linear-gradient(to left, transparent, var(--color-bronze));
}
@media (min-width: 768px) { .ornate-divider .line-right { width: 6rem; } }
.ornate-divider svg { margin: 0 0.75rem; color: var(--color-bronze); flex-shrink: 0; }

/* ===================== Navigation Controls ===================== */
.chapter-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2.5rem; gap: 1rem; flex-wrap: wrap;
}
.chapter-nav a, .chapter-nav button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--color-gold-soft); color: var(--color-gold);
  padding: 0.75rem 1.25rem; font-family: var(--font-heading);
  letter-spacing: 0.2em; font-size: 0.75rem; text-transform: uppercase;
  text-decoration: none; background: none; cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.chapter-nav a:hover { background: var(--color-gold); color: var(--color-midnight); }
.chapter-nav button {
  border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}
.chapter-nav svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== End Section ===================== */
.chapter-end {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  padding: 4rem 1rem; text-align: center;
}
.chapter-end-tagline {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--color-gold);
  letter-spacing: 0.15em; font-style: italic; margin-bottom: 2rem;
}
@media (min-width: 768px) { .chapter-end-tagline { font-size: 1.5rem; } }
.chapter-release-date {
  font-family: var(--font-heading); color: var(--color-gold);
  letter-spacing: 0.3em; font-size: 1.125rem; margin-bottom: 0.25rem;
}
@media (min-width: 768px) { .chapter-release-date { font-size: 1.5rem; } }
.chapter-release-label {
  font-family: var(--font-heading); color: rgba(212,175,55,0.7);
  letter-spacing: 0.3em; font-size: 0.75rem; margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .chapter-release-label { font-size: 0.875rem; } }
.chapter-platforms {
  display: flex; align-items: center; gap: 2rem;
  color: rgba(255,255,255,0.9); margin-bottom: 3rem;
}
.chapter-platforms .platform {
  font-family: var(--font-display); letter-spacing: 0.05em; font-size: 1.125rem;
}
.chapter-platforms .divider {
  width: 1px; height: 1.25rem; background: rgba(212,175,55,0.4);
}

/* ===================== Socials Card (shared) ===================== */
.socials-card {
  width: 100%; max-width: 28rem;
  border: 1px solid var(--color-gold-faint);
  background: rgba(13,22,33,0.6); border-radius: 2px;
  padding: 2rem 1.5rem; text-align: center;
}
.socials-title {
  font-family: var(--font-heading); color: var(--color-gold);
  letter-spacing: 0.3em; font-size: 0.875rem; margin-bottom: 0.5rem;
}
.socials-desc { color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-bottom: 1.5rem; }
.socials-links {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
@media (min-width: 768px) {
  .socials-links { flex-direction: row; justify-content: center; }
}
.socials-links a {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.8); font-size: 0.875rem; text-decoration: none;
  transition: color 0.3s;
}
.socials-links a:hover { color: var(--color-gold); }
.socials-links svg { width: 1.25rem; height: 1.25rem; fill: currentColor; flex-shrink: 0; }

/* ===================== Footer ===================== */
.footer {
  position: relative; z-index: 10; padding: 2rem; text-align: center;
}
.footer p { color: rgba(224,224,224,0.5); font-size: 0.75rem; letter-spacing: 0.15em; }

/* ===================== Keyframes ===================== */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes titleFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}