/* La Bayadère Page Specific Styles */

/* Ballet Info Header */
.ballet-info-header {
  text-align: center;
  margin: 2rem 0 3rem 0;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08),
    rgba(118, 75, 162, 0.08)
  );
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.ballet-title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.ballet-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

.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(--card-background);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  text-align: center;
}

.detail-item strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================
   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 rgba(102, 126, 234, 0.15);
}

.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 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.title-ornament {
  color: var(--accent-color);
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Ballet Image Section */
.ballet-image-section {
  margin: 2rem 0;
  text-align: center;
}

.ballet-hero-image {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.image-caption {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 1rem auto 0;
}

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

.story-content {
  max-width: 900px;
  margin: 0 auto;
}

.content-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color), #d67324);
  border-radius: 0 2px 2px 0;
}

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

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

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

.act-section h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  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: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #d67324);
  border-radius: 2px;
}

.shades-section {
  position: relative;
}

.shades-section::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.03) 0%,
    rgba(118, 75, 162, 0.03) 100%
  );
  border-radius: 20px;
  z-index: -1;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.shades-section h3 {
  color: #667eea;
}

.shades-section h3::after {
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.shades-section .content-card::before {
  background: linear-gradient(180deg, #667eea, #764ba2);
}

/* Act-specific styling */
.act-one {
  position: relative;
}

.act-one::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(
    135deg,
    rgba(72, 187, 120, 0.03) 0%,
    rgba(56, 178, 172, 0.03) 100%
  );
  border-radius: 16px;
  z-index: -1;
  border: 1px solid rgba(72, 187, 120, 0.08);
}

.act-one h3 {
  color: #48bb78;
}

.act-one h3::after {
  background: linear-gradient(90deg, #48bb78, #38b2ac);
}

.act-one .content-card::before {
  background: linear-gradient(180deg, #48bb78, #38b2ac);
}

.act-two {
  position: relative;
}

.act-two::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(
    135deg,
    rgba(237, 137, 54, 0.03) 0%,
    rgba(214, 115, 36, 0.03) 100%
  );
  border-radius: 16px;
  z-index: -1;
  border: 1px solid rgba(237, 137, 54, 0.08);
}

.act-two h3 {
  color: var(--accent-color);
}

.act-two h3::after {
  background: linear-gradient(90deg, var(--accent-color), #d67324);
}

.act-two .content-card::before {
  background: linear-gradient(180deg, var(--accent-color), #d67324);
}

.act-four {
  position: relative;
}

.act-four::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(
    135deg,
    rgba(153, 27, 27, 0.03) 0%,
    rgba(124, 45, 18, 0.03) 100%
  );
  border-radius: 16px;
  z-index: -1;
  border: 1px solid rgba(153, 27, 27, 0.08);
}

.act-four h3 {
  color: #991b1b;
}

.act-four h3::after {
  background: linear-gradient(90deg, #991b1b, #7c2d12);
}

.act-four .content-card::before {
  background: linear-gradient(180deg, #991b1b, #7c2d12);
}

/* Cinderella-specific styling */
.magical-section {
  position: relative;
}

.magical-section::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.03) 0%,
    rgba(139, 92, 246, 0.03) 100%
  );
  border-radius: 16px;
  z-index: -1;
  border: 1px solid rgba(168, 85, 247, 0.08);
}

.magical-section h3 {
  color: #a855f7;
}

.magical-section h3::after {
  background: linear-gradient(90deg, #a855f7, #8b5cf6);
}

.magical-section .content-card::before {
  background: linear-gradient(180deg, #a855f7, #8b5cf6);
}

.act-finale {
  position: relative;
}

.act-finale::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.03) 0%,
    rgba(245, 158, 11, 0.03) 100%
  );
  border-radius: 16px;
  z-index: -1;
  border: 1px solid rgba(251, 191, 36, 0.08);
}

.act-finale h3 {
  color: #fbbf24;
}

.act-finale h3::after {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.act-finale .content-card::before {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

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

.character-card {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  position: relative;
  text-align: center;
}

.character-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #d67324);
  border-radius: 12px 12px 0 0;
}

.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: linear-gradient(
    135deg,
    rgba(237, 137, 54, 0.05),
    rgba(237, 137, 54, 0.02)
  );
  border: 2px solid rgba(237, 137, 54, 0.1);
}

.music-highlight::before {
  background: linear-gradient(180deg, var(--accent-color), #d67324);
  width: 6px;
}

.legacy-highlight {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05),
    rgba(118, 75, 162, 0.05)
  );
  border: 2px solid rgba(102, 126, 234, 0.1);
}

.legacy-highlight::before {
  background: linear-gradient(180deg, #667eea, #764ba2);
  width: 6px;
}

.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(102, 126, 234, 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), #d67324);
  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-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 {
    margin: 1rem;
    padding: 0.6rem 1rem;
  }

  .content-card {
    padding: 1.5rem;
  }

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

  .characters-grid {
    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;
  }
}
