/* ==========================================================================
   Doppelyar Micro-Animations
   ========================================================================== */

/* Microphone Pulsing Rings */
@keyframes micPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Voice Waveform Live Bar Animation */
@keyframes waveBar {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}

.waveform-active .wave-bar:nth-child(1) { animation: waveBar 0.9s ease-in-out infinite; }
.waveform-active .wave-bar:nth-child(2) { animation: waveBar 0.7s ease-in-out infinite 0.15s; }
.waveform-active .wave-bar:nth-child(3) { animation: waveBar 1.1s ease-in-out infinite 0.3s; }
.waveform-active .wave-bar:nth-child(4) { animation: waveBar 0.8s ease-in-out infinite 0.2s; }
.waveform-active .wave-bar:nth-child(5) { animation: waveBar 1.0s ease-in-out infinite 0.4s; }

/* Toast Fade & Slide */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
}

/* Subtle Shimmer for Badges */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-effect {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Page Fade-In */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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