/* ================================
   CSS para Páginas Especiais
   (Downsell, Upsell, Compra Confirmada)
   ================================ */

/* Barra de progresso */
.progress-bar-container {
    width: 100%;
    background-color: #FBEEDF;
    height: 30px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #EEDCC2;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #B6713B, #EDCB9A);
    width: 0%;
    transition: width 3s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    box-shadow: 0 2px 8px rgba(182, 113, 59, 0.4);
}

.progress-bar::after {
    content: '65%';
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Fundos e títulos específicos das páginas especiais */
.portal-bg-fixed {
    background: url('../img/cl34.webp') top center / cover no-repeat fixed;
    background-color: #F5E6D3;
}

.inline-button {
    display: flex;
    flex-direction: row;
}

.portal-hero-title {
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.img-cami {
    max-height: 360px;
    object-fit: cover;
}


.mobileinverse {
    flex-direction: row !important;
}


/* Progress bar percentages - specific classes */
.progress-bar.percent-65::after {
    content: '65%';
}

.progress-bar.percent-80::after {
    content: '80%';
}

.progress-bar.percent-95::after {
    content: '95%';
}

/* Container de vídeo */
.video-container {
    position: relative;
    height: 100%;
    overflow: hidden;
    max-width: 399px;
    background: #232323;
    margin: 2rem auto;
    border-radius: 12px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Botões específicos */
.decline-button:hover {
    background: #573921;
    color: #fff;
}

.decline-button.show {
    display: block;
    animation: fadeIn 1s ease;
}

/* Hotmart Sales Funnel - APENAS para páginas de downsell e upsell */
body[data-page="downsell"] #hotmart-sales-funnel,
body[data-page="upsell"] #hotmart-sales-funnel,
.page-downsell #hotmart-sales-funnel,
.page-upsell #hotmart-sales-funnel {
    display: block !important;
    margin: 2rem auto;
    max-width: 900px;
    background: #fff;
    border: 2px solid #EDCB9A;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

/* Ocultar hotmart-sales-funnel em todas as outras páginas */
#hotmart-sales-funnel {
    display: none !important;
}

#hotmart-sales-funnel iframe,
#hotmart-sales-funnel .hm-checkout-iframe,
#hotmart-sales-funnel .hm_checkout_iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 780px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    #hotmart-sales-funnel {
        padding: 1rem;
        margin: 1.5rem auto;
        border-width: 1px;
    }

    #hotmart-sales-funnel iframe,
    #hotmart-sales-funnel .hm-checkout-iframe,
    #hotmart-sales-funnel .hm_checkout_iframe {
        min-height: 920px;
    }
}

/* Aviso de não fechar */
.no-close-warning {
    background: #922020;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

/* Responsividade mobile */
@media (max-width: 440px) {
    .video-container {
        max-width: 100%;
    }
}

/* Animações base */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animações blur específicas */
@keyframes blurInUp {
    from {
        opacity: 0;
        filter: blur(20px);
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes blurInDown {
    from {
        opacity: 0;
        filter: blur(20px);
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes blurInLeft {
    from {
        opacity: 0;
        filter: blur(20px);
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@keyframes blurInRight {
    from {
        opacity: 0;
        filter: blur(20px);
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@keyframes blurInZoom {
    from {
        opacity: 0;
        filter: blur(30px);
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes blurOut {
    from {
        opacity: 1;
        filter: blur(0);
    }
    to {
        opacity: 0;
        filter: blur(20px);
        transform: translateY(-40px);
    }
}

/* Classes de animação */
.anim-efx {
    opacity: 0;
    filter: blur(20px);
}

.anim-efx.visible {
    animation-duration: 0.9s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.anim-efx.visible.anim-up { animation-name: blurInUp; }
.anim-efx.visible.anim-down { animation-name: blurInDown; }
.anim-efx.visible.anim-left { animation-name: blurInLeft; }
.anim-efx.visible.anim-right { animation-name: blurInRight; }
.anim-efx.visible.anim-zoom { animation-name: blurInZoom; }
.anim-efx.hidden { animation: blurOut 0.6s ease-in forwards; }

.semanimacao {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
}
