/* ============================================================
   NekoGen V2 — ANIMATION UTILITIES
   Apply-anywhere classes. Keyframes live in effects.css.
   ============================================================ */

/* Entrance utilities (run once on load) */
.anim-fade-in    { animation: fade-in 0.6s var(--ease-out) both; }
.anim-fade-up    { animation: fade-up 0.6s var(--ease-out) both; }
.anim-fade-down  { animation: fade-down 0.6s var(--ease-out) both; }
.anim-slide-left { animation: slide-left 0.6s var(--ease-out) both; }
.anim-slide-right{ animation: slide-right 0.6s var(--ease-out) both; }
.anim-scale-in   { animation: scale-in 0.5s var(--ease-spring) both; }

/* Stagger delays */
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }
.delay-6 { animation-delay: 0.48s; }

/* Continuous */
.anim-float      { animation: float-slow 7s ease-in-out infinite; }
.anim-glow-pulse { animation: glow-pulse 2.4s ease-in-out infinite; }
.anim-pulse      { animation: pulse-soft 2s ease-in-out infinite; }
.anim-spin       { animation: spin 0.8s linear infinite; }

/* Progress bar component */
.progress {
    height: 6px;
    background: var(--color-surface-brighter);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0;
    background: var(--grad-neon);
    border-radius: var(--radius-full);
    box-shadow: var(--glow-primary);
    transition: width 0.5s var(--ease-out);
}
.progress-bar.indeterminate {
    width: 40%;
    animation: progress-slide 1.3s ease-in-out infinite;
}
@keyframes progress-slide {
    from { margin-left: -40%; }
    to   { margin-left: 100%; }
}

/* Attention */
.anim-shake { animation: shake 0.45s var(--ease-out); }
@keyframes shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(3px); }
    30%, 70% { transform: translateX(-5px); }
    40%, 60% { transform: translateX(5px); }
    50% { transform: translateX(-3px); }
}

.anim-pop { animation: pop 0.35s var(--ease-spring); }
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}
