/* Activity Styles - Common styles for all activity types */

/* Base Activity Styles */
.activity-header {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.activity-header h3 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.activity-header p {
  margin: 0 0 12px 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.5;
}

/* Quiz Activity Styles */
.quiz-activity {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.quiz-progress {
  background: #2563eb;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.quiz-start {
  text-align: center;
  padding: 40px 20px;
}

.quiz-info {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: inline-block;
}

.quiz-info p {
  margin: 8px 0;
  font-size: 16px;
}

.start-quiz-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.start-quiz-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

.quiz-question {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.question-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
}

.question-points {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 16px;
}

.question-options {
  margin-bottom: 20px;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.option-label:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.option-label.correct {
  border-color: #10b981;
  background: #ecfdf5;
}

.option-label.incorrect {
  border-color: #ef4444;
  background: #fef2f2;
}

.option-label input[type="radio"] {
  margin-right: 12px;
}

.option-text {
  flex: 1;
  font-size: 16px;
}

.check-mark, .x-mark {
  font-size: 18px;
  font-weight: bold;
  margin-left: 8px;
}

.check-mark {
  color: #10b981;
}

.x-mark {
  color: #ef4444;
}

.question-explanation {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.question-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prev-btn, .next-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.prev-btn:hover, .next-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.prev-btn {
  background: #6b7280;
}

.prev-btn:hover {
  background: #4b5563;
}

.quiz-results {
  text-align: center;
  padding: 40px 20px;
}

.results-header {
  margin-bottom: 24px;
}

.results-header.passed h4 {
  color: #10b981;
}

.results-header.failed h4 {
  color: #ef4444;
}

.score-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}

.score-number {
  font-size: 48px;
  font-weight: 700;
  color: #1e293b;
}

.score-percentage {
  font-size: 24px;
  font-weight: 600;
  color: #64748b;
}

.results-details {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: inline-block;
}

.success-message {
  color: #10b981;
  font-weight: 600;
}

.retry-message {
  color: #ef4444;
  font-weight: 600;
}

.retry-btn, .continue-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 8px;
}

.retry-btn:hover, .continue-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.retry-btn {
  background: #f59e0b;
}

.retry-btn:hover {
  background: #d97706;
}

/* Video Activity Styles */
.video-activity {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.video-duration {
  color: #059669;
  font-weight: 500;
  font-size: 14px;
}

.video-start {
  text-align: center;
  padding: 40px 20px;
}

.video-thumbnail {
  position: relative;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 60px 40px;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s;
}

.video-thumbnail:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

.play-button {
  width: 80px;
  height: 80px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.play-button:hover {
  background: #1d4ed8;
  transform: scale(1.1);
}

.play-icon {
  color: white;
  font-size: 32px;
  margin-left: 4px; /* Optical alignment */
}

.video-info p {
  margin: 8px 0;
  color: #64748b;
}

.video-player {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.video-player video {
  border-radius: 8px;
  background: #000;
}

.video-progress {
  margin-top: 16px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #64748b;
}

.comprehension-questions {
  margin-top: 24px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.comprehension-questions h4 {
  margin: 0 0 16px 0;
  color: #1e293b;
}

.question {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.question-feedback {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.question-feedback.correct {
  background: #ecfdf5;
  color: #10b981;
  border: 1px solid #a7f3d0;
}

.question-feedback.incorrect {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.submit-questions-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-questions-btn:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
}

.submit-questions-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.video-complete, .video-completed {
  text-align: center;
  padding: 24px;
  margin-top: 24px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
}

.completion-header h4 {
  color: #10b981;
  margin: 0 0 16px 0;
}

.completion-stats {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: inline-block;
}

.completion-stats p {
  margin: 4px 0;
  font-size: 14px;
}

/* Reading Activity Styles */
.reading-activity {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.reading-time {
  color: #059669;
  font-weight: 500;
  font-size: 14px;
}

.reading-start {
  text-align: center;
  padding: 40px 20px;
}

.reading-preview {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: inline-block;
  text-align: left;
}

.content-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  font-style: italic;
  color: #64748b;
}

.start-reading-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.start-reading-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

.reading-text {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.reading-progress {
  margin-bottom: 24px;
}

.text-content {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.reading-instructions {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 16px;
}

/* Interactive Activity Styles */
.interactive-activity {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.interactive-start {
  text-align: center;
  padding: 40px 20px;
}

.game-preview {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  display: inline-block;
}

.game-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.start-interactive-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.start-interactive-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
}

.counting-game {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.objects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
}

.countable-object {
  width: 80px;
  height: 80px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.countable-object:hover {
  border-color: #2563eb;
  transform: scale(1.05);
}

.countable-object.counted {
  border-color: #10b981;
  background: #ecfdf5;
}

.countable-object img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.object-placeholder {
  font-size: 12px;
  text-align: center;
  color: #6b7280;
}

.counting-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.count-display {
  text-align: center;
}

.count-number {
  font-size: 48px;
  font-weight: 700;
  color: #2563eb;
  display: block;
}

.count-label {
  font-size: 14px;
  color: #6b7280;
}

.counting-buttons {
  display: flex;
  gap: 12px;
}

.reset-btn, .submit-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.reset-btn {
  background: #6b7280;
  color: white;
}

.reset-btn:hover {
  background: #4b5563;
}

.submit-btn {
  background: #10b981;
  color: white;
}

.submit-btn:hover:not(:disabled) {
  background: #059669;
}

.submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.generic-interactive {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.config-preview {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}

.config-preview pre {
  font-size: 12px;
  color: #475569;
  margin: 8px 0 0 0;
}

.complete-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.complete-btn:hover {
  background: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .quiz-activity, .video-activity, .reading-activity, .interactive-activity {
    padding: 16px;
  }
  
  .activity-header {
    padding: 16px;
  }
  
  .activity-header h3 {
    font-size: 20px;
  }
  
  .quiz-question {
    padding: 20px;
  }
  
  .question-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .question-points {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .option-label {
    padding: 16px;
  }
  
  .score-display {
    flex-direction: column;
    gap: 8px;
  }
  
  .score-number {
    font-size: 36px;
  }
  
  .video-player, .reading-text, .counting-game {
    padding: 16px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-icon {
    font-size: 24px;
  }
  
  .objects-container {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 12px;
  }
  
  .countable-object {
    width: 60px;
    height: 60px;
  }
  
  .counting-controls {
    flex-direction: column;
    gap: 16px;
  }
}