/* ========================================
   ConnectAI — Animations & Transitions
   Minimal, purposeful motion
   ======================================== */

/* ── Page transitions ── */
.page.active {
    animation: pageIn 0.2s ease forwards;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Skeleton loading ── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border-light) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Stagger children ── */
.stagger-children > * {
    animation: fadeUp 0.3s ease backwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.03s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.06s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.09s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.12s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.18s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.21s; }

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

/* ── Status pulse ── */
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Hover lift ── */
.hover-lift { transition: transform 0.15s, box-shadow 0.15s; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
