/* Ondata Popup v2.0 — Frontend CSS
   REGRA: display é controlado 100% pelo JS via style inline.
   O CSS não define display em lugar nenhum no overlay.
*/

/* --- Overlay --- */
#ondatapop-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    /* Animação de entrada: controlada pela classe .ondatapop-in */
    opacity: 0;
    transition: opacity 0.3s ease;
}

#ondatapop-overlay.ondatapop-in {
    opacity: 1;
}

/* --- Caixa central --- */
#ondatapop-box {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.94);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

#ondatapop-overlay.ondatapop-in #ondatapop-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* --- Botão fechar --- */
#ondatapop-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

#ondatapop-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg) scale(1.1);
}

/* --- Imagem --- */
#ondatapop-link {
    display: block;
    line-height: 0;
}

#ondatapop-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

#ondatapop-link:hover #ondatapop-img {
    transform: scale(1.03);
}

/* --- Rodapé / botão CTA --- */
#ondatapop-footer {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fff;
}

#ondatapop-btn {
    display: inline-block;
    padding: 11px 30px;
    background: linear-gradient(135deg, #6c63ff 0%, #4f46e5 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

#ondatapop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.55);
}

/* --- Responsivo --- */
@media (max-width: 500px) {
    #ondatapop-box {
        border-radius: 10px;
    }
    #ondatapop-btn {
        font-size: 14px;
        padding: 10px 22px;
    }
}
