/**
 * Fallback CSS Animations
 * Animações CSS puras como backup caso GSAP não carregue
 */

/* Animações de entrada para elementos principais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Aplicar animações apenas se GSAP não estiver disponível */
.no-gsap main,
.no-gsap .site-main,
.no-gsap #main {
    animation: fadeInUp 0.8s ease-out;
}

.no-gsap .post,
.no-gsap .blog-card,
.no-gsap article {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.no-gsap .post:nth-child(1) { animation-delay: 0.1s; }
.no-gsap .post:nth-child(2) { animation-delay: 0.2s; }
.no-gsap .post:nth-child(3) { animation-delay: 0.3s; }
.no-gsap .post:nth-child(4) { animation-delay: 0.4s; }
.no-gsap .post:nth-child(5) { animation-delay: 0.5s; }

.no-gsap .sidebar .widget,
.no-gsap .widget-area .widget {
    animation: fadeInLeft 0.6s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.5s;
}

.no-gsap .post-thumbnail img,
.no-gsap .wp-post-image {
    animation: fadeInScale 0.8s ease-out;
}

/* Hover effects básicos */
.no-gsap a[href*="/20"]:hover,
.no-gsap .post-title a:hover,
.no-gsap .category a:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.no-gsap .wp-block-button__link:hover,
.no-gsap .btn:hover,
.no-gsap button[type="submit"]:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Reduzir animações para usuários com preferência de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .no-gsap * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
