/* ==========================================================================
   Trendy Finds For You - Animations
   ========================================================================== */

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@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); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes slideInUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes glow {
  0% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.6); }
  100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.2); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}


/* Animation Utility Classes */
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.7s; }
.stagger-8 { animation-delay: 0.8s; }

/* Hover Transitions */
.hover-lift { transition: transform var(--transition-normal); }
.hover-lift:hover { transform: translateY(-4px); }

.hover-glow { transition: box-shadow var(--transition-normal); }
.hover-glow:hover { box-shadow: var(--shadow-glow); }

.hover-scale { transition: transform var(--transition-normal); }
.hover-scale:hover { transform: scale(1.02); }

.hover-bright { transition: filter var(--transition-normal); }
.hover-bright:hover { filter: brightness(1.1); }

/* Page Transition */
.page-enter {
  animation: fadeIn 0.8s ease forwards;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Flashy Popup Animation */
@keyframes bounce-slight {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering for lists */
.reveal-stagger:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger:nth-child(6) { transition-delay: 0.6s; }
@keyframes floatAnim {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
.floating-box {
  animation: floatAnim 5s ease-in-out infinite;
}

@keyframes cursorClick {
  0% { transform: translate(300px, 200px) scale(1.5); opacity: 0; }
  10% { opacity: 1; }
  25% { transform: translate(-220px, -20px) scale(1); opacity: 1; }
  35% { transform: translate(-220px, -20px) scale(0.85); opacity: 1; }
  45% { transform: translate(-220px, -20px) scale(1); opacity: 1; }
  60% { transform: translate(-10px, -10px) scale(1); opacity: 1; }
  70% { transform: translate(-10px, -10px) scale(0.85); opacity: 1; }
  80% { transform: translate(-10px, -10px) scale(1); opacity: 1; }
  90% { transform: translate(-10px, -10px) scale(1); opacity: 1; }
  100% { transform: translate(-10px, -10px) scale(1); opacity: 0; }
}
.animated-cursor {
  position: absolute;
  font-size: 2.5rem;
  z-index: 100;
  animation: cursorClick 6s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.5));
}
