/* ===================================== 
   ANIMATIONS CSS MODULE
   All keyframe animations and animation utilities
   Depends on: variables.css
   ===================================== */

/* ===== KEYFRAME ANIMATIONS ===== */

/* Pulse effect - used for live badges and dots */
@keyframes pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 53, 0, 0.7);
    }
    70% { 
        box-shadow: 0 0 0 6px rgba(255, 53, 0, 0);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(255, 53, 0, 0);
    }
}

/* Slide animations - used for menus and modals */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Modal animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Spin animation - used for loading indicators */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Shimmer effect - used for loading skeletons */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== ANIMATION UTILITY CLASSES ===== */

/* Spin utility */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Loading icon - commonly used for LLM and async operations */
.loading-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    animation: spin 1s linear infinite;
}

/* Animation variables for reuse */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in;
}

.animate-fadeOut {
    animation: fadeOut 0.3s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.3s ease-out;
}

.animate-modalFadeIn {
    animation: modalFadeIn 0.3s ease;
}

.animate-fadeInOut {
    animation: fadeInOut 3s ease-in-out;
}

.animate-shimmer {
    animation: shimmer 2s linear infinite;
}