/* Story Page Specific */

body {
  font-family: 'Merriweather', 'Georgia', serif;
  background-color: #1a1a1a;
  color: #f0e6e6;
  font-size: 18px;
  line-height: 1.9;
}

/* Container */
.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: #262626;
  border-radius: 10px;
}

/* Headings */
h1 {
  font-family: 'Times New Roman', serif;
  font-size: 28px;
  text-align: center;
  color: #ffb3d1;
  margin-bottom: 25px;
}

h2 {
  color: #ffb3d1;
  font-size: 24px;
  margin-bottom: 15px;
}

/* Paragraphs */
p {
  margin-bottom: 20px;
  text-align: justify;
  text-indent: 2em;
}

.highlight {
  color: #ff6666;
  font-weight: bold;
}

/* Section */
.section {
  margin-bottom: 40px;
  border-bottom: 1px solid #333;
  padding-bottom: 30px;
}

/* Story Images */
.story-image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 6px;
  margin: 0 auto 16px;
  background-color: #2a2a2a;
}

/* Captions */
.image-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.image-caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffd6e7;
  padding: 8px 12px;
  font-style: italic;
  border-radius: 6px;
}

/* Related Section */
.related-section {
  margin-top: 60px;
  padding: 40px 20px;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.related-section h2 {
  color: #ff6b6b;
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
}

.related-section .story-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* Dialogue */
.dialogue {
  display: block;
  margin: 0.6rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid #e63946;
  background: #1a1a1a;
  border-radius: 6px;
  font-style: italic;
}

/* Story Meta */
.story-meta {
  display: flex;
  justify-content: flex-start;
  /* align left */
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #ccc;
  margin: 12px 0;
  text-align: left;
}

.story-meta span {
  white-space: nowrap;
  /* each unit (views/likes/read) stays intact */
}

.story-meta span {
  color: #ff6b6b;
  font-weight: 600;
}

/* Progress Bar */
#progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
}

#progress-bar {
  height: 100%;
  background: #ff6b6b;
  width: 0%;
}

#progress-text {
  position: fixed;
  top: 8px;
  right: 12px;
  font-size: 12px;
  color: #ff9cb5;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Like Button (specific) */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid #ff6b6b;
  border-radius: 8px;
  background: #262626;
  color: #ff6b6b;
  cursor: pointer;
  transition: all 0.25s ease;
}

.like-btn:hover {
  background: #ff6b6b;
  color: #1a1a1a;
}

.like-btn:disabled {
  background: #1a1a1a;
  border-color: #444;
  opacity: 0.85;
}

/* Inner Thoughts */
.inner-thought {
  font-style: italic;
  color: #c9a7eb;
  /* soft lavender/purple, contrasts pink accents */
  opacity: 0.95;
}

/* Erotic Sounds (moans, whispers, kiss sounds) */
.sound {
  font-style: italic;
  color: #ff9cb5;
  /* soft pink, ties into your #ff6b6b palette */
  font-weight: 500;
}

/* Related story cards */
.story-card {
  background: #1f1f1f;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  width: 220px;
  border: 1px solid #333;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.story-card:hover {
  transform: translateY(-4px);
}

.story-card img {
  width: 100%;
  height: auto;
  /* ✅ let image keep aspect ratio */
  max-height: 180px;
  /* ✅ optional cap to keep cards balanced */
  object-fit: contain;
  /* ✅ no cropping */
  border-radius: 6px;
  margin-bottom: 8px;
  background: #2a2a2a;
  /* fallback for letterbox areas */
}

.story-card h3 {
  font-size: 1rem;
  color: #ff6b6b;
  line-height: 1.4;
  margin-top: auto;
  /* keeps title pinned below image */
  min-height: 40px;
  /* ensures consistent spacing for multi-line titles */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ✅ Responsive: full width on mobile */
@media (max-width: 600px) {
  .story-card {
    width: 100%;
    max-width: 100%;
  }

  .story-card img {
    max-height: 220px;
    /* slightly larger thumbnails on mobile */
  }
}