/* ================================
   STORY READING THEME
   ================================ */

/* Page background */
.chapter-page {
  background: #0e0e12;
  color: #e6e6e6;
  min-height: 100vh;
}

/* Header & general text */


/* Links */
.chapter-page a {
  color: #9fd3ff;
  text-decoration: none;
}

.chapter-page a:hover {
  text-decoration: underline;
}

/* Main title */
.chapter-page h1 {
  max-width: 720px;
  margin: 20px auto 10px;
  padding: 0 20px;
  font-size: 1.9rem;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
}

.author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  max-width: 720px;
  margin: 18px auto 30px; /* true centering */
}


.author-image {
  width: 48px;                /* small, clean */
  height: 48px;
  border-radius: 50%;
  object-fit: cover;

  box-shadow:
    0 0 0 2px rgba(255,255,255,0.15);
}

.author-line {
  margin: 0;
  padding: 0;
  line-height: 1.1;
  text-align: left;
}


.author-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #9aa7c7;
  letter-spacing: 0.05em;
  margin-right: 6px;
}

.author-name {
  font-size: 1.35rem;        /* larger name */
  font-weight: 700;
  color: #eaf6ff;
  letter-spacing: 0.08em;
}
.cover-image {
  padding: 8px;
  background: white;
  border-radius: 6px;
}


/* ================================
   STORY CONTENT
   ================================ */

.story {
  max-width: 720px;
  margin: 30px auto 60px;
  padding: 32px 26px;

  white-space: pre-wrap;     /* better than pre-line for fiction */
  word-break: break-word;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.85;

  text-align: left;          /* justify + pre looks uneven */
  text-indent: 0;            /* prevents line indentation bug */

  background: #14141b;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);

  overflow-x: hidden;        /* prevents mobile scroll */
}
.story::first-line {
  font-kerning: normal;
}



.story img {
  display: block;
  margin: 40px auto;
}

/* Scene breaks */
.story em,
.story strong {
  display: block;
  text-align: center;
  letter-spacing: 0.2em;
  margin: 30px 0;
  color: #aaa;
}

/* ================================
   DIVIDERS & NAV
   ================================ */

hr {
  border: none;
  border-top: 1px solid #2a2a35;
  margin: 50px auto 20px;
  max-width: 720px;
}

.soft-divider {
  border: none;
  height: 1px;
  max-width: 720px;
  margin: 40px auto;
  background: linear-gradient(
    to right,
    transparent,
    #2f3b55,
    transparent
  );
}

/* ================================
   COVER & SYNOPSIS
   ================================ */

.cover-image {
  display: block;
  max-width: 220px;
  margin: 25px auto;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(159, 211, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-image:hover {
  transform: scale(1.03);
  box-shadow: 0 0 60px rgba(159, 211, 255, 0.25);
}

.synopsis {
  font-size: 1rem;
  line-height: 1.7;
  color: #c8c8c8;
  text-align: justify;
}

.volume-nav {
  margin: 1.5rem auto 2rem;
  text-align: center;
}

.volume-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.volume-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #f2f2f2;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.volume-nav a:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.volume-nav {
  position: sticky;
  top: 0;
  background: white;
  padding: 0.75rem 0;
  z-index: 10;
  border-bottom: 1px solid #eee;
}
.back-to-top {
  display: inline-block;
  margin: 2rem auto;
  padding: 0.5rem 1.25rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.back-to-top:hover {
  background: #222;
  transform: translateY(-2px);
}


/* ================================
   CHAPTER LIST (REFINED)
   ================================ */

.chapter-list {
  max-width: 720px;
  margin: 40px auto 70px;
  padding: 0 20px;
  list-style: none;
  counter-reset: chapter;
}

.chapter-list li {
  counter-increment: chapter;

  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;

  margin: 10px 0;
  padding: 14px 18px;

  background: #14141b;
  border-radius: 8px;

  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.chapter-list li::before {
  content: "Chapter " counter(chapter);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6fa8dc;
}

.chapter-list a {
  font-size: 1rem;
  color: #e6e6e6;
  text-decoration: none;
  line-height: 1.4;
}

.chapter-list li:hover {
  background: #1b1b25;
  box-shadow: 0 0 0 1px #2a2a35 inset;
}

.chapter-list li:hover a {
  text-decoration: underline;
}


/* ================================
   BUTTONS
   ================================ */

/* Primary CTA */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 25px auto 40px;
  padding: 14px 30px;

  background: linear-gradient(135deg, #6fa8dc, #9fd3ff);
  color: #0e0e12 !important;
  font-weight: bold;

  border-radius: 30px;
  box-shadow: 0 0 25px rgba(159, 211, 255, 0.3);
  text-align: center;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(159, 211, 255, 0.45);
}

/* Secondary buttons (Back / Nav) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 22px;
  margin-top: 15px;

  font-size: 0.95rem;
  font-weight: 500;

  border-radius: 25px;
  text-decoration: none;

  background: #1b1b25;
  color: #cfcfcf;
  border: 1px solid #2a2a35;

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #232330;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

/* ================================
   FOOTER
   ================================ */

footer {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 30px;
}
/* ================================
   CHAPTER NAVIGATION
   ================================ */

.chapter-nav {
  max-width: 720px;
  margin: 40px auto 60px;
  padding: 0 20px;

  display: flex;
  align-items: center;
}

/* Force alignment */
.chapter-nav .prev {
  margin-right: auto;
}

.chapter-nav .next {
  margin-left: auto;
}

/* Button styling */
.nav-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;

  border-radius: 22px;
  text-decoration: none;

  background: #1b1b25;
  color: #d0d0d0;
  border: 1px solid #2a2a35;

  transition: background 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

.nav-btn:hover {
  background: #232330;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

/* Emphasize Next */
.nav-btn.next {
  background: linear-gradient(135deg, #6fa8dc, #9fd3ff);
  color: #0e0e12;
  border: none;
  font-weight: 600;
}

.nav-btn.next:hover {
  box-shadow: 0 0 25px rgba(159, 211, 255, 0.45);
}
.volume-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #000;
  padding: 0.75rem 0;
  border-bottom: 1px solid #111;
}

.volume-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.volume-nav a {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.volume-nav a:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* ================================
   SHARP GLOWING HOME BUTTON
   ================================ */

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;

  border-radius: 22px;
  text-decoration: none;

  color: #eaf6ff;
  background: #161b26;

  border: 1px solid #6fa8dc;

  box-shadow:
    0 0 0 1px rgba(111, 168, 220, 0.6),
    0 0 10px rgba(111, 168, 220, 0.35);

  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* Hover — crisp glow, not blur */
.home-btn:hover {
  background: #1c2233;
  text-decoration: none;

  box-shadow:
    0 0 0 1px rgba(159, 211, 255, 0.9),
    0 0 16px rgba(159, 211, 255, 0.55);
}

/* Active (click) */
.home-btn:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(159, 211, 255, 0.6),
    0 0 8px rgba(159, 211, 255, 0.35);
}
.story-image {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  border-radius: 12px;
}
.story-image.dark {
  filter: brightness(0.75) contrast(1.1);
}


/* ================================
   MOBILE
   ================================ */

@media (max-width: 600px) {
  .chapter-nav {
    gap: 14px;
  }
}


