/* ===== QUIZ PAGE STYLES ===== */

.quiz-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.quiz-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 36px 32px;
  width: 100%;
  max-width: 580px;
}

/* ===== START SCREEN ===== */
.quiz-start-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 16px;
}

.quiz-start-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  color: #f4a900;
}

.quiz-start-sub {
  text-align: center;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.quiz-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 20px;
}

.rule-item {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

/* ===== PROGRESS BAR ===== */
.progress-bar-container {
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  height: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f4a900, #e07b00);
  border-radius: 100px;
  transition: width 0.4s ease;
  width: 20%;
}

/* ===== QUESTION META (counter + timer) ===== */
.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.question-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(244, 169, 0, 0.15);
  border: 2px solid #f4a900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #f4a900;
  transition: all 0.3s;
}

.timer-circle.danger {
  background: rgba(255, 59, 59, 0.15);
  border-color: #ff3b3b;
  color: #ff3b3b;
  animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* ===== QUESTION TEXT ===== */
.question-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #ffffff;
  white-space: pre-line;
}

/* ===== ANSWER OPTIONS ===== */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.option-btn {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
}

.option-btn:hover:not(:disabled) {
  background: rgba(244, 169, 0, 0.12);
  border-color: rgba(244, 169, 0, 0.4);
}

.option-btn.correct {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #22c55e;
}

.option-btn.wrong {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.option-btn.reveal {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: rgba(255,255,255,0.4);
}

/* ===== FUN FACT BOX ===== */
.fact-box {
  background: linear-gradient(135deg, rgba(244,169,0,0.12), rgba(244,169,0,0.05));
  border: 1px solid rgba(244,169,0,0.3);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 16px;
}

.fact-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

/* ===== SCORE SCREEN ===== */
.score-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
}

.score-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.score-display {
  font-size: 4.5rem;
  font-weight: 900;
  color: #f4a900;
  line-height: 1;
  margin-bottom: 8px;
}

.score-out-of {
  font-size: 2rem;
  color: rgba(255,255,255,0.4);
}

.score-message {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.score-breakdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.breakdown-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.breakdown-dot.correct {
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid #22c55e;
}

.breakdown-dot.wrong {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid #ef4444;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .quiz-card {
    padding: 24px 18px;
  }
  .question-text {
    font-size: 1rem;
  }
  .score-display {
    font-size: 3.5rem;
  }
}
