/**
 * Repertoire Page Components CSS
 * Extracted from repertoire.ejs inline styles
 * Date: 2026-01-31
 */

/* ========== WORK MODAL ========== */
.work-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.work-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.work-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.work-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  gap: 1rem;
}

.work-modal-header h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin: 0;
  flex: 1;
}

.work-modal-close {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 2rem !important;
  font-weight: 300 !important;
  cursor: pointer !important;
  padding: 8px !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  opacity: 0.9 !important;
}

.work-modal-close:hover {
  color: #d4af37 !important;
  opacity: 1 !important;
  transform: rotate(90deg) scale(1.1) !important;
}

.work-modal-close i {
  color: #fff !important;
  font-size: 2rem !important;
}

.work-modal-body {
  padding: 2rem;
  max-height: calc(80vh - 120px);
  overflow-y: auto;
}

/* ========== CONCERT HISTORY ========== */
.concert-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.concert-history-item:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.concert-history-date {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 110px;
}

.concert-history-details {
  flex: 1;
  padding: 0 1rem;
}

.concert-history-title {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.concert-history-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.concert-history-icon {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: transform 0.3s, color 0.3s;
}

.concert-history-item:hover .concert-history-icon {
  transform: translateX(4px);
  color: var(--gold);
}

/* ========== CLICKABLE ELEMENTS ========== */
.rep-top-composer-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.rep-top-composer-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.25);
}

.rep-work-item-title,
.rep-work-title {
  cursor: pointer;
  transition: color 0.3s ease;
}

.rep-work-item-title:hover,
.rep-work-title:hover {
  color: var(--gold);
}

.rep-work-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.rep-work-item:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: translateX(4px);
}

.rep-work-row {
  cursor: pointer;
  transition: all 0.3s ease;
}

.rep-work-row:hover {
  background: rgba(212, 175, 55, 0.05);
  transform: translateX(4px);
}

.clickable-performer {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable-performer:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(4px);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== MODERN 2025 DESIGN ========== */

/* Hero Modern - Compact */
.rep-hero-modern {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.rep-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.rep-hero-text {
  flex: 1;
}

.rep-hero-modern .rep-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.5px;
}

.rep-hero-modern .rep-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Stats Inline */
.rep-stats-inline {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.rep-stat-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.rep-stat-inline .rep-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.rep-stat-inline .rep-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rep-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(212, 175, 55, 0.2);
}

/* Quick Access Cards */
.rep-quick-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.rep-access-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rep-access-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.rep-access-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  border-radius: 10px;
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.rep-access-card:hover .rep-access-icon {
  transform: scale(1.1) rotate(5deg);
}

.rep-access-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.rep-access-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ========== STICKY TABS NAVIGATION ========== */
.rep-tabs,
.rep-tabs-premium {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
  margin: 0 0 2rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rep-tabs-premium::-webkit-scrollbar,
.rep-tabs::-webkit-scrollbar {
  display: none;
}

.rep-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.rep-tab i {
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.rep-tab:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--gold);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.rep-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.rep-tab.active i {
  transform: scale(1.1);
}

.rep-tab-badge {
  padding: 0.25rem 0.625rem;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
}

.rep-tab.active .rep-tab-badge {
  background: var(--gold);
  color: #1a1a1a;
}

.rep-tab-count {
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

.rep-view {
  animation: fadeIn 0.4s ease;
}

/* ========== IMAGE PRESERVATION ========== */
/* Prevents images from being cut or deformed */

.rep-top-composer-portrait,
.rep-composer-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.discovery-card__media img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .work-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .work-modal-header {
    padding: 1.5rem;
  }

  .work-modal-body {
    padding: 1.5rem;
  }

  .concert-history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .concert-history-date {
    min-width: auto;
  }

  .concert-history-details {
    padding: 0;
  }

  .concert-history-icon {
    display: none;
  }

  .rep-hero-modern {
    padding: 2rem 0 1.5rem;
  }

  .rep-hero-content {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

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

  .rep-stats-inline {
    width: 100%;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }

  .rep-stat-inline .rep-stat-number {
    font-size: 1.75rem;
  }

  .rep-stat-inline .rep-stat-label {
    font-size: 0.75rem;
  }

  .rep-quick-access {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .rep-access-card {
    padding: 1.25rem;
  }

  .rep-tabs {
    margin: 0 -1rem 1.5rem;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .rep-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}
