/* ===== ANIMATIONS & KEYFRAMES ===== */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Recording Pulse Animation */
@keyframes recordingPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

/* Wave Animation */
.wave-animation {
  display: none;
  padding: 1rem;
}

.wave-animation.active {
  display: flex;
  animation: waveContainer 0.5s ease-out;
}

@keyframes waveContainer {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wave-bar {
  width: 6px;
  height: 20px;
  background: var(--background-gradient);
  border-radius: 3px;
  animation: wave 1.2s infinite ease-in-out;
  margin: 0 2px;
  box-shadow: 0 2px 8px rgba(36, 20, 67, 0.3);
}

.wave-bar:nth-child(1) {
  animation-delay: 0s;
}
.wave-bar:nth-child(2) {
  animation-delay: 0.1s;
}
.wave-bar:nth-child(3) {
  animation-delay: 0.2s;
}
.wave-bar:nth-child(4) {
  animation-delay: 0.3s;
}
.wave-bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  40%,
  100% {
    transform: scaleY(1);
    opacity: 0.7;
  }
  20% {
    transform: scaleY(2.5);
    opacity: 1;
  }
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Scale Up Animation */
@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Pop In Animation */
@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Blink Animation */
@keyframes blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.95);
  }
}

/* Blink Fast Animation */
@keyframes blinkFast {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  }
  50% {
    opacity: 0.3;
    transform: scale(0.9);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
  }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6);
  }
}

/* Pulse Warning Animation */
@keyframes pulseWarning {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
  }
  50% {
    box-shadow: 0 10px 40px rgba(245, 87, 108, 0.8);
  }
}

/* Spin Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
