/* ============================================
   Travel-Exclusive Games Styling
   ============================================ */

/* Role-Play Game */
.roleplay-game {
  max-width: 900px;
  margin: 0 auto;
}

.roleplay-stage {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

.roleplay-instruction {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.roleplay-bubble {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.roleplay-bubble.player-bubble {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
}

.roleplay-bubble.npc-bubble {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
}

.speaker-name {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.dialogue-text {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.dialogue-text.french {
  font-weight: 600;
}

.dialogue-text.english {
  font-size: 1rem;
  opacity: 0.7;
  font-style: italic;
}

.roleplay-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-practice {
  background: var(--accent-secondary);
}

.roleplay-transcript {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.roleplay-transcript h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.transcript-lines {
  max-height: 300px;
  overflow-y: auto;
}

.transcript-line {
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.transcript-line.player-line {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-left: 3px solid var(--accent-primary);
}

.transcript-line.npc-line {
  background: var(--bg-secondary);
  border-left: 3px solid var(--border-color);
}

/* Phrase Builder Game */
.phrasebuilder-game {
  max-width: 900px;
  margin: 0 auto;
}

.phrase-challenge {
  margin: 2rem 0;
}

.challenge-prompt {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  text-align: center;
}

.prompt-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}

.phrase-construction {
  margin: 2rem 0;
}

.phrase-construction h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.phrase-area {
  min-height: 80px;
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  color: var(--text-muted);
  font-style: italic;
}

.word-bank {
  margin: 2rem 0;
}

.word-bank h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.word-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.word-block {
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.word-block:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.word-block.selected {
  background: var(--accent-primary);
  color: white;
  position: relative;
}

.remove-word {
  margin-left: 0.5rem;
  font-weight: bold;
  opacity: 0.7;
}

.phrase-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.hint-section {
  text-align: center;
  margin-top: 2rem;
}

.btn-hint {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-hint:hover {
  background: var(--bg-secondary);
}

.hint-text {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-style: italic;
}

.feedback-panel {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.feedback-panel.correct {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.feedback-panel.incorrect {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.feedback-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.answer-comparison {
  margin: 2rem 0;
}

.your-answer, .correct-answer {
  margin: 1rem 0;
}

.phrase-display {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin: 0.5rem 0;
}

.phrase-display.correct {
  color: var(--success-color, #22c55e);
}

.btn-audio-small {
  background: var(--accent-secondary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Cultural Tips Game */
.culturaltips-game {
  max-width: 800px;
  margin: 0 auto;
}

.cultural-intro {
  text-align: center;
  padding: 3rem 2rem;
}

.cultural-question {
  margin: 2rem 0;
}

.question-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 2rem;
}

.question-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.question-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.question-context {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  text-align: left;
}

.cultural-reveal {
  text-align: center;
}

.btn-reveal {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.cultural-answer {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.answer-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.cultural-answer h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.tip-content {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.cultural-tip {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.tip-example {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tip-example strong {
  color: var(--accent-primary);
}

.learning-note {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-primary);
}

.learning-note strong {
  color: var(--accent-primary);
}

.btn-next {
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .roleplay-bubble {
    padding: 1rem;
  }
  
  .dialogue-text {
    font-size: 1rem;
  }
  
  .word-blocks {
    gap: 0.5rem;
  }
  
  .word-block {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .phrase-display {
    font-size: 1.1rem;
  }
  
  .question-card h3 {
    font-size: 1.1rem;
  }
}
