/* La Bayadère Page Specific Styles */

/* Ballet Info Header */
.ballet-info-header {
  text-align: center;
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 2.25rem 2.5rem;
  background: var(--card-background);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
}

.ballet-title {
  font-size: 2.9rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.ballet-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.ballet-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.detail-item {
  background: var(--surface-muted);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

.detail-item strong {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===================================
   Story Tags
   =================================== */
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.story-tag {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.story-tag[data-category="era"] {
  background: #e8f4fd;
  color: #1a5f8a;
  border: 1px solid #b8d9f0;
}

.story-tag[data-category="composer"] {
  background: #fef3e2;
  color: #7a4800;
  border: 1px solid #f5d5a0;
}

.story-tag[data-category="mood"] {
  background: #f0faf0;
  color: #2a6a2a;
  border: 1px solid #b0ddb0;
}

.story-tag[data-category="theme"] {
  background: #fdf0f5;
  color: #872050;
  border: 1px solid #e5b0c8;
}

/* Enhanced Section Titles */
.section-title {
  margin-bottom: 1.75rem;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.8rem auto 0;
  border-radius: 2px;
  background: var(--accent-color);
}

/* The ornaments in the markup read as clutter at this scale. */
.title-ornament {
  display: none;
}

/* Ballet Image Section */
.ballet-image-section {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.ballet-hero-image {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
}

/* Plain caption line under the photo rather than a boxed card */
.image-caption {
  max-width: 720px;
  margin: 0.75rem auto 0;
}

.image-caption p {
  margin: 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.5;
}

.story-content {
  max-width: var(--prose-width);
  margin: 0 auto;
}

/* Card grids inside an article may use a little more width than prose */
.story-content .characters-grid {
  margin-left: -2rem;
  margin-right: -2rem;
}

.content-card {
  background: var(--card-background);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-color);
}



.content-card p {
  margin-bottom: 1.1rem;
  line-height: 1.75;
  color: var(--text-color);
  font-size: 1.05rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.act-section {
  margin: 2.75rem 0;
}

.act-section h3 {
  color: var(--primary-color);
  font-size: 1.55rem;
  margin-bottom: 1.4rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.act-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Exactly four cards: 2x2 instead of a 3 + 1 orphan row */
.characters-grid:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.character-card {
  background: var(--card-background);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-color);
  text-align: center;
}



.character-card h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.character-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.music-highlight {
  background: #fdf9f9;
  border-color: rgba(122, 35, 51, 0.14);
  border-left-color: var(--accent-color);
}



.story-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 2rem 0;
  flex-wrap: wrap;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.2rem 1.8rem;
  background: linear-gradient(
    135deg,
    var(--card-background) 0%,
    rgba(122, 35, 51, 0.02) 100%
  );
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  font-weight: 600;
  box-shadow: var(--shadow-medium);
  min-width: 160px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #9c3a49);
  border-radius: 15px 15px 0 0;
}

.nav-icon {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.nav-text {
  font-size: 1rem;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ballet-ornament {
  font-size: 2rem;
  color: var(--accent-color);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .ballet-title {
    font-size: 2.2rem;
  }

  .ballet-info-header {
    padding: 1.75rem 1.25rem;
  }

  .story-content .characters-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .ballet-subtitle {
    font-size: 1.1rem;
  }

  .ballet-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 1rem;
  }

  .ballet-hero-image {
    height: 300px;
    border-radius: 12px;
  }

  .image-caption {
    padding: 0 0.5rem;
  }

  .content-card {
    padding: 1.4rem 1.25rem;
  }

  .act-section h3 {
    font-size: 1.4rem;
  }

  .characters-grid,
  .characters-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: 1fr;
  }

  .story-navigation {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-center {
    order: -1;
  }

  .section-title {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .title-ornament {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ballet-title {
    font-size: 1.8rem;
  }

  .ballet-info-header {
    padding: 1.5rem;
    margin: 1rem 0 2rem 0;
  }

  .ballet-details {
    grid-template-columns: 1fr;
  }

  .ballet-hero-image {
    height: 250px;
    border-radius: 8px;
  }

  .content-card {
    padding: 1.2rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .nav-button {
    padding: 1rem 1.2rem;
    min-width: 140px;
  }
}
