/* ============================================
   Q&A page
   ============================================ */
.qa-stat {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.85rem;
  padding: 1rem 0.75rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
body[data-theme="dark"] .qa-stat {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}
.qa-stat__value {
  font-size: 2rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: #7c3aed;
  line-height: 1;
}
body[data-theme="dark"] .qa-stat__value { color: #c4b5fd; }
.qa-stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-top: 0.4rem;
}
body[data-theme="dark"] .qa-stat__label { color: #94a3b8; }

.qa-ask {
  border-radius: 1.1rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(236, 72, 153, 0.03)) #fff;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.08);
}
body[data-theme="dark"] .qa-ask {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.08)) #0f172a;
  border-color: rgba(124, 58, 237, 0.35);
}
.qa-ask__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
body[data-theme="dark"] .qa-ask__title { color: #f1f5f9; }

.qa-list__heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}
body[data-theme="dark"] .qa-list__heading { color: #f1f5f9; }

.qa-item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
body[data-theme="dark"] .qa-item {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
}
.qa-item--pinned {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(251, 191, 36, 0.03)) #fff;
}
body[data-theme="dark"] .qa-item--pinned {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.04)) #0f172a;
}
.qa-item__pin {
  position: absolute;
  top: -10px;
  right: 16px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.qa-item__question {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.qa-item__avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.qa-item__qbody { flex: 1; min-width: 0; }
.qa-item__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.3rem;
}
body[data-theme="dark"] .qa-item__meta { color: #cbd5e1; }
.qa-item__qtext {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1e293b;
  white-space: pre-wrap;
  word-wrap: break-word;
}
body[data-theme="dark"] .qa-item__qtext { color: #f1f5f9; }

.qa-item__answer {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.07), rgba(16, 185, 129, 0.04));
  border-left: 3px solid #22c55e;
  border-radius: 0.65rem;
  padding: 0.9rem 1.05rem;
  margin-left: 3rem;
}
body[data-theme="dark"] .qa-item__answer {
  background: rgba(34, 197, 94, 0.1);
  border-left-color: #22c55e;
}
.qa-item__answer-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #047857;
  margin-bottom: 0.3rem;
}
body[data-theme="dark"] .qa-item__answer-tag { color: #6ee7b7; }
.qa-item__atext {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #1e293b;
  word-wrap: break-word;
}
body[data-theme="dark"] .qa-item__atext { color: #e2e8f0; }

@media (max-width: 575px) {
  .qa-item__answer { margin-left: 0; }
}
