/* repertoire-modern.css - Modern professional repertoire page */

:root {
  --repertoire-accent: #d4af37;
  --repertoire-bg: #0a0a0a;
  --repertoire-card-bg: #1a1a1a;
  --repertoire-text: #e0e0e0;
  --repertoire-meta: #999;
  --repertoire-border: #333;
}

/* Modern Hero Section */
.repertoire-hero-modern {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1514 50%, #2a2220 100%);
  padding: 5rem 0 4rem;
  border-bottom: 3px solid var(--repertoire-accent);
  overflow: hidden;
}

.repertoire-hero-modern .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.repertoire-hero-modern .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.3) 100%);
}

.repertoire-hero-modern .container {
  position: relative;
  z-index: 1;
}

.repertoire-hero-modern .hero-content {
  text-align: center;
  margin-bottom: 3rem;
}

.repertoire-hero-modern .hero-title-modern {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.repertoire-hero-modern .hero-subtitle-modern {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* Old Hero Section (fallback) */
.repertoire-hero {
  background: linear-gradient(135deg, var(--repertoire-bg) 0%, #1a1514 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--repertoire-border);
}

.repertoire-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.repertoire-hero .hero-content {
  text-align: center;
  margin-bottom: 2rem;
}

.repertoire-hero .hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--repertoire-accent);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.05em;
}

.repertoire-hero .hero-title i {
  margin-right: 0.5rem;
}

.repertoire-hero .hero-subtitle {
  font-size: 1.1rem;
  color: var(--repertoire-meta);
  font-style: italic;
}

/* Stats */
.repertoire-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Filters Section */
.repertoire-filters {
  background: var(--repertoire-card-bg);
  border-bottom: 1px solid var(--repertoire-border);
  padding: 2rem 0;
}

.repertoire-filters .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filter-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.75rem 1.25rem;
  background: var(--repertoire-bg);
  border: 1px solid var(--repertoire-border);
  border-radius: 6px;
  color: var(--repertoire-meta);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-tab:hover {
  background: var(--repertoire-card-bg);
  border-color: var(--repertoire-accent);
  color: var(--repertoire-text);
}

.filter-tab.active {
  background: var(--repertoire-accent);
  color: var(--repertoire-bg);
  border-color: var(--repertoire-accent);
  font-weight: 600;
}

.filter-tab i {
  font-size: 1rem;
}

.search-container {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--repertoire-bg);
  border: 1px solid var(--repertoire-border);
  border-radius: 6px;
  color: var(--repertoire-text);
  font-size: 0.95rem;
}

.search-container input:focus {
  outline: none;
  border-color: var(--repertoire-accent);
}

.search-container i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--repertoire-meta);
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--repertoire-card-bg);
  border: 1px solid var(--repertoire-border);
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--repertoire-accent);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--repertoire-accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--repertoire-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* View Mode Switcher */
.repertoire-controls {
  background: var(--repertoire-card-bg);
  border-bottom: 1px solid var(--repertoire-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 60px;
  z-index: 100;
}

.repertoire-controls .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Timeline Sort Options */
.timeline-sort-options {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: var(--repertoire-bg);
  border: 1px solid var(--repertoire-border);
  border-radius: 6px;
  flex-wrap: wrap;
}

.timeline-sort-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--repertoire-meta);
  font-size: 0.9rem;
  white-space: nowrap;
  margin: 0;
}

.timeline-sort-label i {
  color: var(--repertoire-accent);
}

.timeline-sort-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-sort-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--repertoire-border);
  border-radius: 4px;
  color: var(--repertoire-meta);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.timeline-sort-btn:hover {
  background: var(--repertoire-card-bg);
  border-color: var(--repertoire-accent);
  color: var(--repertoire-text);
}

.timeline-sort-btn.active {
  background: var(--repertoire-accent);
  color: var(--repertoire-bg);
  border-color: var(--repertoire-accent);
  font-weight: 600;
}

.timeline-sort-btn i {
  font-size: 0.85rem;
}

.view-mode-switcher {
  display: flex;
  gap: 0.5rem;
  background: var(--repertoire-bg);
  padding: 0.25rem;
  border-radius: 6px;
  border: 1px solid var(--repertoire-border);
}

.view-mode-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--repertoire-meta);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-mode-btn:hover {
  background: var(--repertoire-card-bg);
  color: var(--repertoire-text);
}

.view-mode-btn.active {
  background: var(--repertoire-accent);
  color: var(--repertoire-bg);
  font-weight: 600;
}

.view-mode-btn i {
  font-size: 1rem;
}

/* Search */
.repertoire-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.repertoire-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--repertoire-bg);
  border: 1px solid var(--repertoire-border);
  border-radius: 6px;
  color: var(--repertoire-text);
  font-size: 0.95rem;
}

.repertoire-search input:focus {
  outline: none;
  border-color: var(--repertoire-accent);
}

.repertoire-search i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--repertoire-meta);
}

/* Content */
.repertoire-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.repertoire-section {
  display: none;
}

.repertoire-section.active {
  display: block;
}

/* Work Cards - Grid View (default) */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.work-card {
  background: var(--repertoire-card-bg);
  border: 1px solid var(--repertoire-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
  border-color: var(--repertoire-accent);
}

.work-card__header {
  margin-bottom: 1rem;
}

.work-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--repertoire-text);
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.work-card__subtitle {
  font-size: 0.9rem;
  color: var(--repertoire-meta);
  font-style: italic;
  margin: 0;
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.work-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  color: var(--repertoire-meta);
}

.work-card__meta-item i {
  color: var(--repertoire-accent);
  font-size: 0.8rem;
}

.work-card__composer {
  font-weight: 500;
  color: var(--repertoire-text);
}

.work-card__media {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--repertoire-border);
}

.work-card__media-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--repertoire-bg);
  border: 1px solid var(--repertoire-border);
  border-radius: 4px;
  color: var(--repertoire-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.work-card__media-link:hover {
  border-color: var(--repertoire-accent);
  color: var(--repertoire-accent);
}

.work-card__media-link--video i {
  color: #ff0000;
}

.work-card__media-link--audio i {
  color: #1db954;
}

.work-card__notes {
  margin-top: 1rem;
  padding: 0.875rem;
  background: var(--repertoire-bg);
  border-left: 3px solid var(--repertoire-accent);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--repertoire-meta);
  line-height: 1.5;
}

/* List View */
.works-grid.view-list {
  grid-template-columns: 1fr;
}

.view-list .work-card {
  display: grid;
  grid-template-columns: 2fr 3fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
}

.view-list .work-card__header {
  margin-bottom: 0;
}

.view-list .work-card__meta {
  margin-bottom: 0;
}

/* Timeline View */
.works-grid.view-timeline {
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.view-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--repertoire-border);
}

.view-timeline .work-card {
  margin-bottom: 2rem;
  width: calc(50% - 2rem);
  margin-left: 0;
  margin-right: auto;
  position: relative;
}

.view-timeline .work-card::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--repertoire-accent);
  border: 3px solid var(--repertoire-bg);
}

.view-timeline .work-card:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
}

.view-timeline .work-card:nth-child(even)::after {
  right: auto;
  left: -1.5rem;
}

/* Composer & Genre Cards */
.composers-grid,
.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.composer-card,
.genre-card {
  background: var(--repertoire-card-bg);
  border: 1px solid var(--repertoire-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.composer-card:hover,
.genre-card:hover {
  border-color: var(--repertoire-accent);
  transform: translateY(-2px);
}

.composer-header,
.genre-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.composer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--repertoire-accent);
  color: var(--repertoire-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.genre-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--repertoire-bg);
  border: 1px solid var(--repertoire-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.genre-icon i {
  font-size: 1.5rem;
  color: var(--repertoire-accent);
}

.composer-info,
.genre-info {
  flex: 1;
}

.composer-name,
.genre-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--repertoire-text);
  margin: 0 0 0.25rem 0;
}

.composer-years,
.genre-count {
  font-size: 0.9rem;
  color: var(--repertoire-meta);
  margin: 0;
}

.composer-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.composer-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  color: var(--repertoire-meta);
}

.composer-stat i {
  color: var(--repertoire-accent);
  font-size: 0.8rem;
}

.composer-expand-btn,
.genre-expand-btn {
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--repertoire-bg);
  border: 1px solid var(--repertoire-border);
  border-radius: 6px;
  color: var(--repertoire-text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.composer-expand-btn:hover,
.genre-expand-btn:hover {
  background: var(--repertoire-card-bg);
  border-color: var(--repertoire-accent);
  color: var(--repertoire-accent);
}

.composer-works,
.genre-works {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--repertoire-border);
}

.composer-works .works-grid,
.genre-works .works-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--repertoire-accent);
  margin: 0 0 0.5rem 0;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--repertoire-meta);
  margin: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--repertoire-meta);
}

.empty-state i {
  font-size: 3rem;
  color: var(--repertoire-border);
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .repertoire-hero-modern {
    padding: 3rem 0 2.5rem;
  }

  .repertoire-hero-modern .hero-title-modern {
    font-size: 2.5rem;
  }

  .repertoire-hero-modern .hero-subtitle-modern {
    font-size: 1.1rem;
  }

  .repertoire-hero {
    padding: 3rem 0 2rem;
  }

  .repertoire-hero .hero-title {
    font-size: 2rem;
  }

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

  .view-list .work-card {
    grid-template-columns: 1fr;
  }

  .view-timeline .work-card {
    width: 100%;
    margin-left: 2rem !important;
    margin-right: 0 !important;
  }

  .view-timeline::before {
    left: 0;
  }

  .view-timeline .work-card::after {
    left: -1.5rem !important;
    right: auto !important;
  }

  .repertoire-controls .container {
    flex-direction: column;
    align-items: stretch;
  }

  .repertoire-search {
    max-width: 100%;
  }

  .view-mode-switcher {
    justify-content: center;
  }
}

/* Critical iPhone breakpoint */
@media (max-width: 420px) {
  .repertoire-hero-modern .hero-title-modern {
    font-size: 1.8rem;
  }

  .repertoire-hero-modern .hero-subtitle-modern {
    font-size: 1rem;
  }

  .repertoire-hero .hero-title {
    font-size: 1.6rem;
  }
}
