/**
 * Animations Stylesheet
 * Page transitions, hover effects, and animation keyframes
 */

/* Page Transition States */
.content.page-exit {
  opacity: 0;
  transform: translateY(-8px);
}

.content.page-enter {
  opacity: 0;
  transform: translateY(12px);
}

.content.page-enter-active {
  opacity: 1;
  transform: translateY(0);
}

/* Base transition for content */
.content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Generic fade animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Scale animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Hover effect classes */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Stagger animation helper classes */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Animation utility classes */
.animate-fadeIn {
  animation: fadeIn 0.3s ease forwards;
}

.animate-fadeInUp {
  animation: fadeInUp 0.4s ease forwards;
}

.animate-fadeInDown {
  animation: fadeInDown 0.4s ease forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.3s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.4s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.4s ease forwards;
}

/* Color cycling animation (for chat FAB button) */
@keyframes colorCycle {
  0% { color: #6366f1; }
  20% { color: #8b5cf6; }
  40% { color: #ec4899; }
  60% { color: #f59e0b; }
  80% { color: #10b981; }
  100% { color: #6366f1; }
}

.animate-colorCycle {
  animation: colorCycle 8s ease-in-out infinite;
}
