/* Reusable subtle animations for MyLawyers plugin */

.ml-theme-fade-up {
    animation: mlThemeFadeUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.ml-ai-answer-card.ml-theme-fade-up {
    animation-delay: 0s;
}

.ml-ai-firm-list > *:nth-child(1), .ml-ai-lawyer-list > *:nth-child(1) { animation-delay: 0.05s; }
.ml-ai-firm-list > *:nth-child(2), .ml-ai-lawyer-list > *:nth-child(2) { animation-delay: 0.1s; }
.ml-ai-firm-list > *:nth-child(3), .ml-ai-lawyer-list > *:nth-child(3) { animation-delay: 0.15s; }
.ml-ai-firm-list > *:nth-child(4), .ml-ai-lawyer-list > *:nth-child(4) { animation-delay: 0.2s; }
.ml-ai-firm-list > *:nth-child(5), .ml-ai-lawyer-list > *:nth-child(5) { animation-delay: 0.25s; }

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

.ml-theme-hover-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ml-theme-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

/* Smooth button hover transition */
.ml-theme-btn-hover {
    transition: background-color 0.35s ease, transform 0.2s ease;
}

.ml-theme-btn-hover:active {
    transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .ml-theme-fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .ml-theme-hover-lift {
        transition: none;
    }
    .ml-theme-hover-lift:hover {
        transform: none;
    }
    .ml-theme-btn-hover {
        transition: none;
    }
    .ml-theme-btn-hover:active {
        transform: none;
    }
}