/* ============================================
   JUKEBOX STYLES
   Visual styling for jukebox buttons and animations
   ============================================ */

/* ============================================
   FONT IMPORTS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Subrayada:wght@400;700&display=swap');

/* ============================================
   BUTTON CONTAINERS
   ============================================ */

.player-buttons {
  display: flex;
  gap: 10px;
}

.song-actions {
  margin-left: auto;
  display: flex;
  gap: 5px;
  align-items: center;
}

/* ============================================
   BUTTON BASE STYLES
   ============================================ */

.play-button,
.queue-move-button,
.remove-button,
.add-to-queue-button {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.next-button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-right: 10px;
}

/* ============================================
   BUTTON COLORS & STATES
   ============================================ */

.next-button {
  background-color: transparent;
  color: var(--_colours---black);
}

.next-button:hover {
  background-color: transparent;
}

/* White styling for next button in player controls */
.player-controls .player-buttons .next-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #fff;
}

.player-controls .player-buttons .next-button svg {
  fill: #fff;
}

.queue-move-button {
  background-color: transparent;
  color: var(--_colours---black);
}

.queue-move-button:hover {
  background-color: transparent;
}

.queue-move-button.greyed-out {
  opacity: 0.2;
  cursor: default;
  background-color: transparent;
}

.queue-move-button.greyed-out:hover {
  background-color: transparent;
}

.play-button {
  background: transparent;
  color: var(--_colours---black);
  margin-left: 5px;
}

.remove-button {
  background: transparent;
  color: var(--_colours---black);
  margin-left: auto;
}

.add-to-queue-button {
  background-color: transparent;
  color: var(--_colours---black);
  border-radius: 4px;
  margin-left: auto;
}

/* ============================================
   BUTTON ICON SIZES
   ============================================ */

.play-button svg,
.queue-move-button svg,
.remove-button svg,
.add-to-queue-button svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.next-button svg {
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-50px); }
}

@keyframes moveUpEffect {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@keyframes moveDownEffect {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

@keyframes playerPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* Animation utility classes */
.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.animate-move-up {
  animation: moveUpEffect 0.4s ease-in-out;
}

.animate-move-down {
  animation: moveDownEffect 0.4s ease-in-out;
}

.animate-player-pulse {
  animation: playerPulse 0.8s ease-out;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile (540px and below) */
@media only screen and (max-width: 540px) {
  .play-button,
  .queue-move-button,
  .remove-button,
  .add-to-queue-button {
    width: 18px;
    height: 18px;
  }

  .play-button svg,
  .queue-move-button svg,
  .remove-button svg,
  .add-to-queue-button svg {
    width: 18px;
    height: 18px;
  }
}