/**
 * Estilos Públicos para o Plugin Brilha Brasil
 * Versão: 2.9.0 (Responsividade Total: Margens e Tamanhos)
 */

:root {
    --bb-border-color: #FF416C;
}

/* ==========================================================================
   1. CONTAINER PRINCIPAL (DESKTOP PADRÃO)
   ========================================================================== */
.bb-container {
    padding: 15px 0 !important;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center; 
    
    /* Tamanhos e Margens puxados do painel (Desktop) */
    height: var(--bb-h-desktop, 100px);
    margin: var(--bb-mt-desktop, 15px) var(--bb-mr-desktop, 0px) var(--bb-mb-desktop, 15px) var(--bb-ml-desktop, 0px) !important;
}

.bb-story-thumbnail {
    width: var(--bb-w-desktop, 70px); 
    height: var(--bb-w-desktop, 70px); 
}

/* ==========================================================================
   2. RESPONSIVIDADE: TABLET E MOBILE
   ========================================================================== */
/* TABLET */
@media screen and (max-width: 1024px) {
    .bb-container {
        height: var(--bb-h-tablet, 100px);
        margin: var(--bb-mt-tablet, 15px) var(--bb-mr-tablet, 0px) var(--bb-mb-tablet, 15px) var(--bb-ml-tablet, 0px) !important;
    }
    .bb-story-thumbnail {
        width: var(--bb-w-tablet, 70px); 
        height: var(--bb-w-tablet, 70px); 
    }
}

/* MOBILE */
@media screen and (max-width: 850px) {
    .bb-container {
        height: var(--bb-h-mobile, 120px);
        margin: var(--bb-mt-mobile, 15px) var(--bb-mr-mobile, 0px) var(--bb-mb-mobile, 15px) var(--bb-ml-mobile, 0px) !important;
    }
    .bb-story-thumbnail {
        width: var(--bb-w-mobile, 90px); 
        height: var(--bb-w-mobile, 90px); 
    }
}

/* ==========================================================================
   3. AJUSTES DO SWIPER (SCROLL CONTÍNUO E BLINDAGEM)
   ========================================================================== */
.bb-swiper-container .swiper-wrapper {
    transition-timing-function: linear !important;
    align-items: center;
}

.bb-swiper-container .swiper-button-next,
.bb-swiper-container .swiper-button-prev {
    display: none !important;
}

.bb-swiper-container {
    width: 100%;
    height: auto;
}

.bb-swiper-container .swiper-slide {
    width: auto !important; 
    flex-shrink: 0;
    margin-left: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   4. ESTILO DO ITEM "STORY" (CÍRCULOS)
   ========================================================================== */
.bb-story {
    display: block;
    transition: transform 0.2s ease-in-out;
    margin: 0 !important; 
    padding: 0 !important;
    text-decoration: none !important;
}

.bb-container.hover-enabled .bb-story:hover {
    transform: scale(1.05);
}

.bb-story-thumbnail {
    border-radius: 50%;
    border: 3px solid var(--bb-border-color); 
    padding: 3px;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
}

.bb-story-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 50%;
    margin: 0 !important;
}

/* ==========================================================================
   5. CONTROLE DE EXIBIÇÃO POR DISPOSITIVO (INJEÇÃO MÚLTIPLA)
   ========================================================================== */
.bb-display-wrapper {
    display: none; /* Esconde todos por padrão */
    width: 100%;
}

/* Desktop (Telas maiores que 1024px) */
@media screen and (min-width: 1025px) {
    .bb-display-wrapper.show-desktop { display: block; }
}

/* Tablet (Entre 851px e 1024px) */
@media screen and (min-width: 851px) and (max-width: 1024px) {
    .bb-display-wrapper.show-tablet { display: block; }
}

/* Mobile (Telas até 850px) */
@media screen and (max-width: 850px) {
    .bb-display-wrapper.show-mobile { display: block; }
}