/* Performers Carousel Styles */

.performers-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.performers-track {
  display: flex;
  gap: 2rem;
  width: max-content;
}

.performers-track-animate {
  animation: scroll-performers 40s linear infinite;
}

@keyframes scroll-performers {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 3));
  }
}

/* Pause animation on hover */
.performers-carousel:hover .performers-track-animate {
  animation-play-state: paused;
}

.performer-card {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.45);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.performer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(232, 121, 249, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.performer-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(232, 121, 249, 0.32);
  box-shadow: 
    0 0 0 1px rgba(232, 121, 249, 0.15),
    0 0 40px rgba(232, 121, 249, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 16px 48px rgba(0, 0, 0, 0.5);
}

.performer-card:hover::before {
  opacity: 1;
}

.performer-card > * {
  position: relative;
  z-index: 1;
}

.performer-card-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid rgba(232, 121, 249, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(232, 121, 249, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.performer-card:hover .performer-card-image {
  border-color: rgba(232, 121, 249, 0.45);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 48px rgba(232, 121, 249, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.performer-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.performer-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(232, 121, 249, 0.15),
    rgba(168, 85, 247, 0.1)
  );
  backdrop-filter: blur(8px);
}

.performer-card-icon {
  font-size: 4rem;
  font-weight: 700;
  color: rgba(232, 121, 249, 0.6);
  font-family: var(--font-display);
  text-shadow: 0 0 20px rgba(232, 121, 249, 0.4);
}

.performer-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s;
}

.performer-card:hover .performer-card-name {
  color: var(--fuchsia-bright);
}

/* Mystery performer effect */
.performer-card-mystery .performer-card-image {
  filter: blur(12px) brightness(0.6);
  border-color: rgba(251, 191, 36, 0.3);
}

.performer-card-mystery:hover .performer-card-image {
  filter: blur(10px) brightness(0.65);
  border-color: rgba(251, 191, 36, 0.5);
}

.performer-card-mystery .performer-card-placeholder {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.15),
    rgba(245, 158, 11, 0.1)
  );
  filter: blur(0);
}

.performer-card-mystery .performer-card-icon {
  color: rgba(251, 191, 36, 0.7);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  animation: pulse-mystery 2s ease-in-out infinite;
}

.performer-card-mystery .performer-card-name {
  color: var(--text-muted);
  font-style: italic;
}

@keyframes pulse-mystery {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .performer-card {
    width: 220px;
    padding: 1.25rem;
  }

  .performer-card-image {
    width: 140px;
    height: 140px;
  }

  .performer-card-name {
    font-size: 1.1rem;
  }

  .performer-card-icon {
    font-size: 3rem;
  }

  .performers-track {
    gap: 1.5rem;
  }

  @keyframes scroll-performers {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-100% / 3));
    }
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .performers-track-animate {
    animation: none;
  }

  .performer-card-mystery .performer-card-icon {
    animation: none;
  }
}

/* Loading state */
.performers-track .loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  width: 100%;
}

.performers-track .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(232, 121, 249, 0.2);
  border-top-color: var(--fuchsia);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
