/* ViperHarmonics Animations Library */

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0% { filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4)); }
    50% { filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.8)); }
    100% { filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4)); }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    }
    50% {
        transform: scale(1.02);
        text-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-15px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* Toast Animations */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 19, 26, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--panel-border);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    bottom: 2rem;
}

.toast-success {
    border-top: 2px solid #10b981;
}

.toast-error {
    border-top: 2px solid #ef4444;
}

.toast-info {
    border-top: 2px solid var(--accent);
}

/* Notation Cursor Blink */
.notation-display:focus {
    caret-color: var(--accent);
}

/* Particle system for splash */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 10s infinite ease-in-out;
}

.particle:nth-child(even) {
    animation-duration: 15s;
    animation-direction: reverse;
    opacity: 0.15;
    width: 6px;
    height: 6px;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 5%) scale(1.1); }
    100% { transform: translate(-5%, 10%) scale(0.95); }
}
