/* ===== SPA TRANSITIONS - APP.CSS ===== */

/* Container principal do app */
.app-step {
    display: none !important;
    width: 100%;
}

.app-step.active {
    display: block !important;
}

/* Transições do Glass Card para SPA completo */
.glass-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    transform: translateX(0);
    opacity: 1;
    width: 100%;
    max-width: 500px;
    /* Permitir altura dinâmica baseada no conteúdo */
    min-height: auto;
    overflow: visible;
}

/* Estados de transição do glass-card */
.glass-card.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.glass-card.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.glass-card.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

.glass-card.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Prevenir scroll horizontal durante transições */
html {
    overflow-x: hidden;
}

.glass-card.slide-active {
    transform: translateX(0);
    opacity: 1;
}

/* Loading states */
.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
}

.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

/* Ajustes específicos para cada etapa */

/* Etapa de boas-vindas */
#step-welcome {
    text-align: center;
}

#step-welcome h1 {
    transform: rotate(-2deg);
}

/* Etapa de finalização */
#step-finish {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    min-height: 100%;
    align-items: center;
    justify-content: center;
}

/* Remove glass card effect para tela de finalização */
#step-finish .glass-card {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px; /* Mantém border radius para o container */
}

.texto-finalizacao {
    margin-bottom: 30px;
}

.texto-finalizacao p {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.logo-finalizacao {
    width: 180px;
    height: auto;
    margin: 20px 0 30px 0;
    filter: brightness(0) invert(1);
}

.logos-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.logo-footer {
    height: 36px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
    .logos-footer {
        gap: 15px;
    }
    
    .logo-footer {
        height: 32px;
    }
    
    .logo-finalizacao {
        width: 150px;
    }
    
    .texto-finalizacao p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logos-footer {
        gap: 10px;
    }
    
    .logo-footer {
        height: 36px;
    }
    
    .logo-finalizacao {
        width: 180px;
    }
    
    .texto-finalizacao p {
        font-size: 1.3rem;
    }
    
    #step-finish {
        gap: 20px;
    }
    
    .seta-container {
        padding-right: 8%;
    }
    
    /* AJUSTES PARA MOBILE PEQUENO */
    .agradecimento-bg-container {
        min-height: 450px;
    }
    
    .agradecimento-btn {
        max-width: 260px;
    }
}

/* Vídeo de background */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

/* Background de imagem como fallback e para outras telas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/boas-vindas.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: var(--bg-opacity, 0);
    transition: opacity 0.4s ease-in-out;
}

/* Remover background do body para usar o pseudo-elemento */
body {
    background: none !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Container com altura dinâmica baseada no conteúdo */
.container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Glass card sempre acima do background */
.glass-card {
    position: relative;
    z-index: 2;
}

/* Image card - mesmo tamanho e posição do glass card */
.image-card {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    transform: translateX(0);
    opacity: 1;
    width: 100%;
    min-height: 600px;
    background-image: url('../images/tela-agradecimento-mobile.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Estados de transição do image-card */
.image-card.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.image-card.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.image-card.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

.image-card.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

.image-card.slide-active {
    transform: translateX(0);
    opacity: 1;
}

/* Ajustes para pergunta container dentro do SPA */
#step-questions .pergunta-container {
    width: 100%;
}

/* Override de estilos específicos para integração */
#step-questions .glass-card {
    /* Reset transitions específicas do pergunta.css quando dentro do SPA */
}

/* Notificações agora usam a mesma estrutura das perguntas */

/* Título responsivo para notificações */
.titulo-notificacao::before {
    content: "Caso a gente faça um evento de churrasco, posso te mandar um zap?";
    white-space: pre-line;
    color: white;
    text-align: left;
    line-height: 1.1;
}

.bone {
    position: relative;
    width: 108%;
    height: auto;
}

.seta {
    position: relative;
    height: auto;
    width: 22px;
}

.bone-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 -20px; /* Compensate for card padding to allow full width */
}

.seta-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20%;
    margin-top: -55px;
    margin-bottom: 20px;
}

.texto-finalizacao-agradecimento-1 {
    /* Remove fixed margin, use flexbox gap */
}

.texto-finalizacao-agradecimento-2 {
    /* Remove fixed margin, use flexbox gap */
}

/*
.h1-texto-finalizacao-agradecimento-2::before {
    content: "Quer ganhar\A esse boné exclusivo?";
}
*/

/* NOVOS ESTILOS PARA BACKGROUND DE IMAGEM */
.agradecimento-bg-container {
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-image: url('../images/tela-agradecimento-mobile.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    position: relative;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

/* Ajuste para image-card */
#step-finish-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#step-finish-image.active {
    display: flex !important;
}

#step-finish-image .agradecimento-bg-container {
    border-radius: 20px;
}

.agradecimento-content {
    width: 100%;
    padding: 0 20px 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.image-card .btn-primary {
    width: 100%;
    max-width: 280px;
    position: absolute;
    bottom: 58px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-content: flex-end;
    justify-content: center;
    align-items: center;
}

.image-card .btn-dourado {
    width: 100%;
    max-width: 280px;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    /* display: flex;
    align-content: flex-end;
    justify-content: center;
    align-items: center; */
}

/* Para tablets e telas maiores (769px+) - sem "próximo" */
@media (min-width: 769px) {
    .titulo-notificacao::before {
        content: "Caso a gente faça um evento de churrasco, posso te mandar um zap?";
    }

    #step-finish {
        gap: 60px;
    }

    .h1-texto-finalizacao-agradecimento-2::before {
        content: "Quer ganhar esse boné exclusivo?";
    }

    .seta-container {
        padding-right: 15%;
    }

    .bone {
        /* No extra margin needed */
    }

    .seta {
        /* No fixed margins needed */
    }
    
    /* NOVO ESTILO PARA DESKTOP */
    .image-card {
        background-image: url('../images/tela-agradecimento-desktop.png');
        justify-content: flex-start;
        align-items: flex-end;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .image-card .btn-primary {
        bottom: 24%;
        left: 8.6%;
        transform: none;
    }   

    .image-card .btn-dourado {
        bottom: 17%;
        left: 8.6%;
        transform: none;
    }  
}

/* Para mobile (até 769px) - com "próximo" */
@media (max-width: 769px) {
    .titulo-notificacao::before {
        content: "Caso a gente faça um evento de churrasco, posso te mandar um zap?";
    }
    
    /* CÓDIGO ANTERIOR COMENTADO */
    /*
    #step-finish {
        gap: 30px;
    }
    
    .seta-container {
        padding-right: 10%;
    }
    */
    
    /* NOVO ESTILO PARA MOBILE */
    .agradecimento-content {
        padding: 0 20px 30px;
    }
    
    .image-card {
        /* max-width: 100%;
        width: 100%;
        box-sizing: border-box; */
    }
}