/**
 * Premium Animation Keyframes & Easing Extensions (AOS Support)
 *
 * @package mi-theme
 * @version 1.0.0
 */

/* ─── Hardware Accelerated Animation Defaults ───────────────── */
[data-aos] {
    pointer-events: none;
    transition-property: transform, opacity;
    transition-timing-function: var(--ease-spring);
    will-change: transform, opacity;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ─── Custom Premium Spring-Lift Transition overrides ──────── */
[data-aos="fade-up"] {
    transform: translateY(20px);
    opacity: 0;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* ─── Mobile Performance Override (Instant paint on touch devices) ─ */
@media (max-width: 768px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        transition: none !important;
    }
}

[data-aos="fade-down"] {
    transform: translateY(-20px);
    opacity: 0;
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="scale-in"] {
    transform: scale(0.96);
    opacity: 0;
}

[data-aos="scale-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* ─── CSS-only Micro-interactions ──────────────────────────── */

/* Elegant Pulsing Glow for interactive map pins */
@keyframes pinPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(193, 68, 14, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(193, 68, 14, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(193, 68, 14, 0);
    }
}

.pulsing-map-pin {
    animation: pinPulse 2s infinite var(--ease-default);
}

/* Skeleton Loading Pulse */
@keyframes skeletonPulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-loading {
    background: linear-gradient(90deg, 
        var(--color-surface-2) 25%, 
        var(--color-surface-3) 37%, 
        var(--color-surface-2) 63%
    );
    background-size: 400% 100%;
    animation: skeletonPulse 1.4s ease infinite;
}
