/* =====================================================================
   GoreWin — Canlı akış + son ödüller
   İsimler sunucu tarafında maskelenir; burada yalnızca görünüm.
   ===================================================================== */

.livewrap__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    align-items: start;
}

.livecard, .rewardcard { padding: 22px; overflow: hidden; }

.livecard__head, .rewardcard__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.livecard__head h3, .rewardcard__head h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
}
.rewardcard__head h3 i { color: #f5b301; }

.livecard__hint {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ok-fg);
}
.rewardcard__top {
    font-size: 12.5px;
    color: var(--muted);
}
.rewardcard__top b { color: var(--text-strong); }

/* ---------- Akış listesi ---------- */
.feed, .rewards {
    list-style: none;
    margin: 0; padding: 0;
    max-height: 430px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.feed::-webkit-scrollbar, .rewards::-webkit-scrollbar { width: 6px; }
.feed::-webkit-scrollbar-thumb, .rewards::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
}

.feed__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
}
.feed__row:last-child { border-bottom: 0; }

/* Yeni gelen satır yukarıdan kayarak girer (live.js ekler) */
.feed__row.is-new {
    animation: gw-feed-in .55s cubic-bezier(.22, 1, .36, 1);
}
@keyframes gw-feed-in {
    from { opacity: 0; transform: translateY(-14px); background: var(--accent-soft); }
    to   { opacity: 1; transform: none; }
}

.feed__ico {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--c) 15%, transparent);
    color: var(--c);
    font-size: 15px;
    flex: none;
}
:root[data-theme="dark"] .feed__ico { background: color-mix(in srgb, var(--c) 26%, transparent); }

.feed__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.feed__name { font-size: 14.5px; color: var(--text-strong); }
.feed__label {
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex: none;
}
.feed__amount {
    font-size: 14px;
    color: var(--ok-fg);
    font-variant-numeric: tabular-nums;
}
.feed__ago { font-size: 11.5px; color: var(--muted-2); }

.feed__empty {
    padding: 26px 4px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- Son ödüller ---------- */
.reward {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 2px 13px 14px;
    border-bottom: 1px solid var(--line);
}
.reward:last-child { border-bottom: 0; }

/* Kademe yalnızca RENK olarak görünür — rozet/etiket yok. */
.reward::before {
    content: "";
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: var(--tier);
}
.reward--diamond { --tier: var(--tier-diamond); }
.reward--gold    { --tier: var(--tier-gold); }
.reward--silver  { --tier: var(--tier-silver); }
.reward--bronze  { --tier: var(--tier-bronze); }
.reward--base    { --tier: var(--tier-base); }

.reward__ico {
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--tier) 15%, transparent);
    color: var(--tier);
    font-size: 14px;
    flex: none;
}
.reward__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.reward__name { font-size: 14.5px; color: var(--text-strong); }
.reward__item {
    font-size: 12.5px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reward__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: none;
}
.reward__amount {
    font-size: 14.5px;
    color: var(--tier);
    font-variant-numeric: tabular-nums;
}
.reward__meta small { font-size: 11.5px; color: var(--muted-2); }

@media (max-width: 900px) {
    .livewrap__grid { grid-template-columns: 1fr; }
    .feed, .rewards { max-height: 360px; }
}
