/**
 * =========================================================
 * ARQUIVO : /assets/css/bomads.css
 * PROJETO : BomVendedor
 * MÓDULO  : BomAds Público
 * VERSÃO  : V1.1 RESPONSIVO
 * 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;
    }
}
