/**
 * About Page - Text Fold Styles
 * Smooth expand/collapse for artist bio text
 */

/* Fold container states */
.artist-bio__content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.artist-bio__content.is-collapsed {
  max-height: 280px; /* Approximately 2 paragraphs */
}

.artist-bio__content.is-expanded {
  max-height: 2000px; /* Large enough for all content */
}

/* Fold toggle button */
.artist-bio__fold-toggle {
  display: inline-block;
  margin-top: var(--space-4);
  padding: var(--space-2) 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--sage-700);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--sage-300);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.artist-bio__fold-toggle:hover {
  color: var(--sage-900);
  text-decoration-color: var(--sage-500);
}

.artist-bio__fold-toggle:focus-visible {
  outline: 2px solid var(--sage-600);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Dark theme support */
[data-theme="dark"] .artist-bio__fold-toggle {
  color: var(--sage-300);
  text-decoration-color: var(--sage-700);
}

[data-theme="dark"] .artist-bio__fold-toggle:hover {
  color: var(--sage-100);
  text-decoration-color: var(--sage-500);
}

[data-theme="dark"] .artist-bio__fold-toggle:focus-visible {
  outline-color: var(--sage-400);
}

/* Fade effect at bottom when collapsed */
.artist-bio__content.is-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.artist-bio__content.is-expanded::after {
  opacity: 0;
}

/* Position wrapper for absolute fade effect */
.artist-bio__fold-wrapper {
  position: relative;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .artist-bio__content.is-collapsed {
    max-height: 240px; /* Slightly less on mobile */
  }

  .artist-bio__fold-toggle {
    margin-top: var(--space-3);
    font-size: var(--text-xs);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .artist-bio__content {
    transition: none;
  }

  .artist-bio__fold-toggle {
    transition: none;
  }
}
