/* =============================================
   FGON Ads Manager — Public Styles
   Versão: 1.0.0
   ============================================= */

/* -----------------------------------------------
   Container base do slot
----------------------------------------------- */

.fgon-ad-wrapper {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.fgon-ad-slot {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 0;
}

.fgon-ad-slot--empty {
    display: none;
}

/* -----------------------------------------------
   Link do anúncio
----------------------------------------------- */

.fgon-ad-link {
    display: block;
    line-height: 0;
    border: none;
    outline: none;
    text-decoration: none;
    cursor: pointer;
}

.fgon-ad-link:hover {
    opacity: 0.96;
    transition: opacity 0.15s ease;
}

/* -----------------------------------------------
   Imagem
----------------------------------------------- */

.fgon-ad-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* -----------------------------------------------
   HTML5 / Código
----------------------------------------------- */

.fgon-ad-html5 {
    display: block;
    max-width: 100%;
    overflow: hidden;
}

/* -----------------------------------------------
   Placeholder vazio (sem criativo cadastrado)
----------------------------------------------- */

.fgon-ad-placeholder {
    display: none;
}

/* -----------------------------------------------
   Loading — modo assíncrono
----------------------------------------------- */

.fgon-ad-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
}

.fgon-ad-loading__spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    animation: fgon-spin 0.7s linear infinite;
}

@keyframes fgon-spin {
    to { transform: rotate(360deg); }
}

/* -----------------------------------------------
   Responsividade
----------------------------------------------- */

@media screen and (max-width: 768px) {
    .fgon-ad-slot {
        text-align: center;
    }

    .fgon-ad-image {
        margin: 0 auto;
    }
}