/* بخش پرسش و پاسخ */
#qa { padding: 80px 0; }
.qa-wrap { max-width: 760px; margin: 0 auto; }
.qa-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.qa-compose { margin-bottom: 28px; }
.qa-compose h3 { font-size: 1.05rem; margin-bottom: 4px; }
.qa-compose .qa-hint { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.qa-compose .qa-hint b { color: var(--accent); font-weight: 600; }
.qa-input, .qa-textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s; direction: rtl;
}
.qa-textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
.qa-input:focus, .qa-textarea:focus { outline: none; border-color: var(--accent); }
.qa-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.qa-row .spacer { flex: 1; }
.qa-count { color: var(--text-muted); font-size: 0.82rem; }
.qa-btn {
  background: var(--accent); color: #0a0a0a; border: none; border-radius: 12px;
  padding: 11px 24px; font-weight: 700; font-size: 0.95rem; font-family: inherit; cursor: pointer;
  transition: all 0.2s;
}
.qa-btn:hover { background: var(--accent-hover); }
.qa-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.qa-btn.ghost { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); font-weight: 500; }
.qa-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.qa-btn.danger { background: transparent; color: #ef4444; border: 1.5px solid #3a1c1c; font-weight: 500; padding: 8px 16px; }
.qa-btn.danger:hover { background: #2a1010; }
.qa-btn.small { padding: 8px 18px; font-size: 0.88rem; }
.qa-error { color: #f87171; font-size: 0.88rem; margin-top: 10px; min-height: 1.2em; }
.qa-list { display: flex; flex-direction: column; gap: 16px; }
.qa-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.qa-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.qa-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg-hover);
  border: 1px solid var(--border); display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem; color: var(--text-muted); flex-shrink: 0;
}
.qa-name { font-weight: 700; }
.qa-time { color: var(--text-muted); font-size: 0.8rem; margin-right: auto; }
.qa-body { color: #dcdcdc; line-height: 1.9; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.qa-replies { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.qa-reply {
  background: rgba(201,162,39,0.07); border: 1px solid rgba(201,162,39,0.25);
  border-right: 3px solid var(--accent); border-radius: 12px; padding: 14px 16px;
}
.qa-reply .qa-avatar { background: var(--accent); color: #0a0a0a; border-color: var(--accent); width: 30px; height: 30px; font-size: 0.85rem; }
.qa-badge {
  background: var(--accent); color: #0a0a0a; font-size: 0.72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
}
.qa-empty { text-align: center; color: var(--text-muted); padding: 36px 0; }
.qa-me { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qa-admin-actions { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 14px; }
.qa-admin-actions .qa-textarea { min-height: 70px; }
@media (max-width: 700px) { #qa { padding: 56px 0; } .qa-item { padding: 16px; } }

.qa-actions { display: flex; gap: 14px; margin-top: 10px; }
.qa-link { background: none; border: none; color: var(--text-muted); font-family: inherit; font-size: 0.82rem; cursor: pointer; padding: 0; }
.qa-link:hover { color: var(--accent); }
.qa-link.danger:hover { color: #ef4444; }
.qa-notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(201,162,39,0.1); border: 1px solid rgba(201,162,39,0.35); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.qa-notice span { flex: 1; min-width: 180px; }
.qa-tag { background: #3a1c1c; color: #f87171; font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
