/* CSS para página Seca Bucho - Movido do inline */

/* Animação de scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo para canvas de partículas */
#hero-animation canvas {
    opacity: 0.5 !important;
}

/* Melhorias de acessibilidade */
.step-btn:focus,
.btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Melhorias de responsividade */
@media (max-width: 768px) {
    .step-screen h1,
    .step-screen h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .step-screen p {
        font-size: 1rem;
    }
}

/* Melhorias de performance */
img {
    max-width: 100%;
    height: auto;
}

/* Estilo para carrossel */
.carousel-container {
    position: relative;
}

.carousel-button {
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Estilo para feedback thumbnails */
.feedback-thumb {
    transition: all 0.3s ease;
}

.feedback-thumb:hover {
    transform: scale(1.05);
}

.feedback-thumb.border-accent {
    border-color: #3b82f6 !important;
}

/* Barra de Progresso Minimalista */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 8px 0;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.step-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: #D4AF37;
    transform: scale(1.2);
}

.step-indicator.completed {
    background: #4CAF50;
}

/* Botão Voltar: prefer top-right com safe-area para iOS (evita notch) */
.btn-back {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    left: calc(env(safe-area-inset-left, 0px) + 12px) !important;
    right: auto !important;
    color: white !important;
    border: none !important; /* no external border as requested */
    box-shadow: none !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: opacity 0.15s ease, transform 0.12s ease;
    z-index: 1201 !important;
    display: none !important;
}

.btn-back:hover { opacity: 0.95; transform: translateY(-1px); }
.btn-back.visible { display: block !important; }

/* force remove any border/shadow remnants that may come from other styles */
.btn-back, .btn-back svg, .btn-back * { border: none !important; box-shadow: none !important; }

/* Carrossel Elegante */
#seca-bucho-carousel-final {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#carousel-img-final {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

#carousel-prev-final,
#carousel-next-final {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid #D4AF37;
    transition: all 0.3s ease;
}

#carousel-prev-final:hover,
#carousel-next-final:hover {
    background: #D4AF37 !important;
    color: black !important;
    transform: scale(1.1);
}

/* Depoimentos Legíveis */
.feedback-thumb {
    position: relative;
}

.feedback-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feedback-thumb:hover::after {
    background: rgba(0,0,0,0.1);
}

/* Otimização Mobile */
@media (max-width: 768px) {
    .progress-steps {
        gap: 4px;
    }
    
    .step-indicator {
        width: 6px;
        height: 6px;
    }
    
    .btn-back {
        top: calc(env(safe-area-inset-top, 0px) + 8px);
        left: 8px;
        right: auto;
        padding: 12px 14px;
        font-size: 14px;
    }
    
    #carousel-img-final {
        width: 250px;
        height: 350px;
    }
}

/* Countdown mobile padding increase */
@media (max-width: 768px) {
    .countdown-timer-custom, #countdown-timer, #countdown {
        padding: 12px 14px !important;
        top: calc(env(safe-area-inset-top, 0px) + 72px) !important;
        right: 14px !important;
    }
}

/* More compact, minimal and attention-grabbing countdown for small devices */
@media (max-width: 480px) {
    /* Wrapper */
    #countdown-timer, .countdown-timer-custom {
        align-items: center;
        gap: 8px;
        padding: 6px 10px !important;
        background: linear-gradient(90deg, rgba(212,175,55,0.08), rgba(255,215,0,0.03));
        border: 1px solid rgba(212,175,55,0.18);
        border-radius: 10px !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.28);
        top: calc(env(safe-area-inset-top, 0px) + 56px) !important;
        right: 12px !important;
        left: auto !important;
        font-family: inherit;
        z-index: 1200;
    }

    /* Label smaller and slightly muted to leave emphasis on the time */
    #countdown-timer .countdown-label,
    .countdown-timer-custom .countdown-label {
        font-size: 12px !important;
        line-height: 1;
        color: rgba(255,255,255,0.9);
        opacity: 0.9;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    /* Time itself more prominent but compact */
    #countdown, .countdown-timer-custom #countdown {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        background: rgba(0,0,0,0.12);
        padding: 4px 8px !important;
        border-radius: 6px !important;
        min-width: 58px;
        text-align: center;
    }

    /* On very small screens hide the verbose label to maximize clarity */
    @media (max-width: 360px) {
        #countdown-timer .countdown-label,
        .countdown-timer-custom .countdown-label {
            display: none !important;
        }
        #countdown, .countdown-timer-custom #countdown { font-size: 15px !important; padding: 3px 7px !important; }
    }
}
