/**
 * Nostalgia Files Quiz Styles
 */

.quiz-container {
  max-width: 700px;
  margin: 2em auto;
  padding: 2em;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.quiz-progress {
  margin-bottom: 2em;
}

.quiz-progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B4513, #D2691E);
  transition: width 0.3s ease;
}

.quiz-progress-text {
  text-align: center;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #666;
}

/* Question */
.quiz-question h3 {
  font-size: 1.4em;
  line-height: 1.4;
  color: #333;
  margin-bottom: 1.5em;
  text-align: center;
}

/* Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.quiz-option {
  padding: 1em 1.5em;
  font-size: 1.1em;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.quiz-option:hover:not(:disabled) {
  border-color: #8B4513;
  background: #fff8f0;
  transform: translateX(5px);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-option.correct {
  border-color: #28a745;
  background: #d4edda;
  color: #155724;
}

.quiz-option.incorrect {
  border-color: #dc3545;
  background: #f8d7da;
  color: #721c24;
}

/* Feedback */
.quiz-feedback {
  margin-top: 1.5em;
  padding: 1em 1.5em;
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

.quiz-feedback.correct {
  background: #d4edda;
  border-left: 4px solid #28a745;
}

.quiz-feedback.incorrect {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

.quiz-feedback strong {
  display: block;
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.quiz-feedback p {
  margin: 0;
  color: #555;
}

/* Navigation */
.quiz-navigation {
  margin-top: 1.5em;
  text-align: center;
}

.quiz-next-btn {
  padding: 1em 2.5em;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Results */
.quiz-results {
  text-align: center;
  padding: 2em;
  animation: fadeIn 0.5s ease;
}

.quiz-results-emoji {
  font-size: 4em;
  margin-bottom: 0.25em;
}

.quiz-results h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 1em;
}

.quiz-score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  margin-bottom: 1.5em;
}

.quiz-score-number {
  font-size: 3em;
  font-weight: 700;
  color: #8B4513;
}

.quiz-score-percent {
  font-size: 2em;
  color: #666;
  padding: 0.5em 1em;
  background: #f0f0f0;
  border-radius: 8px;
}

.quiz-results-message {
  font-size: 1.2em;
  color: #555;
  margin-bottom: 2em;
}

.quiz-restart-btn {
  padding: 1em 3em;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-bottom: 2em;
}

.quiz-restart-btn:hover {
  transform: translateY(-2px);
}

/* Share */
.quiz-share {
  padding-top: 1.5em;
  border-top: 1px solid #eee;
}

.quiz-share p {
  color: #666;
  margin-bottom: 1em;
}

.quiz-share-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.quiz-share-btn {
  padding: 0.75em 1.5em;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.quiz-share-btn:hover {
  opacity: 0.9;
  color: #fff;
}

.quiz-share-btn.facebook {
  background: #1877f2;
}

.quiz-share-btn.twitter {
  background: #1da1f2;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .quiz-container {
    padding: 1.5em;
    margin: 1em;
  }

  .quiz-question h3 {
    font-size: 1.2em;
  }

  .quiz-option {
    font-size: 1em;
    padding: 0.875em 1em;
  }

  .quiz-score {
    flex-direction: column;
    gap: 1em;
  }

  .quiz-score-number {
    font-size: 2.5em;
  }

  .quiz-share-buttons {
    flex-direction: column;
  }
}
