/* Reactions, polls, daily bonus, trends (assets/social-extras.js) */

/* ---------- Reactions ---------- */
.xr-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.xr-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--xn-hover, rgba(255, 255, 255, .04));
    color: var(--text-main);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: transform .12s ease, border-color .15s ease, background-color .15s ease;
}
.xr-chip span { font-size: 15px; line-height: 1; }
.xr-chip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.xr-chip:active { transform: scale(.94); }
.xr-chip.is-mine { border-color: var(--xn-accent-line, rgba(139, 123, 255, .45)); background: var(--xn-accent-soft, rgba(139, 123, 255, .14)); color: var(--xn-accent-text, #b8adff); }
.xr-picker {
    position: fixed;
    z-index: 1000003;
    display: flex;
    gap: 2px;
    padding: 6px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
    opacity: 0;
    transform: translateY(6px) scale(.96);
    transition: opacity .14s ease, transform .14s ease;
}
.xr-picker.is-open { opacity: 1; transform: none; }
.xr-picker button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease;
}
.xr-picker button:hover { transform: scale(1.18) translateY(-2px); background: var(--xn-hover, rgba(255, 255, 255, .06)); }

/* ---------- Polls ---------- */
.xp-poll { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 10px; }
.xp-head { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.xp-opt {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--xn-accent-line, rgba(139, 123, 255, .4));
    background: transparent;
    color: var(--xn-accent-text, #b8adff);
    font: inherit;
    font-weight: 700;
    font-size: 14.5px;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.xp-opt:hover { background: var(--xn-accent-soft, rgba(139, 123, 255, .12)); }
.xp-opt:active { transform: scale(.99); }
.xp-res {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--xn-hover, rgba(255, 255, 255, .04));
    color: var(--text-main);
    font-size: 14.5px;
}
.xp-res i { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .08); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.xp-res.is-mine i { background: var(--xn-accent-soft, rgba(139, 123, 255, .22)); }
.xp-res span, .xp-res b { position: relative; }
.xp-res span { font-weight: 600; overflow-wrap: anywhere; }
.xp-res b { font-variant-numeric: tabular-nums; }
.xp-foot { font-size: 12.5px; color: var(--text-muted); }

.xp-composer { margin-top: 10px; padding: 12px; border-radius: 16px; border: 1px solid var(--border-color); background: var(--xn-hover, rgba(255, 255, 255, .03)); display: flex; flex-direction: column; gap: 8px; }
.xp-composer-head { display: flex; align-items: center; gap: 8px; color: var(--text-main); }
.xp-composer-head span { flex: 1; font-size: 12.5px; color: var(--text-muted); }
.xp-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.xp-inputs { display: flex; flex-direction: column; gap: 6px; }
.xp-input { height: 42px !important; font-size: 15px !important; }
.xp-add { align-self: flex-start; border: 0; background: none; color: var(--xn-accent-text, #b8adff); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 2px; }
.xp-compose-btn { border: 0; background: none; cursor: pointer; color: var(--xn-accent-text, #b8adff); }

/* ---------- Daily bonus ---------- */
.xd-card {
    margin: 10px 16px 0;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(139, 123, 255, .28);
    background:
        radial-gradient(140% 120% at 0% 0%, rgba(139, 123, 255, .18), transparent 60%),
        var(--card-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 36px -22px rgba(124, 92, 255, .7);
    transition: opacity .35s ease, transform .35s ease;
}
.xd-card.is-claimed { opacity: 0; transform: scale(.97); }
.xd-top { display: flex; align-items: center; gap: 12px; }
.xd-gift { font-size: 30px; filter: drop-shadow(0 6px 12px rgba(139, 123, 255, .5)); animation: xd-bob 2.4s ease-in-out infinite; }
@keyframes xd-bob { 50% { transform: translateY(-3px) rotate(-4deg); } }
.xd-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--text-main); }
.xd-copy small { color: var(--text-muted); font-size: 12.5px; }
.xd-claim { margin: 0 !important; width: auto !important; padding: 10px 16px !important; white-space: nowrap; }
.xd-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 12px; }
.xd-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 0;
    border-radius: 10px;
    background: var(--xn-hover, rgba(255, 255, 255, .04));
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.xd-day small { font-size: 10px; font-weight: 600; opacity: .7; }
.xd-day.is-done { color: var(--xn-accent-text, #b8adff); background: var(--xn-accent-soft, rgba(139, 123, 255, .12)); }
.xd-day.is-today { color: #0b0918; background: linear-gradient(180deg, #a094ff, #6c5cf5); box-shadow: 0 6px 14px -6px rgba(139, 123, 255, .8); }
.xd-day.is-milestone { color: #fbbf24; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .5); }
.xd-day.is-today.is-milestone { color: #3a2a00; background: linear-gradient(180deg, #fcd34d, #f59e0b); box-shadow: 0 6px 14px -6px rgba(245, 158, 11, .8); }
.xd-mile { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(251, 191, 36, .16); color: #fbbf24; font-size: 12px; font-weight: 700; }
@media (max-width: 600px) { .xd-card { margin: 8px 8px 0; } }

/* ---------- Trends ---------- */
.xt-box { margin: 4px 16px 12px; border-radius: 18px; border: 1px solid var(--border-color); background: var(--card-bg); overflow: hidden; }
.xt-box:empty { display: none; }
.xt-head { padding: 12px 16px 6px; font-weight: 800; color: var(--text-main); }
.xt-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 0;
    background: none;
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.xt-row:hover { background: var(--xn-hover, rgba(255, 255, 255, .04)); }
.xt-n { width: 20px; color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.xt-copy { display: flex; flex-direction: column; min-width: 0; }
.xt-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-copy small { color: var(--text-muted); font-size: 12.5px; }
@media (max-width: 600px) { .xt-box { margin: 4px 8px 10px; } }

@media (prefers-reduced-motion: reduce) {
    .xd-gift { animation: none; }
    .xr-chip, .xr-picker, .xp-res i { transition: none; }
}
