/* assets/css/animations.css */

/* ==========================================================================
   KEYFRAMES ANIMATIONS
   ========================================================================== */
@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 slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ==========================================================================
   ANIMATION CLASSES
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease;
}

.fade-in-down {
    animation: fadeInDown 0.5s ease;
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

.spin {
    animation: spin 1s linear infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ==========================================================================
   TRANSITION UTILITIES
   ========================================================================== */
.transition-all {
    transition: all var(--transition);
}

.transition-colors {
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.transition-transform {
    transition: transform var(--transition);
}

.transition-opacity {
    transition: opacity var(--transition);
}

.transition-shadow {
    transition: box-shadow var(--transition);
}

.transition-fast {
    transition: all var(--transition-fast);
}

.transition-slow {
    transition: all var(--transition-slow);
}

/* ==========================================================================
   ANIMATION DELAYS
   ========================================================================== */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* ==========================================================================
   ANIMATION DURATIONS
   ========================================================================== */
.duration-100 { animation-duration: 0.1s; }
.duration-200 { animation-duration: 0.2s; }
.duration-300 { animation-duration: 0.3s; }
.duration-400 { animation-duration: 0.4s; }
.duration-500 { animation-duration: 0.5s; }
.duration-600 { animation-duration: 0.6s; }
.duration-700 { animation-duration: 0.7s; }
.duration-800 { animation-duration: 0.8s; }
.duration-900 { animation-duration: 0.9s; }
.duration-1000 { animation-duration: 1s; }
.duration-1500 { animation-duration: 1.5s; }
.duration-2000 { animation-duration: 2s; }

/* ==========================================================================
   ANIMATION FILL MODES
   ========================================================================== */
.animation-forwards {
    animation-fill-mode: forwards;
}

.animation-backwards {
    animation-fill-mode: backwards;
}

.animation-both {
    animation-fill-mode: both;
}

.animation-none {
    animation-fill-mode: none;
}

/* ==========================================================================
   ANIMATION TIMING FUNCTIONS
   ========================================================================== */
.animation-ease {
    animation-timing-function: ease;
}

.animation-ease-in {
    animation-timing-function: ease-in;
}

.animation-ease-out {
    animation-timing-function: ease-out;
}

.animation-ease-in-out {
    animation-timing-function: ease-in-out;
}

.animation-linear {
    animation-timing-function: linear;
}

.animation-cubic-bezier {
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}