/* Animations.css - Todas as animações do site */

/* Animação do Banner */
@keyframes animationBanner {
    0% { opacity: 0; top: -11rem; }
    91% { opacity: 0; top: -11rem; }
    100% { opacity: 1; top: 0; }
}

@keyframes animationHeight {
    0% { height: 0; }
    91% { height: 0; }
    100% { height: 11rem; }
}

@keyframes animationClosing {
    0% { height: 11rem; opacity: 1; }
    30% { height: 11rem; opacity: 0.5; }
    100% { height: 0; opacity: 0; }
}

/* Classes de animação do banner */
#mobirisePromo.container-banner {
    height: 11rem;
    opacity: 1;
    animation: 11s linear animationHeight;
    transition: all 0.5s;
}

#mobirisePromo.container-banner.container-banner-closing {
    pointer-events: none;
    height: 0;
    opacity: 0;
    animation: 0.5s linear animationClosing;
}

#mobirisePromo .banner {
    min-height: 11rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px;
    opacity: 1;
    animation: 11s linear animationBanner;
    z-index: 1031;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Animações para hover */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Animações de botão */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Animação de loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animação de pulse para CTA */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cta-pulse {
    animation: pulse 2s infinite;
}

/* Animação de slideshow */
@keyframes slideLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.moving-left {
    animation: slideLeft 30s linear infinite;
}

/* Animação para navbar fixa */
.navbar-fixed-top {
    transition: top 0.3s;
}

.navbar-hidden {
    top: -100px;
}

/* Animação de fade in para elementos */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Animação de bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.bounce {
    animation: bounce 2s infinite;
}

/* Media Queries para animações responsivas */
@media (max-width: 768px) {
    #mobirisePromo.container-banner {
        height: 14rem;
    }
    
    #mobirisePromo .banner {
        min-height: 14rem;
    }
    
    @keyframes animationBanner {
        0% { opacity: 0; top: -14rem; }
        91% { opacity: 0; top: -14rem; }
        100% { opacity: 1; top: 0; }
    }
    
    @keyframes animationHeight {
        0% { height: 0; }
        91% { height: 0; }
        100% { height: 14rem; }
    }
    
    @keyframes animationClosing {
        0% { height: 14rem; opacity: 1; }
        30% { height: 14rem; opacity: 0.5; }
        100% { height: 0; opacity: 0; }
    }
}

/* Prefixed versions para compatibilidade */
@-webkit-keyframes animationBanner {
    0% { opacity: 0; top: -11rem; }
    91% { opacity: 0; top: -11rem; }
    100% { opacity: 1; top: 0; }
}
@-moz-keyframes animationBanner {
    0% { opacity: 0; top: -11rem; }
    91% { opacity: 0; top: -11rem; }
    100% { opacity: 1; top: 0; }
}
@-o-keyframes animationBanner {
    0% { opacity: 0; top: -11rem; }
    91% { opacity: 0; top: -11rem; }
    100% { opacity: 1; top: 0; }
}

@-webkit-keyframes animationHeight {
    0% { height: 0; }
    91% { height: 0; }
    100% { height: 11rem; }
}
@-moz-keyframes animationHeight {
    0% { height: 0; }
    91% { height: 0; }
    100% { height: 11rem; }
}
@-o-keyframes animationHeight {
    0% { height: 0; }
    91% { height: 0; }
    100% { height: 11rem; }
}

@-webkit-keyframes animationClosing {
    0% { height: 11rem; opacity: 1; }
    30% { height: 11rem; opacity: 0.5; }
    100% { height: 0; opacity: 0; }
}
@-moz-keyframes animationClosing {
    0% { height: 11rem; opacity: 1; }
    30% { height: 11rem; opacity: 0.5; }
    100% { height: 0; opacity: 0; }
}
@-o-keyframes animationClosing {
    0% { height: 11rem; opacity: 1; }
    30% { height: 11rem; opacity: 0.5; }
    100% { height: 0; opacity: 0; }
}