/* Spelling Bee Game Styles */

.spellingbee-game {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #f6f5ef;
}

.game-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 2rem;
  overflow-y: auto;
}

.hexagon {
  width: 300px;
  height: 300px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
  place-items: center;
}

.center-letter {
  grid-column: 2;
  grid-row: 2;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d4a574;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
  transition: all 0.2s ease;
}

.center-letter:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.outer-letter {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #e0dfd8;
  color: #222;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.outer-letter:hover {
  background: #f0f0f0;
  border-color: #d4a574;
  transform: scale(1.05);
}

.input-area {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.word-input {
  padding: 1rem;
  font-size: 1.5rem;
  border: 2px solid #e0dfd8;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: white;
  font-family: inherit;
}

.word-input:focus {
  outline: none;
  border-color: #d4a574;
}

.input-controls {
  display: flex;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: #d4a574;
  color: white;
}

.btn-primary:hover {
  background: #c49660;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 165, 116, 0.2);
}

.btn-secondary {
  background: #f0f0f0;
  color: #222;
  border: 1px solid #e0dfd8;
}

.btn-secondary:hover {
  background: #e5e5e5;
  border-color: #d4a574;
}

.found-words {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.found-word {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  background: white;
  border: 1px solid #e0dfd8;
  border-radius: 6px;
  font-weight: 500;
  text-transform: uppercase;
}

.found-word span:first-child {
  color: #222;
}

.points {
  color: #d4a574;
  font-weight: 700;
}

.message {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: #d4a574;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .hexagon {
    width: 240px;
    height: 240px;
    gap: 0.8rem;
  }

  .center-letter {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .outer-letter {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .input-area {
    max-width: 90%;
  }

  .found-words {
    max-width: 90%;
  }
}
