/* Întrebări și răspunsuri publice pe anunț (views/partials/questions.ejs) și căsuța din „Contul meu” */
.qa { margin: 0 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; }
.qa__head h2 { font-size: 1.25rem; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 8px; }
.qa-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: .8rem; font-weight: 700; }
.qa-sub { color: #4b5563; font-size: .92rem; margin-top: 4px; }
.qa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.qa-list, .qa-mine, .qa-pending { display: grid; gap: 12px; margin-top: 14px; }
.qa-item { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; background: #fff; }
.qa-item.is-flash { box-shadow: 0 0 0 3px #bfdbfe; }
.qa-q { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: #111827; line-height: 1.45; overflow-wrap: anywhere; }
.qa-tag { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #f3f4f6; color: #374151; font-size: .78rem; font-weight: 800; margin-top: 1px; }
.qa-meta { display: flex; gap: 6px; align-items: center; color: #6b7280; font-size: .82rem; margin: 6px 0 0 34px; }

/* Răspunsul autorului anunțului: evidențiat */
.qa-a { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #eff6ff; border-left: 3px solid #2563eb; }
.qa-tag--a { background: #2563eb; color: #fff; }
.qa-a > div { min-width: 0; }
.qa-a p { color: #1f2937; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; margin-top: 4px; }
.qa-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.qa-author { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: 999px; background: #1d4ed8; color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .01em; }
.qa-meta-inline { color: #4b5563; font-size: .8rem; }

.qa-item--mine { background: #fffbeb; border-color: #fde68a; }
.qa-item--pending { background: #fff; border-color: #fcd34d; }
.qa-pending h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; color: #92400e; font-size: .98rem; }
.qa-pending h3 small { font-weight: 400; color: #6b7280; }

.qa-answer-form { margin-top: 10px; display: grid; gap: 8px; }
.qa-answer-form textarea, .qa-form textarea { width: 100%; resize: vertical; min-height: 80px; }
.qa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 6px; }
.qa-btn { display: inline-flex; align-items: center; gap: 6px; }
.qa-link { background: none; border: 0; padding: 0; font-size: .85rem; color: #2563eb; cursor: pointer; text-decoration: underline; }
.qa-link--del { color: #b91c1c; }
.qa-edit { margin-top: 8px; }
.qa-edit summary { cursor: pointer; color: #2563eb; font-size: .85rem; }

.qa-empty { margin-top: 12px; color: #4b5563; font-size: .92rem; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 12px; padding: 12px 14px; }
.qa-ask { margin-top: 14px; }
.qa-form { margin-top: 12px; display: grid; gap: 8px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; background: #f9fafb; }
.qa-form[hidden], .qa-ask [hidden] { display: none; }
.qa-label { font-weight: 600; color: #111827; font-size: .95rem; }
.qa-small { color: #6b7280; font-size: .8rem; line-height: 1.45; }
.qa-counter { text-align: right; margin-top: -4px; }
.qa-captcha { min-height: 78px; }
.qa-err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 10px; font-size: .88rem; }
.qa-flash { margin-top: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.qa-flash--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.qa-flash[hidden] { display: none; }
/* reCAPTCHA are 304 px lățime: pe ecranele foarte înguste se micșorează, ca să nu iasă din pagină */
@media (max-width: 360px) { .qa-captcha { transform: scale(.88); transform-origin: 0 0; } }

/* „Contul meu”: întrebările primite */
.qa-inbox { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; margin-bottom: 24px; }
.qa-inbox h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 600; color: #111827; }
.qa-inbox__count { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .78rem; font-weight: 700; }
.qa-inbox__listing { display: block; font-size: .82rem; color: #2563eb; margin: 0 0 6px 34px; overflow-wrap: anywhere; }
