/* Detail Page Styles (Chapters, Characters, Objects, Stories) */

/* Banner Images */
.banner-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
}

/* Navigation Between Items */
.episode-navigation,
.character-navigation-top,
.lore-navigation-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #333;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  flex: 1;
  max-width: 48%;
}

.nav-link.prev {
  text-align: left;
}

.nav-link.next {
  text-align: right;
  flex-direction: row-reverse;
}

.nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-image.tiny {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-text {
  font-weight: bold;
  color: var(--primary-color);
}

/* Character Specific */
.character-banner,
.lore-banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
}

.character-tagline {
  background: rgba(0,0,0,0.5);
  padding: 15px 25px;
  border-radius: 25px;
  margin: 20px auto 2px auto;
  max-width: 600px;
  backdrop-filter: blur(10px);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.character-tagline h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  font-style: italic;
}

.character-stakes {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(139,69,19,0.1) 0%, rgba(184,134,11,0.1) 100%);
  border-left: 4px solid #b8860b;
  border-radius: 8px;
}

.character-stakes h4 {
  color: #b8860b;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.character-stakes p {
  color: #333;
  font-style: italic;
  margin: 0;
}

/* Lore/Object Specific */
.lore-intrigue-hook {
  background: rgba(139,69,19,0.9);
  padding: 20px 30px;
  border-radius: 15px;
  margin: 25px auto;
  max-width: 700px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(184,134,11,0.5);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.lore-intrigue-hook p {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  line-height: 1.4;
  text-align: center;
  font-style: italic;
}

.lore-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 10px;
}

.type-item {
  background: #dbeafe;
  color: #1e40af;
}

.type-location {
  background: #fee2e2;
  color: #991b1b;
}

.type-concept {
  background: #f3e8ff;
  color: #6b21a8;
}

.type-protagonist {
  background: #dbeafe;
  color: #1e40af;
}

.type-antagonist {
  background: #fee2e2;
  color: #991b1b;
}

.type-supporting {
  background: #f3e8ff;
  color: #6b21a8;
}

.category-weapon {
  background: #fef3c7;
  color: #92400e;
}

.category-artifact {
  background: #ddd6fe;
  color: #5b21b6;
}

/* Description Sections */
.character-description,
.lore-description,
.chapter-description {
  font-size: 1.1em;
  line-height: 1.9;
  color: #444;
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Summary Section */
.summary {
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.summary h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2em;
}

.content-with-links {
  font-size: 1.1em;
  line-height: 1.9;
  color: #444;
}

/* Next Episode/Chapter CTA */
.next-episode-cta {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
  border: 2px solid rgba(138, 43, 226, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Audio Player */
.episode-audio-player {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
}

.episode-audio-player h2 {
  color: white;
  margin-bottom: 20px;
}

.episode-audio-player audio {
  width: 100%;
  max-width: 600px;
}

/* CTA Sections */
.character-cta-section {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #8360c3 0%, #2ebf91 100%);
  border-radius: 15px;
  color: white;
  text-align: center;
}

.character-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.cta-card {
  background: rgba(255,255,255,0.15);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.cta-btn {
  background: #ff6b6b;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

/* Connections Sections */
.character-connections,
.lore-connections {
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.character-links,
.lore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.character-connection-link,
.lore-connection-link {
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s;
}

.character-connection-link:hover,
.lore-connection-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Lore Investigation CTA */
.lore-cta-section {
  margin: 40px 0;
  padding: 25px;
  background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
  border-radius: 15px;
  color: white;
  text-align: center;
  border: 3px solid #ffd700;
}

/* Chapter Header */
.chapter-header {
  text-align: center;
  margin: 40px 0;
}

.chapter-header h1 {
  font-size: 3em;
  margin: 0 0 10px 0;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.chapter-header .meta {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 20px;
}

/* Story Page Styles */
.story-header {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  margin: 40px 0;
  align-items: start;
}

.story-image {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.story-image:hover {
  transform: scale(1.02);
}

.story-info h1 {
  font-size: 3em;
  margin: 0 0 10px 0;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.story-info .author {
  font-size: 1.5em;
  color: #666;
  margin-bottom: 20px;
}

.story-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.meta-item {
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.meta-label {
  font-size: 0.9em;
  color: #666;
}

.meta-value {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
}

.story-description {
  font-size: 1.2em;
  line-height: 2;
  color: #555;
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.chapters-list {
  margin-top: 40px;
}

.chapters-list h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.chapter-item {
  padding: 20px;
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chapter-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.chapter-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.chapter-number {
  font-weight: bold;
  color: var(--primary-color);
  margin-right: 15px;
}

.chapter-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.chapter-desc {
  color: #666;
  font-size: 0.95em;
}

/* Gallery Images */
.gallery-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s;
  border: 4px solid var(--primary-color);
}

.gallery-image:hover {
  transform: scale(1.05);
}

/* Carousel for detail pages */
.character-carousel,
.lore-carousel,
.episode-carousel {
  margin: 40px 0;
}

.character-carousel .carousel,
.lore-carousel .carousel,
.episode-carousel .carousel {
  width: 100%;
}

.character-carousel .slick-slide,
.lore-carousel .slick-slide,
.episode-carousel .slick-slide {
  padding: 0 10px;
}

.carousel-item {
  position: relative;
}

