/* =====================================================================
   LikedWin — Threads sahnesi (lws--threads, thr-*)
   Kabuk: organik-hit ohs-* + sahne-motor lws-* (önce yüklenir). Burada
   yalnız Threads'e özel görünümler: profil, ileti dizisi (yuvarlak avatar
   + ince dikey çizgi), yeniden yayınla / ••• menüleri, yanıt kutusu,
   "Yeni zincir" alıntı sayfası, içgörüler. Threads sade ve iki temalı:
   zemin/yazı site token'larından gelir (açıkta beyaz, koyuda koyu), siyah
   düğmeler koyu temada açık renge döner. Gradyan YOK.
   ===================================================================== */

.lws--threads {
    --lws-brand: #000;
    --lws-brand-ink: #fff;
    --lws-brand-soft: rgba(0, 0, 0, .07);
    --thr-red: #ff3040;
    --thr-blue: #0095f6;
    --thr-m1: #eadfd2; --thr-m1i: #a07b5c;
    --thr-m2: #d9c6b4; --thr-m2i: #7d5b41;
    --thr-m3: #d5ddcc; --thr-m3i: #6b7f5a;
}
:root[data-theme="dark"] .lws--threads {
    --lws-brand: #f3f5f7; --lws-brand-ink: #000; --lws-brand-soft: rgba(243, 245, 247, .12);
    --thr-m1: #3b322a; --thr-m1i: #d2ae8c;
    --thr-m2: #46382c; --thr-m2i: #e0bf9f;
    --thr-m3: #323a2c; --thr-m3i: #b6caa2;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .lws--threads {
        --lws-brand: #f3f5f7; --lws-brand-ink: #000; --lws-brand-soft: rgba(243, 245, 247, .12);
        --thr-m1: #3b322a; --thr-m1i: #d2ae8c;
        --thr-m2: #46382c; --thr-m2i: #e0bf9f;
        --thr-m3: #323a2c; --thr-m3i: #b6caa2;
    }
}
.lws--threads .lws-shot__img > i:first-child,
.lws--threads .lws-shots__cap i { color: var(--ink); }

/* ---------- Ortak Threads kartı ---------- */
.thr-v { display: flex; flex-direction: column; gap: 12px; }
.thr-v .ohs-search__top { justify-content: space-between; }
.thr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    font-family: -apple-system, 'Inter', 'Segoe UI', sans-serif;
    overflow: hidden;
}
.thr-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; flex: 0 0 auto; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.thr-bar > i { font-size: 14px; color: var(--ink); }
.thr-bar b { font-size: 15px; font-weight: 700; color: var(--ink); }
.thr-bar__r { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.thr-bar__r i { font-size: 10px; }
.thr-ava {
    display: grid; place-items: center;
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #c56b4a;
    color: #fff;
    font-size: 15px;
}
.thr-ava--xs { width: 18px; height: 18px; font-size: 8px; }
.thr-ava--sm { width: 28px; height: 28px; font-size: 12px; }
.thr-ava--xl { width: 64px; height: 64px; font-size: 26px; }
.thr-ava--alt { background: #6f8a7a; }
.thr-pava { display: block; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.thr-pava svg, .thr-pava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thr-badge { font-size: 12px; color: var(--thr-blue); }
.thr-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--ink); opacity: 0; }
.thr-compose.is-focus .thr-caret, .thr-sheet.is-on .thr-caret { animation: thr-blink 1s steps(1) infinite; }
@keyframes thr-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.thr-plus { left: 0; top: 0; z-index: 6; color: var(--thr-red); }

/* İleti dizisi öğesi: solda avatar + ince dikey çizgi, sağda içerik */
.thr-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 16px 0; }
.thr-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; }
.thr-line { display: block; flex: 1 1 auto; width: 2px; min-height: 12px; border-radius: 2px; background: var(--line-strong); }
.thr-body { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thr-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.thr-head b { font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.thr-head small { font-size: 14px; color: var(--muted-2); white-space: nowrap; }
.thr-more { display: grid; place-items: center; width: 28px; height: 22px; margin-left: auto; border-radius: 999px; color: var(--ink); font-size: 14px; transition: transform .15s ease; }
.thr-more.is-press { transform: scale(.88); }
.thr-text { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--ink); }

/* ---------- Profil ---------- */
.thr-prof { padding-top: 16px; }
.thr-prof__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; }
.thr-prof__id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.thr-prof__id b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.thr-prof__id > span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.thr-prof__id em { padding: 3px 8px; border-radius: 999px; background: var(--surface-2); font-style: normal; font-size: 11px; color: var(--muted); }
.thr-prof__bio { margin: 12px 16px 0; font-size: 14px; line-height: 1.4; color: var(--ink); }
.thr-prof__meta { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; font-size: 13.5px; color: var(--muted-2); }
.thr-prof__meta b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.thr-prof__meta > i { margin-left: auto; font-size: 20px; color: var(--ink); }
.thr-stack { display: flex; }
.thr-stack .thr-pava { width: 20px; height: 20px; border: 2px solid var(--surface); }
.thr-stack .thr-pava + .thr-pava { margin-left: -7px; }
.thr-prof__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 16px 0; }
.thr-follow, .thr-mention {
    display: flex; align-items: center; justify-content: center;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .15s ease;
}
.thr-follow { background: var(--ink); color: var(--surface); }
.thr-follow.is-on, .thr-mention { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.thr-follow.is-press { transform: scale(.96); }
.thr-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; text-align: center; color: var(--muted-2); }
.thr-tabs span { padding: 12px 4px 11px; white-space: nowrap; }
.thr-tabs .is-on { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--ink); }
.thr-item--peek { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.thr-media--peek { flex: 0 0 auto; height: 96px; }

/* ---------- İleti dizisi ---------- */
.thr-item--main { flex: 1 1 auto; min-height: 0; }
.thr-thread--reply .thr-item--main { flex: 0 0 auto; }
.thr-item--main .thr-body { padding-bottom: 4px; }
.thr-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: 1 1 auto; min-height: 40px; margin-top: 10px; }
.thr-media span { display: grid; place-items: center; border-radius: 10px; background: var(--thr-m1); color: var(--thr-m1i); font-size: 30px; }
.thr-media span:nth-child(2) { background: var(--thr-m2); color: var(--thr-m2i); }
.thr-media span:nth-child(3) { background: var(--thr-m3); color: var(--thr-m3i); }
.thr-acts { position: relative; display: flex; align-items: center; gap: 10px; margin: 6px 0 0 -6px; }
.thr-act { display: inline-flex; align-items: center; gap: 5px; padding: 6px; border-radius: 999px; color: var(--ink); transition: color .2s ease, transform .15s ease; }
.thr-act i { position: relative; font-size: 17px; }
.thr-act b { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.thr-act.is-press { transform: scale(.88); }
.thr-act--like.is-on, .thr-act--like.is-on b { color: var(--thr-red); }
.thr-act--like.is-on i::before { content: "\f004"; font-weight: 900; }
.thr-act.is-on i { animation: lws-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
/* Yeniden yayınlandı: simgenin içinde küçük onay */
.thr-act--repost.is-on i::after {
    content: "\f00c";
    position: absolute;
    right: -5px; bottom: -3px;
    display: grid; place-items: center;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--surface);
    font: 900 7px/12px "Font Awesome 6 Free";
    text-align: center;
}
.thr-item--cont { padding-bottom: 14px; }
.thr-item--cont .thr-text { font-size: 14px; }

/* Menüler (yeniden yayınla · •••), alıntı sayfası, bildirim */
.thr-pop,
.thr-sheet,
.thr-toast {
    visibility: hidden;
    opacity: 0;
    transition: opacity .22s ease, transform .28s cubic-bezier(.2, .9, .3, 1.2), visibility 0s linear .28s;
}
.thr-pop.is-on, .thr-sheet.is-on, .thr-toast.is-on { visibility: visible; opacity: 1; transition-delay: 0s; }
.thr-pop {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    min-width: 210px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: scale(.96);
}
.thr-pop.is-on { transform: none; }
.thr-pop span { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.thr-pop span span { padding: 0; }
.thr-pop > span + span { border-top: 1px solid var(--line); border-radius: 0; }
.thr-pop i { font-size: 15px; }
.thr-pop--rp { left: 70px; bottom: calc(100% + 2px); transform-origin: bottom left; }
.thr-pop--more { right: 0; top: 26px; transform-origin: top right; }

.thr-compose { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; flex: 0 0 auto; padding: 10px 16px 12px; border-bottom: 1px solid var(--line); }
.thr-me { font-size: 14px; font-weight: 700; color: var(--ink); }
.thr-input { position: relative; min-height: 20px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.thr-input__ph { position: absolute; left: 0; top: 0; right: 0; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.thr-compose.has-val .thr-input__ph { display: none; }
.thr-post {
    display: inline-flex; align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--surface);
    font-size: 13.5px;
    font-weight: 700;
    opacity: .3;
    transition: opacity .2s ease, transform .15s ease;
}
.thr-post.is-ready, .thr-compose.has-val .thr-post { opacity: 1; }
.thr-post.is-press { transform: scale(.93); }
.thr-replies { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.thr-reply { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.thr-reply .thr-pava, .thr-reply .thr-ava { width: 32px; height: 32px; }
.thr-reply .thr-text { font-size: 14px; }
.thr-reply.is-new { animation: thr-in .4s ease; }
@keyframes thr-in { from { opacity: 0; transform: translateY(-8px); } }

.thr-sheet {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    padding: 12px 0 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 0 0 600px rgba(0, 0, 0, .32), var(--shadow-lg);
    transform: translateY(14px);
}
.thr-sheet.is-on { transform: none; }
.thr-sheet__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px 10px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.thr-sheet__top b { font-size: 15px; font-weight: 800; }
.thr-sheet__ic { justify-self: end; color: var(--muted); }
.thr-sheet .thr-item { padding-top: 12px; }
.thr-sheet .thr-rail .thr-line { min-height: 30px; }
.thr-sheet__in { min-height: 22px; margin-top: 2px; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.thr-qcard { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; }
.thr-qcard__h { display: flex; align-items: center; gap: 6px; }
.thr-qcard__h b { font-size: 13.5px; color: var(--ink); }
.thr-qcard em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: normal; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.thr-sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 0; }
.thr-sheet__foot small { font-size: 12.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.thr-toast {
    position: absolute;
    left: 50%; bottom: 16px;
    z-index: 6;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--surface);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(-50%, 10px);
}
.thr-toast.is-on { transform: translate(-50%, 0); }

/* ---------- İçgörüler ---------- */
.thr-insv { display: flex; flex-direction: column; }
.thr-chips { display: flex; gap: 8px; flex: 0 0 auto; padding: 12px 16px 0; }
.thr-chips span { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.thr-chips .is-on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.thr-ins__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; flex: 1 1 auto; min-height: 0; padding: 14px 16px 16px; }
.thr-ins__main { display: flex; flex-direction: column; min-height: 0; }
.thr-ins__main > small { font-size: 13px; font-weight: 600; color: var(--muted); }
.thr-ins__main > b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.thr-delta { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ok-fg); }
.thr-delta i { font-size: 10px; }
.thr-chart { display: block; flex: 1 1 auto; min-height: 60px; margin-top: 12px; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.4, 0, .2, 1); }
.thr-chart.is-draw { clip-path: inset(0 0 0 0); }
.thr-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.thr-chart line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.thr-chart polyline { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.thr-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted-2); }
.thr-rows { display: flex; flex-direction: column; justify-content: center; min-height: 0; margin: 0; padding: 0; list-style: none; }
.thr-rows li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.thr-rows li:last-child { border-bottom: 0; }
.thr-rows li > i { font-size: 15px; color: var(--muted); }
.thr-rows li > span:not(.thr-meter) { font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thr-rows b { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.thr-rows li.is-up > i { color: var(--ink); }
.thr-rows li.is-up > span:not(.thr-meter) { font-weight: 700; }
.thr-meter { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.thr-meter i { display: block; width: var(--w); height: 100%; border-radius: 2px; background: var(--line-strong); transform: scaleX(0); transform-origin: left center; transition: transform .9s cubic-bezier(.2, .8, .2, 1) .2s; }
.thr-rows li.is-up .thr-meter i { background: var(--ink); }
.thr-rows.is-grow .thr-meter i { transform: scaleX(1); }
.ohs.is-final .thr-rows .thr-meter i { transform: scaleX(1); }
.lws--threads .ohs-win { background: var(--ink); color: var(--surface); }
.lws--threads .ohs-win i { color: var(--surface); }

@media (max-width: 620px) {
    .thr-v { gap: 10px; }
    .thr-bar { padding: 10px 12px; }
    .thr-item { gap: 10px; padding: 10px 12px 0; grid-template-columns: 32px minmax(0, 1fr); }
    .thr-ava, .thr-pava { width: 32px; height: 32px; }
    .thr-ava--sm { width: 26px; height: 26px; }
    .thr-ava--xs { width: 18px; height: 18px; }
    .thr-ava--xl { width: 54px; height: 54px; font-size: 22px; }
    .thr-head b { font-size: 13.5px; }
    .thr-head small { font-size: 13px; }
    .thr-text { font-size: 13.5px; }
    .thr-prof { padding-top: 12px; }
    .thr-prof__top { padding: 0 12px; }
    .thr-prof__id b { font-size: 19px; }
    .thr-prof__id > span { font-size: 13px; }
    .thr-prof__bio { margin: 10px 12px 0; font-size: 13px; }
    .thr-prof__meta { margin: 10px 12px 0; font-size: 12.5px; }
    .thr-prof__btns { margin: 12px 12px 0; }
    .thr-follow, .thr-mention { height: 34px; font-size: 13.5px; }
    .thr-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 13px; }
    .thr-tabs span:nth-child(4) { display: none; }
    .thr-media span { font-size: 22px; }
    .thr-acts { gap: 4px; }
    .thr-act i { font-size: 16px; }
    .thr-pop { min-width: 190px; }
    .thr-pop--rp { left: 40px; }
    .thr-compose { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 8px 12px 10px; }
    .thr-input { font-size: 13px; }
    .thr-post { height: 30px; padding: 0 13px; font-size: 12.5px; }
    .thr-reply { padding: 8px 12px; }
    .thr-reply .thr-pava, .thr-reply .thr-ava { width: 28px; height: 28px; }
    .thr-reply .thr-text { font-size: 13px; }
    .thr-sheet { top: 8px; left: 8px; right: 8px; }
    .thr-sheet .thr-item { padding: 10px 12px 0; }
    .thr-sheet__foot { padding: 12px 12px 0; }
    .thr-chips { gap: 6px; padding: 10px 12px 0; }
    .thr-chips span { padding: 6px 10px; font-size: 12px; }
    .thr-ins__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px 12px; }
    .thr-ins__main > b { font-size: 26px; }
    .thr-chart { min-height: 50px; margin-top: 8px; }
    .thr-rows li { padding: 6px 0; gap: 0 8px; }
    .thr-meter { display: none; }
    .lws--threads .ohs-win { width: calc(100% - 28px); white-space: normal; font-size: 13px; justify-content: center; text-align: center; }
}
