/* ============================================
   BARRA INFERIOR MOBILE - ESTILO G1
   Navegação fixa estilo app nativo
   ============================================ */

.bc-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    display: none;
    padding: 8px 0;
}

/* Mostrar apenas no mobile */
@media (max-width: 768px) {
    .bc-mobile-bottom-bar {
        display: block;
    }
    
    /* Compensar espaço da barra fixa */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Garantir que conteúdo não fique por trás */
    .site-content {
        margin-bottom: 0 !important;
    }
}

/* Container da navegação */
.bc-mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
}

/* Itens da navegação */
.bc-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 80px;
    position: relative;
}

/* Estado ativo */
.bc-mobile-nav-item.active {
    color: #1E40AF;
}

.bc-mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #1E40AF;
    border-radius: 0 0 3px 3px;
}

/* Feedback tátil ao clicar */
.bc-mobile-nav-item:active {
    transform: scale(0.95);
    background-color: rgba(30, 64, 175, 0.05);
    border-radius: 8px;
}

/* Ícones */
.bc-mobile-nav-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.bc-mobile-nav-item.active .bc-mobile-nav-icon {
    stroke-width: 2.5;
}

/* Labels */
.bc-mobile-nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
}

.bc-mobile-nav-item.active .bc-mobile-nav-label {
    font-weight: 600;
}

/* Prevenir seleção de texto */
.bc-mobile-nav-item,
.bc-mobile-nav-label {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Animação suave ao aparecer */
@media (max-width: 768px) {
    .bc-mobile-bottom-bar {
        animation: slideUp 0.3s ease-out;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Acessibilidade - focus visível */
.bc-mobile-nav-item:focus {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Badge para notificações (futuro) */
.bc-mobile-nav-item .badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ============================================
   BARRA MOBILE - ANIMAÇÃO AO ABRIR FILTROS
   Adicionar em: assets/css/global/mobile-buttom-bar.css
   (ao final do arquivo existente)
   ============================================ */

/* Estado oculto: barra desce suavemente para fora da tela */
@media (max-width: 768px) {
    .bc-mobile-bottom-bar {
        /* Garante que a transição funcione a partir do estado normal */
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
        opacity: 1;
    }

    /* Classe adicionada pelo JS quando filtro abre */
    .bc-mobile-bottom-bar.bc-bar-hidden {
        transform: translateY(100%);
        opacity: 0;
        /* Manter pointer-events desligados para não interceptar toques */
        pointer-events: none;
    }
}