/* Single Player Game View Styles */

.single-player-game {
  max-width: 95vw; /* Use viewport width to accommodate larger puzzles */
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.player-header {
  text-align: center;
  width: 100%;
}

.player-header h2 {
  font-size: 1.8em;
  font-weight: bold;
  margin: 10px 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.game-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.turn-indicator {
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.turn-indicator.my-turn {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.turn-indicator.waiting {
  background: #fff3cd;
  color: #856404;
  border: 2px solid #ffeaa7;
}

.score-display {
  font-size: 1.1em;
  text-align: center;
  padding: 8px 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.pencil-mode-toggle {
  padding: 10px 20px;
  border: 2px solid #007bff;
  background: white;
  color: #007bff;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pencil-mode-toggle:hover {
  background: #f8f9fa;
}

.pencil-mode-toggle.active {
  background: #007bff;
  color: white;
}

.single-player-board {
  margin: 20px auto;
}

/* Responsive design */
@media (max-width: 768px) {
  .single-player-game {
    padding: 10px;
    gap: 15px;
  }
  
  .player-header h2 {
    font-size: 1.5em;
  }
  
  .game-status {
    padding: 10px;
    gap: 10px;
  }
  
  .turn-indicator {
    font-size: 1.1em;
    padding: 8px 16px;
  }
}

/* Connection status styles (for multiplayer) */
.connection-status {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: bold;
  z-index: 1000;
}

.connection-status.connected {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.connection-status.disconnected {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.connection-status.connecting {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}