/* Home Popup Styles */
#home-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home-popup-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 500px;
    height: 500px;
}

#home-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#home-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#home-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #FFFFFF;
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding-top: 18px;
    padding-left: 21px;
}

#home-popup-close:hover {
    background-color: #000000;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#home-popup-close:active {
    transform: scale(0.95);
}

/* Prevenção de scroll quando popup está ativo */
body.popup-no-scroll,
html.popup-no-scroll {
    overflow: hidden !important;
    height: 100% !important;
}

/* Para dispositivos iOS */
body.popup-no-scroll {
    position: fixed !important;
    width: 100% !important;
}

/* Responsividade */
@media (max-width: 768px) {
    #home-popup-container {
        width: 85vw;
        height: 85vw;
        max-width: 400px;
        max-height: 400px;
    }
    
    #home-popup-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    #home-popup-container {
        width: 90vw;
        height: 90vw;
        max-width: 300px;
        max-height: 300px;
    }
    
    #home-popup-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* Animação de entrada */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#home-popup-content {
    animation: popupFadeIn 0.3s ease-out;
}

/* Compatibilidade com Elementor */
.elementor-popup-modal {
    z-index: 999998 !important;
}

#home-popup-overlay {
    z-index: 999999 !important;
}