/**
 * =========================================================
 * ARQUIVO : /assets/css/bomads.css
 * PROJETO : BomVendedor
 * MÓDULO  : BomAds Público
 * VERSÃO  : V21.1.1 TRANSPARENT FRAME
 * DATA    : 07/04/2026
 * =========================================================
 */

.bomads-slot {
    width: 100%;
    margin: 20px 0;
}

.bomads-slot__link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.bomads-slot__frame,
.bomads-slot__card {
    position: relative;
    width: min(100%, calc(var(--bomads-slot-width, 1200) * 1px));
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid #dfe7f1;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.bomads-slot__frame {
    aspect-ratio: calc(var(--bomads-slot-width, 1200)) / calc(var(--bomads-slot-height, 250));
}

.bomads-slot__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.bomads-slot__media--image {
    object-fit: contain;
}

.bomads-slot__media--video {
    object-fit: cover;
}

.bomads-slot__video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.bomads-slot__card {
    padding: 18px;
    min-height: max(96px, calc(var(--bomads-slot-height, 90) * 1px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.bomads-slot__card--textual {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.bomads-slot__card--fallback {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.bomads-slot__company {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    width: fit-content;
    padding: 0 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.bomads-slot__title {
    color: #0f172a;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.2;
    font-weight: 900;
}

.bomads-slot__text {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.bomads-slot__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.18);
}

.busca-bomads-footer-728 {
    margin-top: 28px;
}

.busca-bomads-footer-728 .bomads-slot__frame,
.busca-bomads-footer-728 .bomads-slot__card {
    width: min(100%, 728px);
}

.busca-bomads-footer-728 .bomads-slot__frame {
    aspect-ratio: 728 / 90;
}

@media (max-width: 991px) {
    .bomads-slot__frame,
    .bomads-slot__card {
        border-radius: 20px;
    }
}

@media (max-width: 767px) {
    .bomads-slot {
        margin: 18px 0;
    }

    .bomads-slot__frame,
    .bomads-slot__card {
        width: 100%;
        border-radius: 18px;
    }

    .bomads-slot__frame {
        aspect-ratio: auto;
        min-height: 90px;
    }

    .bomads-slot__media {
        width: 100%;
        height: auto;
        min-height: 90px;
        max-height: 320px;
    }

    .bomads-slot__card {
        min-height: auto;
        padding: 16px;
    }

    .busca-bomads-footer-728 .bomads-slot__frame {
        aspect-ratio: auto;
        min-height: 90px;
    }
}


/* =========================================================
   V21.1.1 — BOMADS TRANSPARENT FRAME
   ---------------------------------------------------------
   Ajuste cirúrgico global do BomAds público:
   - remove fundo visual do frame da peça;
   - remove borda e sombra do frame;
   - preserva responsividade e área útil do banner;
   - funciona melhor com PNG/WebP transparentes.
========================================================= */
.bomads-slot__frame {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.bomads-slot__media,
.bomads-slot__media--image {
    background: transparent;
}

.bomads-slot__link {
    background: transparent;
}

/* Cards textuais/fallback continuam com fundo próprio quando não são imagens */
.bomads-slot__card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

/* =========================================================
   V21.1.2 — BOMADS VISUAL SLOT STANDARD
   ---------------------------------------------------------
   Padrão global visual para slots de imagem/vídeo:
   transparente, sem fundo, sem borda e sem sombra.
   Cards textuais/fallback permanecem legíveis.
========================================================= */
.bomads-slot {
    background: transparent;
}

.bomads-slot__link {
    background: transparent;
}

.bomads-slot__frame {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bomads-slot__media,
.bomads-slot__media--image,
.bomads-slot__media--video {
    background: transparent !important;
}

.bomads-slot__frame img,
.bomads-slot__frame video {
    background: transparent !important;
}

/* Preserva leitura quando não há peça visual real */
.bomads-slot__card,
.bomads-slot__card--textual,
.bomads-slot__card--fallback {
    border: 1px solid #dfe7f1;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}


/* =========================================================
   V21.1.3 — BOMADS BRANDING + BREATHING SPACE
   ---------------------------------------------------------
   - adiciona área visual discreta acima/abaixo do banner;
   - move a assinatura BomAds para baixo à esquerda;
   - prepara link interno para futura página comercial.
========================================================= */
.bomads-slot {
    margin: 22px 0;
    padding-top: 4px;
    padding-bottom: 6px;
}

.bomads-slot__link {
    display: block;
}

.bomads-slot__meta {
    width: min(100%, calc(var(--bomads-slot-width, 1200) * 1px));
    margin: 4px auto 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 16px;
}

.bomads-slot__brand {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1px;
    color: #8a97b0;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease;
}

.bomads-slot__brand-text {
    text-decoration: underline;
    text-underline-offset: 1px;
}

.bomads-slot__brand-mark {
    font-size: .72em;
    line-height: 1;
    vertical-align: top;
    position: relative;
    top: -0.15em;
}

.bomads-slot__brand:hover {
    color: #5f6c86;
}

.bomads-slot__brand:focus-visible {
    outline: 2px solid rgba(54,180,229,.45);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .bomads-slot {
        margin: 20px 0;
        padding-top: 4px;
        padding-bottom: 5px;
    }

    .bomads-slot__meta {
        margin-top: 3px;
    }

    .bomads-slot__brand {
        font-size: 10px;
    }

    .bomads-slot__brand-mark {
        font-size: .68em;
    }
}
