/* src/styles/games/chessGame.css */
.chess-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }
  
  .chess-board {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border: 2px solid #2c3e50;
    background: #34495e;
  }
  
  .chess-square {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .chess-square.light {
    background-color: #ecf0f1;
  }
  
  .chess-square.dark {
    background-color: #95a5a6;
  }
  
  .chess-square.selected {
    background-color: #3498db !important;
  }
  
  .chess-square.last-move {
    background-color: #f1c40f !important;
  }
  
  .chess-square.valid-move {
    background-color: #2ecc71 !important;
  }
  
  .chess-piece {
    width: 80%;
    height: 80%;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
  }
  
  .chess-piece:hover {
    transform: scale(1.1);
  }
  
  .chess-piece.white {
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
  }
  
  .chess-piece.black {
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3)) brightness(0.2);
  }
  
  .square-notation {
    position: absolute;
    font-size: 0.7rem;
    color: #7f8c8d;
    pointer-events: none;
  }
  
  .file-notation {
    bottom: 2px;
    left: 2px;
  }
  
  .rank-notation {
    top: 2px;
    right: 2px;
  }
  
  .puzzle-info {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .puzzle-question {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2c3e50;
  }
  
  .puzzle-difficulty {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
  }
  
  .puzzle-hint {
    font-size: 0.9rem;
    color: #e67e22;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #fff3e0;
    border-radius: 4px;
  }
  
  .hint-button {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .hint-button:hover:not(:disabled) {
    background: #2980b9;
  }
  
  .hint-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
  }
  
  .moves-attempted {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
  }
  
  /* Animation for piece movement */
  @keyframes movePiece {
    from {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    to {
      transform: scale(1);
    }
  }
  
  .chess-piece.moving {
    animation: movePiece 0.3s ease;
  }
  
  /* Responsive adjustments */
  @media (max-width: 480px) {
    .chess-board {
      max-width: 320px;
    }
  
    .square-notation {
      font-size: 0.6rem;
    }
  
    .puzzle-question {
      font-size: 1rem;
    }
  }

  .chess-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #666;
    font-size: 1.1rem;
  }
  
  .chess-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #ddd;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }