/* ============================================================
   ads.css — Ad banner and ad dialog banner
   ============================================================ */

/* ==================== BANNER DE ANUNCIO ==================== */
.ad-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 201;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    width: 100%;
    pointer-events: none;
}

.ad-banner iframe,
.ad-banner > * {
    pointer-events: auto;
}

/* ==================== BANNER ADSENSE RODAPE ==================== */
#ad-footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 468px;
    height: 90px;
    z-index: 9998;
    background: #000;
    text-align: center;
    overflow: hidden;
    display: none;
}

#ad-footer.ad-loaded {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Desktop: banner horizontal minimo */
#ad-footer .adsbygoogle {
    display: inline-block;
    width: 468px;
    height: 60px;
}

#ad-footer iframe {
    max-height: 90px !important;
}

/* Mobile */
@media (max-width: 768px) {
    #ad-footer {
        height: 50px;
        left: 10px;
        right: 10px;
        bottom: 5px;
        width: auto;
        transform: none;
    }
    #ad-footer .adsbygoogle {
        width: 100%;
        height: 50px;
    }
    #ad-footer iframe {
        max-height: 50px !important;
    }

    /* Subir elementos do mapa quando anuncio visivel */
    body.ad-visible #minimap {
        bottom: 60px !important;
    }
    body.ad-visible #floating-actions {
        bottom: 70px !important;
    }
}


/* Anuncios dentro dos dialogos — fixo no rodape, fora do scroll */
.ad-dialog-banner {
    flex-shrink: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(240, 192, 64, 0.15);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Area de conteudo scrollavel dentro dos dialogos */
#profile-content,
#help-content,
#shop-content,
#ranking-content,
#alliance-menu-content,
#alliance-list-content,
#alliance-details-content,
#lore-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
