/* Shared styles for choreographer / company / work / news detail pages */

/* Profile Info Header */
.ballet-info-header {
  text-align: center;
  margin: 2rem 0 3rem 0;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(30, 37, 48, 0.06),
    rgba(190, 18, 60, 0.06)
  );
  border-radius: 20px;
  border: 1px solid rgba(30, 37, 48, 0.12);
}

.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: 900px;
  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;
}

/* ===================================
   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(30, 37, 48, 0.12);
}

.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;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.story-tag:hover,
.story-tag:focus-visible {
  filter: brightness(0.94);
}

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

.story-tag[data-category="technique"] {
  background: #fdf0f5;
  color: #9d174d;
  border: 1px solid #f3c6dc;
}

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

.story-tag[data-category="region"] {
  background: #f3f0fd;
  color: #4c2a8a;
  border: 1px solid #d3c6f3;
}

/* ===================================
   Hero Image
   =================================== */
.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;
}

.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), #8f0e2e);
  border-radius: 2px;
}

/* Small info cards — notable works, repertoire highlights, related premieres */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

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

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

.info-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

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

/* ===================================
   Prev/Next profile navigation
   =================================== */
.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(30, 37, 48, 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), #8f0e2e);
  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;
  }

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

  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-center {
    order: -1;
  }
}

@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;
  }

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