/* =================================
   STORY READING THEME — DARK NOVEL
================================= */

/* Page */
.chapter-page {
  background: #0e0e12;
  color: #e6e6e6;
  font-family: Georgia, "Times New Roman", serif; 
  line-height: 1.85;
  font-size: 1.08rem;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

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

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

/* Author */
.author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin: 18px auto 30px;
}
.author-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
.author-line { margin: 0; }
.author-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #9aa7c7;
  letter-spacing: 0.05em;
}
.author-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #eaf6ff;
  letter-spacing: 0.08em;
}

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

/* =================================
   STORY CONTENT — NOVEL STYLE
================================= */

.story {
  max-width: 650px; 
  margin: 40px auto;
  padding: 0 20px;
  white-space: pre-line;
  text-align: justify;
  font-family: "Garamond", "Georgia", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.15rem;       /* readable for long-form text */
  line-height: 1.9;         /* breathable line spacing */
  text-indent: 0;         /* first line indent like printed novels */
  color: #e6e6e6;
}

.story p {
  margin-bottom: 1.8em;     /* spacing between paragraphs instead of double indents */
}

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

/* Story Images remain the same */
.story img.story-image {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.story img.dark {
  filter: brightness(0.85);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .story {
    max-width: 90%;
    padding: 0 15px;
    font-size: 1.05rem;
    line-height: 2;        /* slightly taller for small screens */
    text-indent: 0;    /* reduced indent for narrow screens */
  }

  .story p {
    margin-bottom: 2em;
  }
}


/* =================================
   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 {
  max-width: 700px;
  margin: 20px auto 40px;
  padding: 0 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: #c8c8c8;
  text-align: justify;
}

.synopsis p {
  margin-bottom: 1.4em;   /* ← Proper paragraph spacing added */
}

/* =================================
   CHAPTER LIST
================================= */

.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;
  color: #6fa8dc;
}
.chapter-list a {
  font-size: 1rem;
  color: #e6e6e6;
  text-decoration: none;
}
.chapter-list li:hover {
  background: #1b1b25;
  box-shadow: 0 0 0 1px #2a2a35 inset;
}
.chapter-list li:hover a {
  text-decoration: underline;
}

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
  );
}
/* =================================
   NAVIGATION
================================= */

.chapter-nav {
  max-width: 720px;
  margin: 40px auto 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.chapter-nav .prev { margin-right: auto; }
.chapter-nav .next { margin-left: auto; }

.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: all 0.2s ease;
}
.nav-btn:hover {
  background: #232330;
  transform: translateY(-1px);
}
.nav-btn.next {
  background: linear-gradient(135deg, #6fa8dc, #9fd3ff);
  color: #0e0e12;
  border: none;
  font-weight: 600;
}

/* =================================
   HOME BUTTON
================================= */

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  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: all 0.25s ease;
}
.home-btn:hover {
  background: #1c2233;
  box-shadow: 0 0 0 1px rgba(159,211,255,0.9),
              0 0 16px rgba(159,211,255,0.55);
}

/* =================================
   CTA + SECONDARY BUTTONS
================================= */

.cta {
  display: flex;
  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);
  transition: all 0.25s ease;
}
.cta:hover {
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  padding: 10px 22px;
  font-size: 0.95rem;
  border-radius: 25px;
  background: #1b1b25;
  color: #cfcfcf;
  border: 1px solid #2a2a35;
}

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

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

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



  .chapter-list li {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .chapter-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .chapter-page h1 {
    font-size: 1.8rem;
  }
}
.share-buttons {
  text-align: center;
  margin: 50px 0;
  font-family: 'Poppins', sans-serif;
}

.share-buttons h3 {
  font-size: 1.5rem;
  color: #f0e6d2;
  margin-bottom: 20px;
}

.share-btn-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px; /* Decorative spacing between buttons */
}

.share-btn {
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  color: #fff;
  background: #333;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

/* Brand colors */
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.pinterest { background: #E60023; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.copy-link { background: #6e5494; }

#copyMessage {
  display: none;
  margin-top: 10px;
  color: #25d366;
  font-weight: bold;
  font-size: 1rem;
}
/* ================================
   MOBILE
   ================================ */

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