/* ── Emoji Reaction Bars ─────────────────────────────────────────────────── */

.os-reaction-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    position: relative;
}

.os-reaction-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Pill button showing emoji + count */
.os-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 13px;
    cursor: pointer;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.os-reaction-pill:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
}

.os-reaction-pill.active {
    background: rgba(230, 0, 0, 0.18);
    border-color: rgba(230, 0, 0, 0.5);
    color: #e60000;
}

.os-reaction-pill-count {
    font-size: 11px;
    opacity: 0.85;
}

/* + button to open picker */
.os-reaction-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0;
    transition: background 0.15s;
}

.os-reaction-add-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* Guest tooltip */
.os-reaction-add-tip {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
    margin-left: 4px;
}

/* Picker panel */
.os-reaction-picker-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 4px);
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    gap: 6px;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.os-pick-emoji {
    font-size: 20px;
    cursor: pointer;
    padding: 2px 3px;
    border-radius: 4px;
    transition: background 0.1s, transform 0.1s;
    display: inline-block;
    line-height: 1;
}

.os-pick-emoji:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.25);
}

/* ── Inline mode: when the reactions container sits inside a row of action
      buttons (e.g. thread .thread-actions), render the bar inline without
      its own row/margin so it visually merges with the heart/share/reply row. */
.thread-action-reactions {
    display: inline-flex;
    align-items: center;
}
.thread-action-reactions .os-reaction-bar {
    margin-top: 0;
    gap: 4px;
}
.thread-action-reactions .os-reaction-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 14px;
}
