/* animations.css - Smooth UI Animations */

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.animate-float {
    animation: float 5s ease-in-out infinite;
}

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

.animate-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typing Indicator Animation */
.typing-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
    40% { transform: translateY(-6px); opacity: 1; }
}

.loading-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-foreground);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Loading Pulse for Bubble */
.loading-pulse {
    animation: bubble-pulse 2s infinite ease-in-out;
}

@keyframes bubble-pulse {
    0%, 100% { 
        border-color: color-mix(in srgb, var(--primary) 10%, transparent);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% { 
        border-color: color-mix(in srgb, var(--primary) 40%, transparent);
        box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 15%, transparent);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--muted) 25%, var(--border) 50%, var(--muted) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}
