/* ============================================================
   NAVBAR MOBILE - Sistema de Navegação Responsiva
   ============================================================ */

/* Navbar mobile - inicialmente oculto */
.navbar-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998; /* Abaixo dos menus laterais */
  background: #ffffff;
  height: 60px;
  padding: 0 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.3s ease;
}

/* Escurecer navbar quando menu está aberto */
.navbar-mobile.menu-aberto {
  opacity: 0.5;
  pointer-events: none;
}

.navbar-mobile .navbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-mobile .navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.navbar-mobile .navbar-right {
  display: flex;
  align-items: center;
}

/* Botão hambúrguer */
.hamburger-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.hamburger-btn:hover {
  background: #f0f0f0;
}

/* Logo mobile (40% do tamanho original) */
.navbar-mobile .menu-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.navbar-mobile .menu-logo img {
  height: 21.6px !important; /* 40% de 54px */
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  object-fit: contain !important;
}

/* Botão ranking */
.ranking-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.ranking-btn:hover {
  background: #f0f0f0;
}

/* Overlay - REMOVIDO - não é mais necessário */
.menu-overlay {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ajustes na coluna-1 para mobile */
@media (max-width: 1750px) {
  .navbar-mobile {
    display: flex;
  }
  
  /* Garantir que todos os botões estejam visíveis */
  .hamburger-btn,
  .ranking-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
  }
  
  /* Ajustar container principal */
  .container-principal {
    padding-top: 60px; /* Espaço para navbar */
  }
  
  /* Ocultar coluna-1 inicialmente */
  .coluna-1 {
    position: fixed;
    top: 0; /* Começa do topo, cobrindo o navbar */
    left: -280px; /* Escondido à esquerda */
    width: 280px;
    height: 100vh; /* Altura total da tela */
    z-index: 10000; /* Acima de tudo */
    transition: left 0.3s ease;
    background: #f8f8f8;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .coluna-1.ativo {
    left: 0; /* Mostra o menu */
  }
  
  /* Ocultar coluna-3 inicialmente */
  .coluna-3 {
    position: fixed;
    top: 0; /* Começa do topo, cobrindo o navbar */
    right: -300px; /* Escondido à direita */
    width: 300px;
    height: 100vh; /* Altura total da tela */
    z-index: 10000; /* Acima de tudo */
    transition: right 0.3s ease;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .coluna-3.ativo {
    right: 0; /* Mostra o ranking */
  }
  
  /* Ajustar coluna-2 para ocupar toda a largura */
  .coluna-2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 60px);
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Animações suaves */
.coluna-1,
.coluna-3 {
  transition: transform 0.3s ease, left 0.3s ease, right 0.3s ease;
}

/* Botões com estado ativo */
.hamburger-btn.ativo,
.ranking-btn.ativo {
  background: #e0e0e0;
  color: var(--azul-escuro, #333);
}
