/* Quiz Components - Reusable CSS Classes */

/* Main Quiz Container */
.quiz-task-detail {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Question Header */
.quiz-question-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.quiz-question-number {
  flex-shrink: 0;
}

.question-icon {
  font-size: 24px;
  color: #5b6b79;
}

.quiz-question-content {
  flex: 1;
}

.quiz-question-title {
  font-size: 14px;
  font-weight: 600;
  color: #5b6b79;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-question-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  font-weight: 500;
}

/* Description Section */
.quiz-description {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #5b6b79;
}

.description-icon {
  font-size: 16px;
  color: #5b6b79;
  flex-shrink: 0;
}

.description-content p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Points Display */
.quiz-points {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: #fff3cd;
  border-radius: 6px;
  border: 1px solid #ffeaa7;
  width: fit-content;
}

.points-icon {
  font-size: 14px;
}

.points-text {
  font-size: 14px;
  font-weight: 600;
  color: #856404;
}

/* Answer Options */
.quiz-answers-section {
  margin-bottom: 20px;
}

.answers-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.answers-grid {
  display: grid;
  gap: 12px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.answer-option:hover {
  border-color: #5b6b79;
  background: #f1f3f4;
}

.answer-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #5b6b79;
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.answer-text {
  flex: 1;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.correct-indicator {
  position: absolute;
  right: 16px;
  color: #28a745;
  font-size: 18px;
  font-weight: bold;
}

/* Correct Answer Display */
.quiz-correct-answer {
  margin-top: 20px;
  padding: 16px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
}

.correct-answer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.correct-icon {
  font-size: 16px;
}

.correct-title {
  font-size: 14px;
  font-weight: 600;
  color: #155724;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.correct-answer-content p {
  margin: 0;
  font-size: 15px;
  color: #155724;
  font-weight: 500;
}

/* Writing Task Specific Sections */
.quiz-theme-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #e3f2fd;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.theme-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.theme-icon {
  font-size: 16px;
  color: #2196f3;
}

.theme-title {
  font-size: 14px;
  font-weight: 600;
  color: #1976d2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-content p {
  margin: 0;
  font-size: 15px;
  color: #1565c0;
  line-height: 1.6;
  font-weight: 500;
}

.quiz-image-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #f3e5f5;
  border-radius: 8px;
  border-left: 4px solid #9c27b0;
}

.image-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.image-icon {
  font-size: 16px;
  color: #9c27b0;
}

.image-title {
  font-size: 14px;
  font-weight: 600;
  color: #7b1fa2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.image-content {
  text-align: center;
}

.task-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Audio Section */
.quiz-audio-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #e8f5e8;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}

.audio-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.audio-icon {
  font-size: 16px;
  color: #4caf50;
}

.audio-title {
  font-size: 14px;
  font-weight: 600;
  color: #388e3c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.audio-content {
  text-align: center;
}

.audio-player {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Vocabulary Task Specific */
.quiz-vocab-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #fff3e0;
  border-radius: 8px;
  border-left: 4px solid #ff9800;
}

.vocab-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.vocab-icon {
  font-size: 16px;
  color: #ff9800;
}

.vocab-title {
  font-size: 14px;
  font-weight: 600;
  color: #f57c00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vocab-content p {
  margin: 0;
  font-size: 15px;
  color: #e65100;
  line-height: 1.6;
  font-weight: 500;
}

/* Matching Task Specific */
.quiz-matching-section {
  margin-bottom: 20px;
}

.matching-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.matching-table th {
  background: #5b6b79;
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.matching-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.matching-table tr:last-child td {
  border-bottom: none;
}

.matching-table tr:hover td {
  background: #f1f3f4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .quiz-task-detail {
    padding: 16px;
  }
  
  .quiz-question-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .answers-grid {
    gap: 8px;
  }
  
  .answer-option {
    padding: 10px 12px;
  }
  
  .quiz-theme-section,
  .quiz-image-section,
  .quiz-audio-section,
  .quiz-vocab-section {
    padding: 12px;
  }
  
  .task-image {
    max-width: 100%;
  }
  
  .matching-table {
    font-size: 14px;
  }
  
  .matching-table th,
  .matching-table td {
    padding: 8px 12px;
  }
} 