/* ============================================
   PRIDE — Animations & Effects
   Tasteful pride-themed motion
   ============================================ */

/* --- Ambient floating orbs (background) --- */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite alternate;
  opacity: 0.15;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Floating pride particles --- */
.pride-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.pride-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  animation: prideFloat 15s infinite ease-in-out;
}

/* Pride stripe colors */
.pride-particle:nth-child(6n+1) { background: #FF0018; box-shadow: 0 0 8px #FF0018; }
.pride-particle:nth-child(6n+2) { background: #FFA52C; box-shadow: 0 0 8px #FFA52C; }
.pride-particle:nth-child(6n+3) { background: #FFFF41; box-shadow: 0 0 8px #FFFF41; }
.pride-particle:nth-child(6n+4) { background: #008018; box-shadow: 0 0 8px #008018; }
.pride-particle:nth-child(6n+5) { background: #0000F9; box-shadow: 0 0 8px #0000F9; }
.pride-particle:nth-child(6n+0) { background: #86007D; box-shadow: 0 0 8px #86007D; }

@keyframes prideFloat {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
    transform: translateY(90vh) rotate(45deg) scale(1);
  }
  50% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.3;
    transform: translateY(-10vh) rotate(315deg) scale(0.8);
  }
  100% {
    transform: translateY(-15vh) rotate(360deg) scale(0);
    opacity: 0;
  }
}

/* --- Cursor sparkles --- */
.sparkle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: sparkleAnim 0.6s ease-out forwards;
}

@keyframes sparkleAnim {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(0) translate(var(--tx, 0px), var(--ty, -20px));
    opacity: 0;
  }
}

/* --- Track hover: pride glow effect --- */
.track {
  transition: all 0.25s ease;
}

.track:hover {
  box-shadow: 0 0 24px rgba(134, 0, 125, 0.25),
              0 0 48px rgba(255, 0, 24, 0.1),
              0 0 72px rgba(0, 128, 24, 0.1);
  transform: translateX(4px);
}

/* --- Star rating hover pulse --- */
.star {
  transition: transform 0.15s ease, color 0.15s ease;
}

.star:hover {
  transform: scale(1.3) rotate(10deg);
}

/* --- Nav link subtle glow on hover --- */
.nav-link:hover {
  text-shadow: 0 0 12px currentColor;
  box-shadow: 0 0 12px rgba(134, 0, 125, 0.3);
}

/* --- Album art subtle pulse --- */
.album-art-img {
  animation: artPulse 4s ease-in-out infinite;
}

@keyframes artPulse {
  0%, 100% {
    filter: drop-shadow(0 0 16px rgba(134, 0, 125, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(134, 0, 125, 0.7));
  }
}

/* --- Footer rainbow shimmer --- */
.footer-flag span {
  animation: flagShimmer 3s ease-in-out infinite;
}

.footer-flag span:nth-child(1) { animation-delay: 0s; }
.footer-flag span:nth-child(2) { animation-delay: 0.5s; }
.footer-flag span:nth-child(3) { animation-delay: 1s; }
.footer-flag span:nth-child(4) { animation-delay: 1.5s; }
.footer-flag span:nth-child(5) { animation-delay: 2s; }
.footer-flag span:nth-child(6) { animation-delay: 2.5s; }

@keyframes flagShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --- Page entrance animation --- */
main {
  animation: pageEnter 0.6s ease-out;
}

@keyframes pageEnter {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Ambient gradient shift (very subtle) --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(134, 0, 125, 0.08) 0%,
    transparent 50%
  ),
  radial-gradient(
    ellipse at 70% 80%,
    rgba(0, 128, 24, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
  animation: ambientShift 20s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0% {
    background-position: 0% 0%, 100% 100%;
  }
  100% {
    background-position: 100% 100%, 0% 0%;
  }
}