/* Medical Terminology Game Styles */

.game-container {
  max-width: 900px;
  margin: 0 auto;
}

.game-header {
  text-align: center;
  margin-bottom: 32px;
}

.game-header h1 {
  color: var(--blue);
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, var(--gold), var(--blue));
  color: var(--white);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(11, 61, 145, .15);
  transition: transform .3s ease, box-shadow .3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 61, 145, .2);
}

.stat-label {
  font-size: .9rem;
  opacity: .9;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
}

.game-card {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(11, 61, 145, .1);
  margin-bottom: 24px;
  border-top: 4px solid var(--gold);
}

.question-section {
  margin-bottom: 32px;
}

.question-number {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.question-text {
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.question-hint {
  font-size: 1rem;
  font-style: italic;
  padding: 12px;
  background: rgba(11, 61, 145, .05);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.answers-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.answer-btn {
  padding: 20px 24px;
  background: var(--white);
  border: 2px solid rgba(11, 61, 145, .1);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: all .3s ease;
  text-align: left;
  min-height: 70px;
  display: flex;
  align-items: center;
}

.answer-btn:hover:not(:disabled) {
  background: rgba(11, 61, 145, .05);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 61, 145, .1);
}

.answer-btn:disabled {
  cursor: not-allowed;
  opacity: .7;
}

.answer-btn.correct {
  background: rgba(34, 197, 94, .1);
  border-color: #16a34a;
  color: #16a34a;
}

.answer-btn.incorrect {
  background: rgba(239, 68, 68, .1);
  border-color: #dc2626;
  color: #dc2626;
}

.answer-btn.selected {
  background: rgba(212, 175, 55, .15);
  border-color: var(--gold);
  color: var(--blue);
}

.game-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.explanation-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, .1), rgba(11, 61, 145, .05));
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  border-left: 4px solid var(--gold);
  animation: slideIn .4s ease;
}

.explanation-card h3 {
  color: var(--blue);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

#explanationText {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--black);
  margin-bottom: 16px;
}

.explanation-details {
  background: var(--white);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.explanation-details strong {
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

.game-settings {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(11, 61, 145, .08);
}

.game-settings h3 {
  color: var(--blue);
  margin-bottom: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.settings-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: background .2s ease;
}

.settings-grid label:hover {
  background: rgba(11, 61, 145, .05);
}

.settings-grid input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.settings-grid select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(11, 61, 145, .1);
  font-size: 1rem;
  cursor: pointer;
  background: var(--white);
  color: var(--blue);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark theme for game */
body.dark .game-card {
  background: #071229;
}

body.dark .answer-btn {
  background: #071229;
  border-color: rgba(212, 175, 55, .2);
  color: #eaf5ff;
}

body.dark .answer-btn:hover:not(:disabled) {
  background: rgba(11, 61, 145, .2);
}

body.dark .explanation-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, .15), rgba(11, 61, 145, .1));
}

body.dark #explanationText {
  color: #eaf5ff;
}

body.dark .explanation-details {
  background: #081225;
}

body.dark .game-settings {
  background: #071229;
}

body.dark .question-hint {
  background: rgba(11, 61, 145, .2);
}

/* Responsive */
@media (max-width: 768px) {
  .game-header h1 {
    font-size: 2rem;
  }
  
  .question-text {
    font-size: 1.4rem;
  }
  
  .answers-section {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}
