/**
 * AI Answer Evaluator - Animations
 */

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

.aae-fade-in {
    animation: fadeIn 0.5s ease;
}

/* Slide In */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aae-slide-in {
    animation: slideIn 0.5s ease;
}

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

.aae-scale-in {
    animation: scaleIn 0.3s ease;
}

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

.aae-pulse {
    animation: pulse 2s ease infinite;
}

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

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

/* Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.aae-bounce {
    animation: bounce 1s ease infinite;
}

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

.aae-shake {
    animation: shake 0.5s ease;
}

/* Progress Bar */
@keyframes progress {
    from {
        width: 0%;
    }
}

.aae-progress-animated {
    animation: progress 1s ease;
}

/* Glow */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
    }
}

.aae-glow {
    animation: glow 2s ease infinite;
}

/* Gradient Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.aae-gradient-animated {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Typing Indicator */
@keyframes typing {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.aae-typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: typing 1.4s ease infinite;
}

.aae-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.aae-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Loading Skeleton */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.aae-skeleton {
    background: linear-gradient(90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton 1.2s ease-in-out infinite;
}

/* Transition Utilities */
.aae-transition {
    transition: all 0.3s ease;
}

.aae-transition-fast {
    transition: all 0.15s ease;
}

.aae-transition-slow {
    transition: all 0.6s ease;
}

/* Hover Effects */
.aae-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.aae-hover-glow:hover {
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}
