/* SZ17 Literature Module - Centralized Styles */
/* Premium UI v2 compliant - 2025-12-01 */

:root {
  --lit-max-width: 1280px;
  --lit-padding: 3rem 2rem 2rem;
  --lit-border: 2px solid #3b82f6;
  --lit-radius: 16px;
  --lit-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.lit-container {
  max-width: var(--lit-max-width);
  margin: 0 auto;
  padding: var(--lit-padding);
  background: #ffffff;
  border-radius: var(--lit-radius);
  box-shadow: var(--lit-shadow);
}

.lit-header {
  border-bottom: var(--lit-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.lit-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.lit-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #64748b;
}

.meta-badge {
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.audio-player {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #3b82f6;
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2rem 0;
}

.audio-title {
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.audio-title::before {
  content: '🔊';
  font-size: 1.5rem;
}

audio {
  width: 100%;
  border-radius: 12px;
  outline: none;
}

.content-section {
  margin: 2.5rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
}

.main-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.key-points {
  background: #f8fafc;
  padding: 1.75rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 4px solid #0d6efd;
}

.key-points ul {
  margin: 0 0 0 1.5rem;
  line-height: 1.8;
  padding: 0;
}

.key-points li {
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.quiz-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 2px solid #3b82f6;
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.quiz-item {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quiz-question {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

.quiz-options {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz-options li {
  padding: 0.85rem 1.25rem;
  margin: 0.75rem 0;
  background: #f8fafc;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.quiz-options li:hover {
  background: #3b82f6;
  color: white;
  border-color: #2563eb;
  transform: translateX(6px);
}

.quiz-options li.correct {
  background: #10b981;
  color: white;
  border-color: #059669;
  font-weight: 700;
}

.quiz-explanation {
  background: #eff6ff;
  padding: 1rem 1.25rem;
  border-left: 4px solid #3b82f6;
  margin-top: 1rem;
  font-size: 0.95rem;
  display: none;
  border-radius: 8px;
}

.quiz-explanation.show {
  display: block;
}

.references {
  background: #f8fafc;
  padding: 1.75rem;
  border-radius: 12px;
  margin-top: 2.5rem;
  border: 1px solid #e2e8f0;
}

.ref-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.ref-item:last-child {
  border-bottom: none;
}

.ref-title {
  font-weight: 700;
  color: #0d6efd;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.ref-url {
  font-size: 0.85rem;
  color: #64748b;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

.ref-type {
  font-size: 0.75rem;
  background: #0d6efd;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  margin-left: 0.5rem;
  display: inline-block;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .lit-container {
    padding: 2rem 1.5rem;
  }
  
  .lit-title {
    font-size: 2rem;
  }
  
  .main-text {
    font-size: 1rem;
  }
  
  .quiz-options li {
    padding: 0.75rem 1rem;
  }
}
