/* Chess tactics trainer */

.chess-trainer {
  max-width: 1100px;
}

.chess-trainer__panel {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1rem 1.25rem;
}

.chess-trainer__groups {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .chess-trainer__groups {
    grid-template-columns: 1fr 1fr;
  }
}

.chess-trainer__group h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 0.5rem;
}

.chess-trainer__tactic {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.chess-trainer__tactic input {
  margin-top: 0.3rem;
  margin-right: 0.5rem;
}

.chess-trainer__tactic-name {
  font-weight: 600;
}

.chess-trainer__tactic-desc {
  display: block;
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.3;
}

.chess-trainer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.chess-trainer__board-wrap {
  max-width: 480px;
  margin: 0 auto;
}

#chess-board {
  width: 100%;
}

.chess-trainer__status {
  min-height: 3rem;
  font-size: 1.05rem;
}

.chess-trainer__status.is-error {
  color: #dc3545;
  font-weight: 600;
}

.chess-trainer__status.is-success {
  color: #28a745;
  font-weight: 600;
}

.chess-trainer__status.is-info {
  color: #004085;
}

.chess-trainer__meta {
  font-size: 0.95rem;
  color: #495057;
}

.chess-trainer__session {
  display: none;
}

.chess-trainer__session.is-active {
  display: block;
}

/* Highlight last move squares lightly via chessboard.js classes if present */
.chess-trainer .highlight-correct {
  box-shadow: inset 0 0 0 4px rgba(40, 167, 69, 0.55);
}

.chess-trainer .highlight-wrong {
  box-shadow: inset 0 0 0 4px rgba(220, 53, 69, 0.55);
}
