/* VoxInsight Animation System */

@keyframes pulse-violet {
  0% {
    box-shadow: 0 0 0 0 rgba(141, 89, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(141, 89, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(141, 89, 255, 0);
  }
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(222, 74, 64, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(222, 74, 64, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(222, 74, 64, 0);
  }
}

.pulse-signal {
  animation: pulse-red 2s infinite;
  border-radius: 50%;
}

.pulse-active {
  animation: pulse-violet 2s infinite;
}

@keyframes pulse-item {
  0% {
    border-color: var(--border-gray);
  }
  100% {
    border-color: var(--brand-violet);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-right {
  animation: slide-in-right 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animations for timeline items or agent panels */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .pulse-signal, .pulse-active, .timeline-item.active {
    animation: none !important;
    box-shadow: none !important;
  }
  
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
