/* Analog Controls CSS */

/* VU Meters */
.vu-meters-container {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.vu-meter {
  width: 100px;
  height: 100px;
  background: #222;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), inset 0 0 5px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
  border: 2px solid var(--primary);
}

.vu-needle {
  width: 4px;
  height: 50px;
  background: var(--primary);
  position: absolute;
  bottom: 30px;
  transform-origin: bottom center;
  transform: rotate(-30deg);
  animation: needle-bounce 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes needle-bounce {
  0% {
    transform: rotate(-30deg);
  }
  50% {
    transform: rotate(30deg);
  }
  100% {
    transform: rotate(-30deg);
  }
}

.vu-scale {
  width: 80px;
  height: 40px;
  border-radius: 40px 40px 0 0;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  position: absolute;
  bottom: 30px;
}

.vu-label {
  position: absolute;
  bottom: 10px;
  color: var(--primary);
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* Analog Control Knobs */
.analog-controls {
  display: flex;
  gap: 30px;
  margin: 15px 0;
}

.control-knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.knob {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #333, #222);
  border: 2px solid var(--primary);
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.knob::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 20px;
  background: var(--primary);
  transform: translate(-50%, -50%);
  transform-origin: bottom center;
  border-radius: 4px;
}

.knob:hover {
  transform: rotate(30deg);
}

.knob-label {
  color: var(--primary);
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
}

/* Equalizer */
.equalizer {
  display: flex;
  justify-content: center;
  gap: 5px;
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--primary);
}

.eq-bar {
  width: 10px;
  background: var(--primary);
  border-radius: 2px;
  animation: eq-animation 1.5s ease-in-out infinite;
}

.eq-bar:nth-child(1) {
  height: 15px;
  animation-delay: 0s;
}
.eq-bar:nth-child(2) {
  height: 25px;
  animation-delay: 0.2s;
}
.eq-bar:nth-child(3) {
  height: 35px;
  animation-delay: 0.4s;
}
.eq-bar:nth-child(4) {
  height: 25px;
  animation-delay: 0.6s;
}
.eq-bar:nth-child(5) {
  height: 15px;
  animation-delay: 0.8s;
}

@keyframes eq-animation {
  0%,
  100% {
    height: 10px;
  }
  50% {
    height: 30px;
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .vu-meters-container {
    top: 10px;
    right: 10px;
    gap: 10px;
  }

  .vu-meter {
    width: 60px;
    height: 60px;
  }

  .vu-needle {
    height: 30px;
    bottom: 20px;
  }

  .vu-scale {
    width: 50px;
    height: 25px;
    bottom: 20px;
  }

  .analog-controls {
    flex-direction: row;
    justify-content: center;
  }

  .equalizer {
    width: 100px;
  }
}
