/* Neon Cassette Default Album Art */
/* Rock and roll baby! 🎸 */

.neon-cassette-art {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000; /* Solid black background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
}

/* The cassette icon with gradient */
.neon-cassette-art::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%); /* Purple to pink like PLAYBACK logo */
  -webkit-mask-image: url('../assets/icons/cassette.png');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('../assets/icons/cassette.png');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.8)) drop-shadow(0 0 25px rgba(236, 72, 153, 0.6));
  animation: neonGlow 2s ease-in-out infinite alternate;
  z-index: 2;
}

/* Animated glow pulse */
@keyframes neonGlow {
  0% {
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.8)) drop-shadow(0 0 25px rgba(236, 72, 153, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 1)) drop-shadow(0 0 35px rgba(236, 72, 153, 0.8));
  }
}

/* Gentle bobbing animation */
@keyframes cassetteBob {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.05);
  }
}

/* Glowing overlay effect */
.neon-cassette-art::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Outer glow for extra pizzazz - purple/pink theme */
.neon-cassette-art {
  box-shadow: 
    0 0 20px rgba(168, 85, 247, 0.4),
    0 0 40px rgba(236, 72, 153, 0.3),
    0 0 60px rgba(168, 85, 247, 0.2),
    inset 0 0 30px rgba(168, 85, 247, 0.1);
}

/* Variation for smaller sizes (track items) */
.neon-cassette-art.compact {
  background-size: 150% 150%;
}

.neon-cassette-art.compact::before {
  width: 50%;
  height: 50%;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

/* Variation for mini player */
.neon-cassette-art.mini::before {
  width: 55%;
  height: 55%;
}

/* Extra sparkle on hover (for interactive elements) - purple/pink theme */
.track-item:hover .neon-cassette-art,
.folder-card:hover .neon-cassette-art {
  box-shadow: 
    0 0 30px rgba(168, 85, 247, 0.7),
    0 0 50px rgba(236, 72, 153, 0.5),
    0 0 75px rgba(168, 85, 247, 0.4),
    inset 0 0 40px rgba(168, 85, 247, 0.2);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Ensure it fills parent container properly */
.track-item-cover .neon-cassette-art,
.folder-card-image .neon-cassette-art,
.mini-player-art.neon-cassette-art,
.album-art.neon-cassette-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
}

/* For full player screen - no animations, just static and glowing */
.player-screen .album-art-container .neon-cassette-art {
  /* No bobbing - static cassette */
}

/* Playlist collage variation - each piece gets slightly different timing */
.playlist-collage .collage-item:nth-child(1) .neon-cassette-art {
  animation-delay: 0s;
}

.playlist-collage .collage-item:nth-child(2) .neon-cassette-art {
  animation-delay: 0.5s;
}

.playlist-collage .collage-item:nth-child(3) .neon-cassette-art {
  animation-delay: 1s;
}

.playlist-collage .collage-item:nth-child(4) .neon-cassette-art {
  animation-delay: 1.5s;
}

/* Performance optimization - reduce animation on low-power devices */
@media (prefers-reduced-motion: reduce) {
  .neon-cassette-art,
  .neon-cassette-art::before,
  .neon-cassette-art::after {
    animation: none !important;
  }
  
  .neon-cassette-art {
    background-position: 50% 50%;
  }
}

/* Dark mode enhancement (even darker, more dramatic) - purple/pink theme */
@media (prefers-color-scheme: dark) {
  .neon-cassette-art {
    box-shadow: 
      0 0 30px rgba(168, 85, 247, 0.6),
      0 0 60px rgba(236, 72, 153, 0.5),
      0 0 90px rgba(168, 85, 247, 0.4),
      inset 0 0 50px rgba(168, 85, 247, 0.15);
  }
}

/* Mobile optimization - slightly simpler animations */
@media (max-width: 768px) {
  .neon-cassette-art {
    animation-duration: 10s; /* Slower for battery life */
  }
  
  .neon-cassette-art::before {
    animation-duration: 4s;
  }
}
