/* =============================================================================
   9. ANIMATIONS & NOTIFICATIONS — ULTRA SMOOTH HARDWARE ACCELERATED
   ============================================================================= */

/* ─── Toast Notifications ─── */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate3d(-50%, 100px, 0);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-toast);
    opacity: 0;
    transition: transform var(--dur-norm) var(--ease-elastic), opacity var(--dur-norm) var(--ease-out);
    pointer-events: none;
    will-change: transform, opacity;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .toast {
    background: rgba(30, 41, 59, 0.94);
    border-color: rgba(255, 255, 255, 0.16);
}

.toast.show {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
}

/* ─── Keyframe Animations ─── */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate3d(0, -12px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

@keyframes popScale {
    0% {
        transform: scale(0.92);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Accessibility: Motion Reduction */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
