/**
 * Animation Utilities
 * Keyframe animations and transition effects
 */

/* Slide Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

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

/* Animation Classes */
.tek-animate-slideInLeft { animation: slideInLeft 0.5s ease-out; }
.tek-animate-slideInRight { animation: slideInRight 0.5s ease-out; }
.tek-animate-slideInUp { animation: slideInUp 0.5s ease-out; }
.tek-animate-slideInDown { animation: slideInDown 0.5s ease-out; }
.tek-animate-fadeIn { animation: fadeIn 0.5s ease-out; }
.tek-animate-fadeOut { animation: fadeOut 0.5s ease-out; }
.tek-animate-scaleIn { animation: scaleIn 0.3s ease-out; }
.tek-animate-scaleOut { animation: scaleOut 0.3s ease-out; }
.tek-animate-pulse { animation: pulse 2s infinite; }
.tek-animate-bounce { animation: bounce 1s infinite; }
.tek-animate-spin { animation: spin 1s linear infinite; }

/* Hover Effects */
.tek-hover-lift {
    transition: transform var(--transition-base);
}

.tek-hover-lift:hover {
    transform: translateY(-5px);
}

.tek-hover-scale {
    transition: transform var(--transition-base);
}

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

.tek-hover-glow {
    transition: box-shadow var(--transition-base);
}

.tek-hover-glow:hover {
    box-shadow: 0 0 20px rgba(237, 28, 37, 0.5);
}
