/*
 * SalonPro X - Animations & Transitions
 * Professional animations with reduced-motion support
 */

/* Spin */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade In */
@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); }
}

/* Slide */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Pulse */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Shimmer - for loading states */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Glow */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(200, 164, 78, 0.3); }
    50% { box-shadow: 0 0 20px rgba(200, 164, 78, 0.6); }
}

/* Count Up animation trigger */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}
.animate-fade-in-down {
    animation: fadeInDown 0.4s ease forwards;
}
.animate-fade-in-left {
    animation: fadeInLeft 0.4s ease forwards;
}
.animate-fade-in-right {
    animation: fadeInRight 0.4s ease forwards;
}
.animate-slide-down {
    animation: slideDown 0.3s ease forwards;
}
.animate-slide-up {
    animation: slideUp 0.3s ease forwards;
}
.animate-scale-in {
    animation: scaleIn 0.3s ease forwards;
}
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}
.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Staggered animations for children */
.stagger-animate > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}
.stagger-animate > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-animate > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-animate > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-animate > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-animate > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-animate > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-animate > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-animate > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-animate > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-animate > *:nth-child(10) { animation-delay: 0.5s; }

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.hover-glow:hover {
    box-shadow: var(--shadow-gold);
}

/* Transition helper classes */
.transition-all {
    transition: all var(--transition-base);
}
.transition-transform {
    transition: transform var(--transition-base);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
