/* FUNDO TRANSPARENTE PARA ITENS E DADOS DAS PAGINAS estilo
   CRAFT E CENTER
*/

.bgitem {
    background: linear-gradient(45deg, #22242547, #6c787d99);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* width: 250px; */
    min-height: 280px;
    transition: 0.3s ease;
    justify-content: center;
}


.bgitem:hover {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* BOTOES ESTILO CRAFT COM CLIQUE EM VERDE */

.button-wrapper button {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    background-color: rgb(85, 145, 214);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.button-wrapper button:hover {
    background-color: #45a049;
}

/* CSS DO MEU NOVO MENU */
/* Font Awesome para ícones */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Navbar geral */
.game-navbar {
background-image: linear-gradient(45deg, #3082a870, #2196F3);
  background-color: #2e3d53b0;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container flex da navbar */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center; /* centraliza os links */
  flex-wrap: wrap;
  position: relative;
}

/* Logo */
.nav-logo {
  position: absolute;
  left: 20px;
  top: 60%;
  transform: translateY(-50%);
  z-index: 1010;
}

.logo-img {
  height: 120px; /* logo maior */
  image-rendering: pixelated;
  transition: 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Botão mobile */
.menu-togglenew {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1020;
  cursor: pointer;
}

/* Links principais */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: center; /* centraliza links */
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links > li > a {
  /* background: linear-gradient(45deg, #22242547, #6c787d99); */
  border-radius: 4px;
  padding: 10px 15px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 3px 3px 10px #01010169;
    display: flex;
  align-items: center;    /* centraliza o conteúdo verticalmente */
  justify-content: center; /* opcional: centraliza ícones e texto */
  
}

.nav-links > li > a:hover {
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  background: linear-gradient(45deg, #3abf3a99, #4caf50cc);
}


/* Dropdown atualizado */
.dropdown {
  display: flex;
  flex-direction: column; /* mantém botão em cima e submenu abaixo */
  align-items: center;    /* centraliza horizontalmente o botão */
}


/* Dropdown atualizado com animação */
/* Dropdown atualizado com animação */
.dropdown-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  position: absolute;
  top: 150%; /* sempre 30% abaixo do botão */
  left: 50%;
  transform: translateX(-50%) translateY(10px); /* leve animação inicial */
  background-image: linear-gradient(45deg, #236685d1, #2196F3);
  border-radius: 12px;
  padding: 10px;
  min-width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  gap: 10px;

  opacity: 0;           /* invisível por padrão */
  visibility: hidden;   /* invisível por padrão */
  transition: opacity 0.6s ease, transform 0.6s ease; /* animação */
  z-index: 100;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0px); /* animação suave */
}

/* Itens em 2 colunas */
.dropdown-menu li:not(.divider) {
  width: calc(50% - 10px); /* 2 colunas */
  margin: 4px 0;
}

.dropdown-menu a {
  color: white;
  text-decoration: none;
  border-radius: 8px;
  background: linear-gradient(45deg, #22242547, #6c787d99);
  transition: 0.2s ease;
  
  display: flex;               
  align-items: center;         
  justify-content: center;     
  
  padding: 6px 10px;           
  min-height: 26px;            
  font-size: 13px;
  text-align: center;          
}

.dropdown-menu a:hover {
  background: linear-gradient(45deg, #3abf3a99, #4caf50cc);
}

/* Divider ocupa 100% */
.dropdown-menu .divider {
  width: 100%;
  text-align: center;
  margin: 8px 0;
  font-weight: bold;
  color: #FFD700;
  border-bottom: 1px solid #FFD70050;
  flex: 0 0 100%; 
}

/* Mobile */
@media (max-width: 768px) {
  .menu-togglenew {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    text-align: center;
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    flex-direction: column;
    gap: 5px;
    min-width: 100%;
  }

  .dropdown-menu li {
    width: 100%; /* 1 coluna no mobile */
  }

  .nav-logo {
    position: relative;
    left: 0;
    order: 1;
    margin: 0 auto;
    transform: none;
  }

  .nav-container {
    justify-content: space-between; /* logo central no mobile com botão à direita */
    align-items: center;
  }
}
