/* animations.css - Efeitos visuais e micro-animações do Vídeo Tinkers */

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.7);
  }
}

@keyframes wave-bounce {
  0%, 100% {
    height: 6px;
  }
  50% {
    height: 28px;
  }
}

@keyframes shimmer-sweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.anim-fade-in {
  animation: fadeInScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glow-pill {
  position: relative;
  overflow: hidden;
}

.glow-pill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer-sweep 3s infinite;
}

.caption-karaoke-active {
  animation: word-pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes word-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.24);
  }
  100% {
    transform: scale(1.15);
  }
}
