/* ================================
   CUSTOM ANIMATIONS
   ================================ */

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

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

@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Smooth scroll transitions */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-transition-fast {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product image hover effect */
.product-image-container img {
  transition: transform 0.3s ease-out;
}

.product-image-container:hover img {
  transform: scale(1.05);
}

/* Button hover animations */
.btn-primary,
.btn-secondary,
.btn-danger {
  position: relative;
  overflow: hidden;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Modal animations */
.modal-enter {
  animation: slideUp 0.3s ease-out;
}

.modal-exit {
  animation: slideUp 0.3s ease-out reverse;
}

/* Toast notifications */
.toast {
  animation: slideInFromRight 0.3s ease-out;
}

.toast-exit {
  animation: slideInFromRight 0.3s ease-out reverse;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Floating animation */
.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pulse animation for badges */
.pulse-badge {
  animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Stagger animation for lists */
.stagger-item {
  animation: slideUp 0.5s ease-out both;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* Gradient text animation */
.gradient-text {
  background: linear-gradient(90deg, #27AE60, #E67E22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Underline animation */
.underline-animate {
  position: relative;
  text-decoration: none;
}

.underline-animate::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #27AE60;
  transition: width 0.3s ease;
}

.underline-animate:hover::after {
  width: 100%;
}

/* Responsive hover effects (desktop only) */
@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

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

  .hover-brighten:hover {
    filter: brightness(1.1);
  }
}
