/* Sadeleştirilmiş Ders Öğrenme Sistemi */

.lesson-learning-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
}

/* Basit ders başlığı */
.lesson-header {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn {
  background: #DD0000;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: #BB0000;
}

.lesson-header h2 {
  color: #DD0000;
  margin: 0;
  font-size: 1.4rem;
}

.progress-text {
  color: #666;
  font-size: 14px;
}

.lesson-progress {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #DD0000 0%, #FFCE00 100%);
  transition: width 0.5s ease;
}

.progress-text {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

/* Ana öğrenme alanı - kayma önleyici sabit pozisyon */
.learning-area {
  margin-bottom: 15px;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  transform: translateY(0);
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobil için öğrenme alanı */
@media (max-width: 768px) {
  .learning-area {
    min-height: 300px;
    padding: 10px;
  }
}

/* Sadeleştirilmiş kelime kartı - sabit boyut */
.word-learning-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
  width: 100%;
  max-width: 500px;
  min-height: 350px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Kelime resim konteyneri */
.word-image-container {
  text-align: center;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  padding: 15px;
}

.word-image {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  object-fit: cover;
}

.word-image:hover {
  transform: scale(1.05);
}

/* Mobil için kelime kartı */
@media (max-width: 768px) {
  .word-learning-card {
    min-height: 280px;
    padding: 15px;
    max-width: 100%;
  }
}

/* Smooth animasyon keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.word-info {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.german-word {
  font-size: 1.8rem;
  font-weight: bold;
  color: #DD0000;
  margin-bottom: 8px;
  text-align: center;
  word-wrap: break-word;
  max-width: 100%;
  overflow-wrap: break-word;
}

.speaker-btn {
  background: #DD0000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 5px;
  overflow: hidden;
}

.speaker-btn:hover {
  background: #bb0000;
}

.pronunciation {
  font-size: 1.2rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 15px;
}

.turkish-meaning {
  font-size: 2rem;
  color: #374151;
  font-weight: 600;
}

/* Örnek cümle bölümü */
.example-sentence {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #FFCE00;
}

.example-sentence h4 {
  margin: 0 0 15px 0;
  color: #374151;
  font-size: 1.1rem;
}

.example-german {
  font-size: 1.3rem;
  color: #DD0000;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.example-turkish {
  font-size: 1.1rem;
  color: #6b7280;
  font-style: italic;
}

/* Kelime pratiği */
.word-practice {
  text-align: center;
}

.word-practice h4 {
  margin: 0 0 15px 0;
  color: #374151;
  font-size: 1.1rem;
}

.practice-btn {
  background: #DD0000;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.practice-btn:hover {
  background: #bb0000;
  transform: translateY(-2px);
}

/* Ders kontrolleri */
.lesson-controls {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}

.control-btn {
  background: #374151;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 200px;
}

.control-btn:hover:not(:disabled) {
  background: #1f2937;
}

.control-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Test soruları */
.test-question {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.test-question h3 {
  color: #DD0000;
  margin: 0 0 20px 0;
  font-size: 1.3rem;
}

.question-text {
  font-size: 1.2rem;
  color: #374151;
  margin-bottom: 20px;
  font-weight: 600;
}

.sentence-with-blank {
  font-size: 1.4rem;
  color: #DD0000;
  margin: 20px 0;
  font-weight: bold;
  font-style: italic;
}

/* Cevap seçenekleri */
.answer-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.option-btn {
  background: white;
  border: 2px solid #d1d5db;
  color: #374151;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-btn:hover:not(:disabled) {
  border-color: #DD0000;
  background-color: rgba(221, 0, 0, 0.05);
}

.option-btn.correct {
  background-color: #22c55e;
  border-color: #22c55e;
  color: white;
}

.option-btn.wrong {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
}

/* Kelime karıştırma */
.scrambled-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
}

.letter-btn {
  background: #DD0000;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.letter-btn:hover {
  background: #bb0000;
  transform: scale(1.1);
}

.word-construction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
}

#constructed-word {
  padding: 12px 20px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 1.2rem;
  text-align: center;
  min-width: 200px;
  background: #f9fafb;
}

.clear-btn {
  background: #6b7280;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background: #4b5563;
}

.submit-btn {
  background: #FFCE00;
  color: #1f2937;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.submit-btn:hover {
  background: #fbbf24;
}

/* Cevap geri bildirimi */
.answer-feedback {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
  text-align: center;
  border: 3px solid;
}

.answer-feedback.correct {
  border-color: #22c55e;
  background-color: rgba(34, 197, 94, 0.05);
}

.answer-feedback.wrong {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

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

.feedback-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #374151;
}

.continue-btn {
  background: #DD0000;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.continue-btn:hover {
  background: #bb0000;
}

/* Ders tamamlama */
.lesson-completion {
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.completion-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.lesson-completion h2 {
  color: #DD0000;
  margin: 0 0 15px 0;
  font-size: 2rem;
}

.lesson-completion p {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.completion-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: #DD0000;
  margin-bottom: 5px;
}

.stat span {
  color: #6b7280;
  font-size: 0.9rem;
}

.completion-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Dark mode kodları - Ders öğrenme sistemi */
body.dark-mode .lesson-header,
body.dark-mode .word-learning-card,
body.dark-mode .test-question,
body.dark-mode .lesson-completion {
  background-color: #2A2D34;
  color: #e5e7eb;
}

body.dark-mode .lesson-header h2,
body.dark-mode .test-question h3,
body.dark-mode .lesson-completion h2 {
  color: #FFCE00;
}

body.dark-mode .back-to-lessons {
  border-color: #FFCE00;
  color: #FFCE00;
}

body.dark-mode .back-to-lessons:hover {
  background-color: rgba(255, 206, 0, 0.1);
}

body.dark-mode .german-word {
  color: #FFCE00;
}

body.dark-mode .example-sentence {
  background-color: #374151;
  border-left-color: #FFCE00;
}

body.dark-mode .example-german {
  color: #FFCE00;
}

body.dark-mode .speaker-btn,
body.dark-mode .practice-btn,
body.dark-mode .continue-btn {
  background-color: #FFCE00;
  color: #1f2937;
}

body.dark-mode .speaker-btn:hover,
body.dark-mode .practice-btn:hover,
body.dark-mode .continue-btn:hover {
  background-color: #fbbf24;
}

body.dark-mode .option-btn {
  background-color: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

body.dark-mode .option-btn:hover:not(:disabled) {
  border-color: #FFCE00;
  background-color: rgba(255, 206, 0, 0.1);
}

body.dark-mode .letter-btn {
  background-color: #FFCE00;
  color: #1f2937;
}

body.dark-mode .letter-btn:hover {
  background-color: #fbbf24;
}

body.dark-mode #constructed-word {
  background-color: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
  .lesson-learning-container {
    padding: 15px;
  }
  
  .german-word {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .answer-options {
    grid-template-columns: 1fr;
  }
  
  .scrambled-letters {
    gap: 8px;
  }
  
  .letter-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .completion-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .completion-actions {
    flex-direction: column;
  }
}