/* App Banner Pop-up Styles */
.app-banner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.app-banner-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.app-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    cursor: pointer;
    z-index: 9999;
}

.app-banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: slideUp 0.4s ease-out;
    padding: 20px;
    pointer-events: none;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.app-banner-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10001;
    color: #333;
    font-size: 18px;
}

.app-banner-close:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.app-banner-close:active {
    transform: scale(0.95);
}

.app-banner-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 844px;
    width: 100%;
    height: auto;
    z-index: 10002;
    pointer-events: auto;
    cursor: default;
}

.app-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

/* Botões clicáveis sobre a imagem */
/* Dimensão original da imagem: 1096x860 pixels */
.app-banner-btn {
    position: absolute;
    display: block;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.app-banner-btn:hover {
    opacity: 0.7;
}

/* Google Play Store Button - coordenadas: 351,632,104,714 */
/* Área: x1=104, y1=632, x2=351, y2=714 */
.app-banner-btn-google {
    left: 9.49%;
    top: 73.49%;
    width: 22.63%;
    height: 9.53%;
}

/* Apple App Store Button - coordenadas: 655,717,407,634 */
/* Área: x1=407, y1=634, x2=655, y2=717 */
.app-banner-btn-apple {
    left: 37.14%;
    top: 73.72%;
    width: 22.63%;
    height: 9.65%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .app-banner-image-wrapper {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .app-banner-container {
        padding: 15px;
    }
    
    .app-banner-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .app-banner-image {
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .app-banner-container {
        padding: 10px;
    }
}
