/* Estilo da barra de navegação inferior */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0;
  z-index: 100;
  height: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: transparent; /* Removido o background da nav principal */
}

/* Fundo com recorte para o ícone central */
.nav-background {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #0a3816; /* Cor padrão - será alterada via JavaScript */
  z-index: -1;
  /* Criar o recorte circular usando radial-gradient */
  mask-image: radial-gradient(circle 35px at 50% 0, transparent 35px, white 36px);
  -webkit-mask-image: radial-gradient(circle 35px at 50% 0, transparent 35px, white 36px);
  transition: background-color 0.3s ease;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: #888888;
  text-decoration: none;
  font-size: 0.75rem;
  position: relative;
  flex: 1;
  padding-bottom: 5px;
  height: 100%;
}

.bottom-nav-item.active {
  color: #ffffff;
}

.bottom-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background-color: #4eff8a;
  border-radius: 3px 3px 0 0;
}

.nav-icon-container {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  position: relative;
}

/* Garantir que as imagens dos ícones sejam sempre visíveis */
.nav-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block !important; /* Forçar exibição */
  opacity: 1 !important; /* Garantir visibilidade */
}

/* Esconder qualquer outro tipo de ícone que não seja img.nav-icon */
.nav-icon-container > *:not(img.nav-icon):not(.notification-dot) {
  display: none !important;
}

/* Estilo especial para o ícone central */
.bottom-nav-center {
  position: relative;
}

.center-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(to bottom, #4eff8a, #36d6ff);
  border-radius: 50%;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border: 3px solid #0a3816; /* Cor padrão - será alterada via JavaScript */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.center-icon .nav-icon {
  width: 70%;
  height: 70%;
}

.bottom-nav-center span {
  margin-top: 30px;
}

/* Notificação no ícone de torneio */
.notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: #ff4e4e;
  border-radius: 50%;
}

/* Ajuste para o padding do body */
body {
  padding-bottom: 60px;
}

/* Garantir que os ícones permaneçam visíveis em todos os estados */
.bottom-nav-item:hover .nav-icon,
.bottom-nav-item:active .nav-icon,
.bottom-nav-item.active .nav-icon {
  display: block !important;
  opacity: 1 !important;
}
