/* ============================================
   Dual Vinyl Disc Selector Styles
   ============================================ */

/* Disc Selector Section */
.disc-selector,
.vinyl-section {
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.disc-selector::before,
.vinyl-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.disc-selector__title {
  font-family: 'Dosis', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Disc Container */
.disc-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* Individual Vinyl Disc */
.vinyl-disc {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.3s ease;
  outline: none;
  border-radius: 8px;
}

.vinyl-disc:hover {
  transform: scale(1.05);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(163, 53, 58, 0.2);
}

.vinyl-disc:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
  border-radius: 12px;
  box-shadow: 
    0 0 0 1px rgba(163, 53, 58, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.3);
}

.vinyl-disc:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.vinyl-disc__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Inactive State - Smaller & Faded */
.vinyl-disc[data-active="false"] {
  opacity: 0.4;
  transform: scale(0.7);
  filter: grayscale(50%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vinyl-disc[data-active="false"]:hover {
  opacity: 0.7;
  transform: scale(0.75);
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

/* Active State - Full Size */
.vinyl-disc[data-active="true"] {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Vinyl Record */
.vinyl-record {
  width: clamp(200px, 30vw, 320px);
  height: clamp(200px, 30vw, 320px);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, #000 60%, #333 100%);
  box-shadow: 
    0 0 0 2px rgba(0,0,0,0.8),
    0 10px 40px rgba(0,0,0,0.6),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease, box-shadow 0.3s ease;
}

/* Rotation Animation */
.vinyl-disc[data-active="true"] .vinyl-record {
  animation: vinyl-spin 4s linear infinite;
}

@keyframes vinyl-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Keep active disc spinning when hovered. Only pause rotation on hover for non-active discs (no-op by default). */
.vinyl-disc:not([data-active="true"]):hover .vinyl-record {
  animation-play-state: paused;
}

/* Outer Ring */
.vinyl-ring--outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(40, 40, 40, 0.8);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

/* Grooves */
.vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(50, 50, 50, 0.4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.groove:nth-child(1) { width: 88%; height: 88%; }
.groove:nth-child(2) { width: 82%; height: 82%; opacity: 0.8; }
.groove:nth-child(3) { width: 76%; height: 76%; opacity: 0.6; }
.groove:nth-child(4) { width: 70%; height: 70%; opacity: 0.7; }
.groove:nth-child(5) { width: 64%; height: 64%; opacity: 0.5; }
.groove:nth-child(6) { width: 58%; height: 58%; opacity: 0.6; }
.groove:nth-child(7) { width: 52%; height: 52%; opacity: 0.4; }
.groove:nth-child(8) { width: 46%; height: 46%; opacity: 0.5; }

/* Center Label */
.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: bold;
  box-shadow: 
    0 0 0 4px #0a0a0a,
    0 0 20px rgba(0,0,0,0.8),
    inset 0 2px 10px rgba(255,255,255,0.1);
}

.vinyl-label__inner {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Disc-specific label colors */
.vinyl-disc[data-disc="disc_1"] .vinyl-label__inner {
  background: radial-gradient(circle at 40% 40%, 
    #a83448, 
    #732435, 
    #4a1822);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

.vinyl-disc[data-disc="disc_2"] .vinyl-label__inner {
  background: radial-gradient(circle at 40% 40%, 
    #2a6bb8, 
    #1a5490, 
    #0d3660);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

/* Label Text */
.vinyl-label__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-family: 'Dosis', sans-serif;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  padding: 0.5rem;
}

.label-title {
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.label-subtitle {
  font-size: clamp(0.65rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.9;
  line-height: 1;
}

/* Disc Info Below Vinyl */
.vinyl-info {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vinyl-disc[data-active="true"] .vinyl-info {
  opacity: 1;
  transform: translateY(0);
}

.vinyl-info__name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.vinyl-disc[data-disc="disc_1"] .vinyl-info__name {
  /* Kj's choice - warm red accent */
  color: #d84860;
}

.vinyl-disc[data-disc="disc_2"] .vinyl-info__name {
  /* Corporate style - muted blue accent */
  color: #4a8fd8;
}

.vinyl-info__tracks {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

/* Glow Effects on Hover */
.vinyl-disc[data-active="true"]:hover .vinyl-record {
  transform: scale(1.02);
}

.vinyl-disc[data-disc="disc_1"][data-active="true"]:hover .vinyl-record {
  box-shadow: 
    0 0 0 2px rgba(0,0,0,0.8),
    0 10px 50px rgba(115, 36, 53, 0.4),
    0 0 60px rgba(216, 72, 96, 0.3),
    inset 0 0 30px rgba(0,0,0,0.8);
}

.vinyl-disc[data-disc="disc_2"][data-active="true"]:hover .vinyl-record {
  box-shadow: 
    0 0 0 2px rgba(0,0,0,0.8),
    0 10px 50px rgba(26, 84, 144, 0.4),
    0 0 60px rgba(74, 143, 216, 0.3),
    inset 0 0 30px rgba(0,0,0,0.8);
}

/* Center Hole */
.vinyl-label::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15%;
  height: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, #0a0a0a, #1a1a1a);
  box-shadow: 
    0 0 0 2px #2a2a2a,
    inset 0 2px 8px rgba(0,0,0,0.9);
  z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .disc-container {
    gap: 3rem;
  }
  
  .disc-selector {
    padding: 3rem 1rem 2rem;
  }
  
  .vinyl-disc[data-active="false"] {
    transform: scale(0.6);
  }
  
  .vinyl-disc[data-active="false"]:hover {
    transform: scale(0.65);
  }
}

@media (max-width: 480px) {
  .disc-container {
    gap: 2rem;
  }
  
  .vinyl-record {
    width: clamp(160px, 40vw, 200px);
    height: clamp(160px, 40vw, 200px);
  }
}

/* Loading Animation */
.vinyl-disc.loading .vinyl-record {
  animation: vinyl-spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
