/* ============================================================================
   PACK — auto-posted "win" cards in the community feed
   Navy #0a1628 / #0f1a2e / #16223c + gold #c8a03c. No emoji icons (inline SVG).
   A win is a normal community post with is_auto=1; renderPost() adds .pc-win
   to the article and a small gold badge. Keep it subtle — it sits in the feed
   alongside member posts and uses the existing reaction pills.
   ============================================================================ */

/* The whole card gets a faint gold edge so wins read as "system celebrations"
   without shouting over real member posts. */
.post-card.pc-win {
    border: 1px solid rgba(200, 160, 60, 0.35);
    background: linear-gradient(180deg, rgba(200, 160, 60, 0.06), rgba(15, 26, 46, 0));
}

/* Small inline badge next to the name/time row. */
.pc-win-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c8a03c;
    background: rgba(200, 160, 60, 0.12);
    border: 1px solid rgba(200, 160, 60, 0.4);
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}

.pc-win-badge svg {
    width: 12px;
    height: 12px;
    stroke: #c8a03c;
    flex: 0 0 auto;
}

/* The win sentence itself reads a touch bolder than ordinary post text. */
.post-card.pc-win .pc-text {
    font-weight: 600;
    color: #f5f7fb;
}

/* Privacy toggle sub-label hint for the "share wins" row (reuses settings-item). */
.settings-item .pf-win-hint {
    color: #8a96a8;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
}

/* The wins row is the only privacy item with a 2nd line of hint text. Stack the
   label over its hint (instead of side-by-side) so the toggle stays on-card —
   it was overflowing the right edge. The wins row is always the first child. */
#privacy-toggles .settings-item:first-child .settings-item-left {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
#privacy-toggles .settings-item:first-child .settings-item-text,
#privacy-toggles .settings-item:first-child .pf-win-hint { text-align: left; width: 100%; }
#privacy-toggles .settings-item:first-child .settings-item-right {
    flex: 0 0 auto;
}
