/* Quiz page */

.hero { padding: 15px 0; }
.quiz-section { background-color: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin: 0 auto; max-width: 800px; }
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.quiz-stats { display: flex; gap: 30px; }
.quiz-stats span { font-size: 1.1rem; }
.quiz-stats strong { color: var(--primary-color); font-size: 1.3rem; }
.question-text { font-size: 1.4rem; font-weight: 600; margin-bottom: 25px; color: var(--primary-dark); }
.options-container { display: grid; gap: 15px; margin-bottom: 30px; }
.option-btn { background-color: var(--white); border: 2px solid var(--border-color); border-radius: var(--radius); padding: 15px 20px; font-size: 1.1rem; text-align: left; cursor: pointer; transition: all 0.3s ease; color: var(--text-color); }
.option-btn:hover:not(:disabled) { background-color: var(--light-bg); border-color: var(--primary-light); transform: translateY(-2px); }
.option-btn:disabled { cursor: not-allowed; opacity: 0.7; }
.option-btn.correct { background-color: #e8f5e9; border-color: var(--primary-color); color: var(--primary-dark); opacity: 1; }
.option-btn.incorrect { background-color: #ffebee; border-color: #f44336; color: #c62828; opacity: 1; }
.dark-mode .option-btn.correct { background-color: #1b5e20; color: #e8f5e9; }
.dark-mode .option-btn.incorrect { background-color: #8b0000; border-color: #ff5252; color: #ffcdd2; }

.result-container { margin: 25px 0; padding: 20px; border-radius: var(--radius); text-align: center; font-size: 1.2rem; font-weight: 600; min-height: 80px; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: var(--light-bg); }
.result-container.correct { background-color: #e8f5e9; color: var(--primary-dark); }
.result-container.incorrect { background-color: #ffebee; color: #c62828; }
.result-container.complete { background-color: #e3f2fd; color: var(--primary-dark); }
.dark-mode .result-container.correct { background-color: #1b5e20; color: #e8f5e9; }
.dark-mode .result-container.incorrect { background-color: #8b0000; color: #ffcdd2; }
.dark-mode .result-container.complete { background-color: #0d47a1; color: #e3f2fd; }
.explanation { font-size: 1rem; font-weight: normal; margin-top: 10px; opacity: 0.9; }

.quiz-actions { display: flex; justify-content: center; margin-top: 20px; }
.progress-container { width: 100%; height: 8px; background-color: var(--light-bg); border-radius: 4px; margin-bottom: 30px; overflow: hidden; }
.progress-bar { height: 100%; background-color: var(--primary-color); width: 0%; transition: width 0.5s ease; }

@keyframes celebrate { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } }
.celebrate { animation: celebrate 0.5s ease; }
.shake { animation: shake 0.5s ease; }

@media (max-width: 768px) {
  .quiz-section { padding: 30px 20px; }
  .quiz-header { flex-direction: column; gap: 15px; text-align: center; }
  .quiz-stats { justify-content: center; }
}

@media (max-width: 480px) {
  .question-text { font-size: 1.2rem; }
  .option-btn { padding: 12px 15px; font-size: 1rem; }
}
