/* product.css */
#game-content.waiting_black #ia-processing-overlay,
#game-content.waiting_white #ia-processing-overlay {
  display: block;
  cursor: not-allowed;
}
.game-container {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Alinha no topo */
  gap: 50px;
  margin: 20px auto; /* Centraliza verticalmente */
  max-width: 1200px; /* Limita largura máxima */
}

.main-area {
  position: relative;
  width: fit-content; /* Ajusta ao conteúdo */
  margin: 0 auto; /* Centraliza dentro do container */
}

.hexagonal-board {
  position: relative;
  margin: 0 auto; /* Centraliza horizontalmente */
  overflow: visible; /* Permite que células ultrapassem os limites se necessário */
}

/* Indicadores de status */
.turn-indicator {
  text-align: center;
  margin-bottom: 1rem;
}

#current-turn {
  font-size: 2rem; 
  vertical-align: middle;
}

.hex-cell:hover {
  background: #925757;
  transform: scale(1.1);
}

.hex-cell {
  position: absolute;
  background: #0a0a0a; /* Cor de fundo das células */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  /* Centraliza o conteúdo */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Garante que o texto fique acima do ::before */
  color: white; /* Cor do texto */
  font-size: 24px; /* Tamanho do emoji */
  z-index: 1; /* Camada superior */
}

/* Borda usando pseudo-elemento */
.hex-cell::before {
  content: '';
  position: absolute;
  top: 1px;  /* Espessura da borda */
  left: 1px;
  width: calc(100% - 2px);  
  height: calc(100% - 2px);
  background: #ffffff; /* Cor da borda */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1; /* Envia para trás do conteúdo */
}

.hex-cell.preview {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.hex-cell.hex-cell-odd-col::before {
  background: #f1eded  !important; /* Cinza muito claro */
}

.color-selection {
  padding: 5px;
  border-radius: 8px;
  display: flex;
  gap: 50px;
  justify-content: center;
}

.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.color-option label {
  font-size: 1.1em;
  cursor: pointer;
  user-select: none;
}


.player-panel {
    padding: 1rem;
    border-radius: 15px;
    min-width: 150px;
}

.player-panel, .main-area {
    flex: 0 1 auto; /* Mantém proporções naturais */
}

.player-panel h2 {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 1.2rem;
}

/* Stocks */
.stock-panel, .main-area {
  flex: 0 1 auto; /* Mantém proporções naturais */
}

.stock-panel h2 {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 1.2rem;
}


.stock-black, .stock-white {
  display: grid;
  grid-template-columns: repeat(9, 20px);
  gap: 2px;
  justify-content: center;
  padding: 5px;
}

.stock-black div {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.stock-white div {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}


#black-stock.hidden,
#white-stock.hidden {
  display: none;
}

/* Status do Jogo */
#black-count,
#white-count {
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
  margin: 5px 0;
}

#black-count { color: #2d2d2d; }
#white-count { color: #666; }

/* Estilos para as legendas hexagonais */
.board-label {
    position: absolute;
    z-index: 10;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-align: center;
    pointer-events: none;
}
/* Estilos para os containers de rótulos e setas */
.col-label-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.col-arrow {
    font-size: 16px;
    margin-top: -10px;
    margin-left: -30px;
    position: relative;
    z-index: 12;
}

/* Estilos para as legendas hexagonais */
.board-label {
    position: relative;
    z-index: 10;
    font-size: 14px;
    color: #333;
    text-align: center;
    pointer-events: none;
}

.row-label {
    width: 20px;
    text-align: right;
}

.col-label {
    width: 20px;
}

.defasada .col-label {
    color: #666;
    font-style: italic;
}

.row-labels-left, 
.col-labels-top, 
.col-labels-bottom {
    position: absolute;
    top: 0;
    left: 0;
}

/* Responsivo */
@media (max-width: 768px) {
  .game-container {
    flex-direction: column;
    align-items: center;
  }

  .hexagonal-board {
    height: 30vh;
  }
  
  .hex-cell {
    width: 35px;
    height: 40.42px;
  }

  .stock-panel {
    width: 100%;
    text-align: center;
  }

  .stock-black, .stock-white {
    grid-template-columns: repeat(4, 25px);
    gap: 5px;
  }

}

/* Efeitos de Destaque */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.current-turn {
  animation: pulse 1.5s infinite;
}