/* colors.css imported globally via style.css */
/* ==========================================================================
   _animations.css – Global Keyframes and Animation Utilities
   ========================================================================== */

/* ==========================================================================
   Table of Contents
   ========================================================================== */
/**
 * 1.0 Fade In / Fade Out
 * 2.0 Slide Animations
 *     2.1 Slide In Up
 *     2.2 Slide In Left
 * 3.0 Emphasis Animations
 *     3.1 Pulse
 *     3.2 Bounce
 */

/* ==========================================================================
   1.0 Fade In / Fade Out
   ========================================================================== */

/* Fade In */
.fade-in {
  animation: fadeIn var(--anim-duration-fast, 0.5s) var(--anim-ease-standard, ease-in-out) forwards;
  will-change: opacity;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Fade Out */
.fade-out {
  animation: fadeOut var(--anim-duration-fast, 0.5s) var(--anim-ease-standard, ease-in-out) forwards;
  will-change: opacity;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* ==========================================================================
   2.0 Slide Animations
   ========================================================================== */

/* 2.1 Slide In Up */
/* Slide In Up */
.slide-in-up {
  animation: slideInUp var(--anim-duration-medium, 0.6s) var(--anim-ease-out, ease-out) forwards;
  will-change: transform, opacity;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2.2 Slide In Left */
/* Slide In Left */
.slide-in-left {
  animation: slideInLeft var(--anim-duration-medium, 0.6s) var(--anim-ease-out, ease-out) forwards;
  will-change: transform, opacity;
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   3.0 Emphasis Animations
   ========================================================================== */

/* 3.1 Pulse */
/* Pulse */
.pulse {
  animation: pulse var(--anim-duration-slow, 1.5s) var(--anim-ease-in-out, ease-in-out) infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--kaplon-red);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 10px 4px var(--kaplon-red);
    transform: scale(1.05);
  }
}

/* 3.2 Bounce */
/* Bounce */
.bounce {
  animation: bounce var(--anim-duration-bounce, 1s) var(--anim-ease-bounce, ease) infinite;
  will-change: transform;
}

/* ==========================================================================
   4.0 Utilities & Reduced Motion
   ========================================================================== */

/* Utilities */
.anim-none {
  animation: none !important;
}

.anim-paused {
  animation-play-state: paused !important;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {

  .fade-in,
  .fade-out,
  .slide-in-up,
  .slide-in-left,
  .pulse,
  .bounce {
    transition: none !important;
    animation: none !important;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}