/* ============================================================
   Forum / notification UX additions
   - unread divider + "new messages" button in a thread
   - first-use gesture hint
   - reply count + last reply time on the thread list
   ============================================================ */

/* ---- unread divider ---- */
.unread-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--primary-dark, #0D9488);
    scroll-margin-top: 72px;
}
.unread-divider::before,
.unread-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: .35;
}

/* ---- "N new messages ↓" ----
   Lives inside #thread-input-area (position: sticky), so it stays just
   above the composer however tall the composer gets. */
.new-messages-btn {
    position: absolute;
    right: 16px;
    bottom: 100%;
    margin-bottom: 12px;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--primary, #14C7B4);
    color: var(--on-primary, #fff);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    cursor: pointer;
    z-index: 11;
}
.new-messages-btn.is-visible { display: inline-flex; }

/* ---- first-use gesture hint ---- */
.forum-gesture-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 12px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #E5E7EB);
    color: var(--text-primary, #1F2937);
    font-size: 13px;
    line-height: 1.35;
}
.forum-gesture-hint .material-icons {
    font-size: 22px;
    color: var(--primary-dark, #0D9488);
    flex: none;
}
.forum-gesture-hint-text { flex: 1; }
.forum-gesture-hint-close {
    flex: none;
    border: 0;
    background: none;
    padding: 6px 4px;
    font: inherit;
    font-weight: 600;
    color: var(--primary-dark, #0D9488);
    cursor: pointer;
}

/* ---- thread list: reply count + last reply ---- */
.thread-activity {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-secondary, #6B7280);
}
.thread-activity:empty { display: none; }
.thread-activity.is-empty { opacity: .8; }
