/* ---------- report a problem (js/29-report-problem.js) ----------
   The quiet flag under an answered question, the modal it opens, and the
   learner's Your reports list in the Help Centre. */

.report-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
}

.report-link:hover,
.report-link:focus-visible {
    color: var(--accent);
}

.miss-card .report-link {
    margin-top: 6px;
}

/* --- the modal --- */
.modal.modal-report {
    max-width: 520px;
}

.report-q {
    padding: 12px 14px;
    background: var(--bg-raised);
    border-left: 3px solid var(--border-strong);
    border-radius: var(--radius);
}

.report-q p {
    margin: 4px 0 0;
    font-size: .88rem;
    max-height: 7.5em;
    overflow-y: auto;
}

.report-label {
    display: block;
    margin: 16px 0 8px;
    font-size: .84rem;
    font-weight: 600;
}

.report-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-reason {
    padding: 7px 12px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
}

.report-reason.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

#reportText {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    font-size: .88rem;
    resize: vertical;
}

.report-error {
    min-height: 1.2em;
    margin: 6px 0 0;
    color: var(--danger);
    font-size: .8rem;
}

.report-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* --- Your reports, Help Centre --- */
.my-report-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.my-report-list li {
    padding: 14px 0;
    border-top: 1px dashed var(--border);
}

.my-report-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
}

.my-report-head .support-meta {
    margin: 0;
}

.my-report-state {
    padding: 2px 8px;
    border-radius: var(--radius);
    font-family: 'IBM Plex Mono', monospace;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: var(--gold-soft);
    color: var(--gold);
}

.my-report-state.is-resolved {
    background: var(--success-soft);
    color: var(--success);
}

.my-report-state.is-dismissed {
    background: var(--bg-sunken);
    color: var(--text-muted);
}

.my-report-q {
    margin: 8px 0 4px;
    font-size: .9rem;
}

.my-report-text {
    margin: 0 0 4px;
    font-size: .84rem;
    color: var(--text-muted);
}

.my-report-empty {
    margin: 12px 0 0;
    font-size: .88rem;
    color: var(--text-muted);
}
