/* ==========================================================================
   STYLE 1: MEDICAL & EXPERT INVESTIGATION
   Стиль официального вестника ревматологии и доказательной медицины
   ========================================================================== */

.medical-header {
  background: #ffffff;
  border-bottom: 2px solid #0284c7;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.medical-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.medical-logo-icon {
  width: 42px;
  height: 42px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
}

.medical-title-group h4 {
  font-size: 1.1rem;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.medical-title-group span {
  font-size: 0.78rem;
  color: #64748b;
}

.verified-stamp {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Doctor Profile Card */
.doctor-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

.doctor-avatar-wrap {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  border: 3px solid #e0f2fe;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.comment-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
  border: 2px solid #bae6fd;
}

.doctor-info h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #0c4a6e;
}

.doctor-regalia {
  font-size: 0.85rem;
  color: #0369a1;
  line-height: 1.4;
}

/* Interactive Joint Quiz */
.quiz-widget {
  background: #ffffff;
  border: 2px solid #0284c7;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 30px 0;
  box-shadow: var(--shadow-md);
}

.quiz-header {
  text-align: center;
  margin-bottom: 20px;
}

.quiz-header h3 {
  color: #0c4a6e;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.quiz-header p {
  font-size: 0.92rem;
  color: #64748b;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.quiz-question-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #1e293b;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 1rem;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  transform: translateX(4px);
}

.quiz-loading {
  display: none;
  text-align: center;
  padding: 30px;
}

.quiz-loading.active {
  display: block;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-result {
  display: none;
  background: #f0fdf4;
  border: 2px solid #22c55e;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.quiz-result.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.quiz-result-title {
  color: #15803d;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
