/* Game View Styles for SingleBoardGameView */

/* Player Header Styles */
.player-header h2 {
  text-align: center;
  margin: 10px 0;
}

.game-master-indicator {
  font-size: 0.8em;
}

/* Player Row Styles in Score Table */
.player-row {
  font-weight: normal;
  border: 2px solid rgba(221, 221, 221, 0.5) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin: 4px 0 !important;
  transition: all 0.2s ease;
  border-left: 4px solid var(--player-color, #ddd) !important;
}

.player-row.own-player {
  font-weight: bold;
  border: 3px solid rgba(0, 0, 0, 0.2) !important;
  border-left: 6px solid var(--player-color, #ddd) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.player-name {
  font-weight: bold;
}

.score-total {
  font-weight: bold;
}

/* Scoreboard Table Styling */
.scoreboard-table {
  border-collapse: separate;
  border-spacing: 0 8px;
  width: 100%;
}

.scoreboard-table th {
  background: rgba(108, 117, 125, 0.1);
  padding: 12px 8px;
  text-align: center;
  font-weight: bold;
  color: #495057;
  border: none;
}

.scoreboard-table td {
  padding: 12px 8px;
  text-align: center;
  border: none;
}

/* Player Row Card Styling */
.player-row {
  border: 2px solid rgba(221, 221, 221, 0.5) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border-left: 4px solid var(--player-color, #ddd) !important;
}

.player-row.own-player {
  border: 3px solid rgba(0, 0, 0, 0.2) !important;
  border-left: 6px solid var(--player-color, #ddd) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.player-row td {
  border: none !important;
  background-color: inherit !important;
}

/* Game Settings Button */
.game-settings-button {
  background: #4CAF50;
  border: none;
  color: white;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s;
}

.game-settings-button:hover {
  background-color: #45a049;
}

/* Game Settings Modal */
.game-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 95vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Option Cards */
.option-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  background: white;
  min-width: 120px;
  text-align: center;
  transition: all 0.2s;
}

.option-card.premium {
  border-color: #FFD700;
}

.option-card.selected {
  border-color: #4CAF50;
  background-color: #f0f8f0;
}

.option-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.option-difficulty {
  font-size: 12px;
  color: #666;
}

.premium-icon {
  color: #FFD700;
}

/* Option Section */
.option-section {
  margin-bottom: 20px;
}

.option-section h3 {
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

/* Options Container */
.options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Premium Legend */
.premium-legend {
  background: #fffbf0;
  border: 1px solid #FFD700;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 12px;
  color: #B8860B;
}

.premium-legend-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.premium-legend-title .premium-icon {
  color: #FFD700;
}

/* Premium Required Dialog */
.premium-required-dialog .dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.premium-required-dialog .dialog-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 0.3s ease;
}

.premium-required-dialog .dialog-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.premium-required-dialog .upgrade-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.premium-required-dialog .cancel-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Confirmation Dialog */
.settings-confirmation-dialog .dialog-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Completion Conflict Dialog - restore red gradient background */
.completion-conflict-dialog .dialog-content {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
  max-width: 450px;
  text-align: center;
}

.settings-confirmation-dialog .dialog-content p,
.completion-conflict-dialog .dialog-content p {
  white-space: pre-line;
}

/* Completion Conflict Dialog Button Styles */
.completion-conflict-dialog .dialog-content h4 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: bold;
}

.completion-conflict-dialog .dialog-content p {
  margin: 12px 0;
  line-height: 1.5;
}

.completion-conflict-dialog .dialog-content small {
  opacity: 0.9;
  font-style: italic;
}

.completion-conflict-dialog .dialog-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.completion-conflict-dialog button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.completion-conflict-dialog .cancel-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.completion-conflict-dialog .cancel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.completion-conflict-dialog .confirm-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #ee5a52;
  border: 2px solid white;
}

.completion-conflict-dialog .confirm-btn:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Error Text */
.error-text {
  color: red;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}