/* =====================================================================
   DOKSAN — Tribün (sosyal) arayüzü
   Forum görünümünden sosyal akışa: avatar solda, içerik sağda; tepki
   seçici, alıntı, anket, kaydetme; canlı maç odaları; sonsuz kaydırma.
   sade.css belirteçlerini kullanır (açık/koyu temada çalışır).
   ===================================================================== */

/* ------------------------------------------------ sayfa düzeni */
.tribune { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; max-width: 1040px; margin: 0 auto; }
.tri-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.tri-main { min-width: 0; }
.tri-side { top: 76px; gap: 14px; }
.side-card { border: 1px solid var(--chalk-4); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 14px 16px; }
.side-card h4 { font-family: var(--f-text); font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.side-card h4 small { font-family: var(--f-text); font-weight: 400; }
.side-card.lboard { border: 1px solid var(--chalk-4); }
.trend li { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-family: var(--f-text); font-size: 15px; }
.trend a { display: flex; flex-direction: column; line-height: 1.2; color: var(--chalk); }
.trend a small { font-family: var(--f-text); font-weight: 400; font-size: 11px; color: var(--chalk-3); }
.trend a b { font-weight: 700; }
.trend a:hover b { color: var(--amber); }
.trend > li > small { font-family: var(--f-text); font-weight: 500; font-size: 12px; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.people a { font-family: var(--f-text); min-width: 0; }
.people a span { min-width: 0; }
.people b, .people small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people .btn { flex: none; margin: 0; width: auto; }

/* ------------------------------------------------ akış sekmeleri */
.feedtabs {
  position: sticky; top: 58px; z-index: 20;
  display: flex; margin: 14px 0 0; border-bottom: 1px solid var(--chalk-4);
  background: var(--grass-1);
}
.ftab { flex: 1; text-align: center; padding: 12px 6px; font-weight: 600; font-size: 15px; color: var(--chalk-3); position: relative; white-space: nowrap; }
.ftab:hover { color: var(--chalk); background: rgba(var(--ink-rgb), 0.03); }
.ftab.on { color: var(--chalk); font-weight: 700; }
.ftab.on::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 48px; margin-left: -24px; height: 3px; border-radius: 3px; background: var(--amber); }

.newpill {
  position: sticky; top: 112px; z-index: 21; display: block; margin: 10px auto -34px;
  padding: 7px 16px; border-radius: 999px; background: var(--amber); color: var(--grass-ink);
  font-weight: 700; font-size: 14px; box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.35);
}
.newpill[hidden] { display: none; }

/* ------------------------------------------------ paylaşım kartı */
.feed { display: block; gap: 0; background: var(--surface); border: 1px solid var(--chalk-4); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tri-match .feed, #ufeed, .thread .clist { border-top: 1px solid var(--chalk-4); border-radius: var(--radius); }
.tri-match .feed { box-shadow: none; }
.feed > .empty, .feed > .loading, .feed > .err { border: 0; }
.post {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px;
  padding: 14px 16px 8px; border: 0; border-bottom: 1px solid var(--chalk-4); border-radius: 0;
  background: transparent; box-shadow: none; transition: background 0.12s;
}
.post:last-child { border-bottom: 0; }
.post[data-open] { cursor: pointer; }
.post[data-open]:hover { background: rgba(var(--ink-rgb), 0.025); }
.post.is-comment { grid-template-columns: 34px minmax(0, 1fr); padding: 12px 16px 6px; border-top-width: 0; }
.post.detail { padding: 18px 18px 10px; }
.post.detail .post-body { font-size: 18px; }
.post.hidden-post { display: block; padding: 14px 16px; }
.post-av { display: block; }
.post-main { min-width: 0; }
.post-head { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; }
.post-name { min-width: 0; overflow: hidden; }
.post-name b { font-weight: 700; font-size: 15px; white-space: nowrap; }
.post-name:hover b { text-decoration: underline; }
.post-team { flex: none; padding: 1px 7px; border-radius: 999px; background: rgba(var(--accent-rgb), 0.1); color: var(--amber); font-size: 11px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-meta { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; color: var(--chalk-3); }
.post-meta a:hover { text-decoration: underline; }
.act-more { margin-left: auto; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--chalk-3); }
.act-more:hover { background: rgba(var(--accent-rgb), 0.1); color: var(--amber); }
.act-more .ic { width: 18px; height: 18px; }
.post-body { margin: 2px 0 6px; font-size: 15.5px; line-height: 1.5; font-family: var(--f-text); }
.post-body .tag, .post-body .mention { color: var(--amber); font-weight: 600; }

.atts { margin: 8px 0 2px; }
.att { border: 1px solid var(--chalk-4); border-radius: 999px; padding: 5px 12px; font-family: var(--f-text); font-size: 13px; font-weight: 500; background: var(--surface-2); }
.att:hover { border-color: rgba(var(--accent-rgb), 0.5); color: var(--amber); }
.att-pred { flex-direction: row; gap: 6px; padding: 5px 12px; border-radius: 999px; line-height: 1.2; }
.att-pred small { font-family: var(--f-text); font-size: 12px; color: var(--chalk-3); }
.att-pred b { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--amber); }
.att-x { margin-left: 2px; font-size: 16px; line-height: 1; color: var(--chalk-3); }

/* eylem çubuğu */
.post-act { gap: 2px; margin: 6px 0 0 -8px; }
.act { gap: 5px; padding: 6px 8px; border-radius: 999px; font-family: var(--f-text); font-weight: 500; font-size: 13px; color: var(--chalk-3); transition: color .12s, background .12s; }
.act .ic { width: 18px; height: 18px; }
.act:hover { color: var(--amber); background: rgba(var(--accent-rgb), 0.1); }
.act.on { color: var(--amber); }
.act .cnt:empty { display: none; }
.act.react .emo { font-size: 17px; line-height: 1; }
.act.react.pop-anim .emo { animation: kick .45s cubic-bezier(.3, 1.6, .5, 1); }
.react-sum { display: inline-flex; align-items: center; gap: 1px; margin-left: 2px; font-size: 13px; letter-spacing: -2px; }
.react-sum small { letter-spacing: 0; margin-left: 6px; color: var(--chalk-3); }
.react-sum[hidden] { display: none; }
@keyframes kick { 40% { transform: scale(1.45) rotate(-12deg); } }

/* yüzen kutu: tepki seçici / menü */
.pop {
  position: absolute; z-index: 60; padding: 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--chalk-4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  animation: popin .14s ease-out;
}
@keyframes popin { from { transform: translateY(6px) scale(.96); opacity: 0; } }
.react-pick { display: flex; gap: 2px; }
.react-pick button { width: 42px; height: 42px; border-radius: 50%; font-size: 24px; line-height: 1; transition: transform .12s, background .12s; }
.react-pick button:hover { transform: scale(1.25) translateY(-3px); background: rgba(var(--accent-rgb), 0.1); }
.react-pick button.on { background: rgba(var(--accent-rgb), 0.16); }
.menu { display: flex; flex-direction: column; min-width: 190px; }
.menu button { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; text-align: left; font-size: 14px; font-weight: 500; }
.menu button:hover { background: rgba(var(--ink-rgb), 0.05); }
.menu button[data-m="del"] { color: var(--red); }
.menu .ic { width: 16px; height: 16px; }

/* anket */
.poll { display: grid; gap: 6px; margin: 8px 0 4px; }
.poll-opt { padding: 9px 14px; border: 1.5px solid rgba(var(--accent-rgb), 0.55); border-radius: 999px; color: var(--amber); font-weight: 700; font-size: 14px; text-align: center; }
.poll-opt:hover { background: rgba(var(--accent-rgb), 0.1); }
.poll-res { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; overflow: hidden; font-size: 14px; }
.poll-res i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--ink-rgb), 0.08); border-radius: 8px; transition: width .5s ease-out; }
.poll-res.lead i { background: rgba(var(--accent-rgb), 0.22); }
.poll-res span, .poll-res b { position: relative; }
.poll-res.lead span, .poll-res.lead b { font-weight: 700; }
.poll-meta { color: var(--chalk-3); font-size: 12px; }

/* alıntı */
.quote { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--chalk-4); border-radius: 12px; color: var(--chalk); }
a.quote:hover { background: rgba(var(--ink-rgb), 0.03); }
.quote.removed { color: var(--chalk-3); font-size: 13px; }
.quote-who { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.quote-who small { color: var(--chalk-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-body { font-size: 14px; line-height: 1.45; }
.quote-extra { display: inline-flex; align-items: center; gap: 4px; color: var(--chalk-3); font-size: 12px; }
.quote-extra .ic { width: 13px; height: 13px; }

/* ------------------------------------------------ paylaşım kutusu */
.composer { padding: 14px 16px 10px; margin: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.tri-main > .composer { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
.composer.reply { box-shadow: none; border-radius: 0; border: 0; border-bottom: 1px solid var(--chalk-4); }
.composer.guest { box-shadow: none; }
.cmp-row { gap: 12px; }
.composer textarea { font-size: 17px; line-height: 1.45; padding: 8px 0; min-height: 0; resize: none; color: var(--chalk); }
.composer.reply textarea { font-size: 15px; }
.composer textarea::placeholder { color: var(--chalk-3); }
.composer .quote { margin-left: 52px; }
.cmp-foot { gap: 6px; padding-top: 8px; margin-top: 4px; }
.cmp-tool { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; color: var(--amber); font-size: 13px; font-weight: 600; }
.cmp-tool .ic { width: 17px; height: 17px; }
.cmp-tool:hover, .cmp-tool.on { background: rgba(var(--accent-rgb), 0.12); }
.cmp-count { margin-left: auto; font-family: var(--f-text); font-size: 13px; color: var(--chalk-3); }
.cmp-count.low { color: var(--red); }
.composer .btn { border-radius: 999px; padding: 8px 18px; }
.composer .btn:disabled { opacity: 0.45; cursor: default; }
.cmp-poll { display: grid; gap: 6px; margin: 6px 0 4px 52px; padding: 10px; border: 1px solid var(--chalk-4); border-radius: 12px; }
.cmp-poll[hidden] { display: none; }
.cmp-poll input, .cmp-search input { padding: 8px 12px; border: 1px solid var(--chalk-4); border-radius: 8px; background: var(--surface-2); color: var(--chalk); font-size: 14px; }
.cmp-addopt { justify-self: start; color: var(--amber); font-size: 13px; font-weight: 600; }
.cmp-dur { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--chalk-3); }
.cmp-dur select { padding: 4px 8px; border: 1px solid var(--chalk-4); border-radius: 6px; background: var(--surface-2); color: var(--chalk); }
.cmp-extra:empty { display: none; }
.cmp-extra { margin: 6px 0 0 52px; }
.cmp-search { margin-left: 52px; }
.cmp-results button { border: 1px solid var(--chalk-4); border-radius: 999px; font-family: var(--f-text); font-size: 13px; padding: 5px 12px; }

/* ------------------------------------------------ canlı maç odaları */
.rooms-wrap:empty { display: none; }
.rooms-wrap { margin-bottom: 14px; }
.rooms-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.rooms-head b { font-size: 15px; }
.rooms-head small { color: var(--chalk-3); font-size: 12px; }
.rooms { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.rooms::-webkit-scrollbar { display: none; }
.room {
  flex: 0 0 176px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px;
  padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--chalk-4);
  background: var(--surface); box-shadow: var(--shadow); font-size: 13px;
}
.room:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.room.live { background: var(--hdr); border: 0; color: #fff; --chalk-3: rgba(255, 255, 255, 0.75); }
.room-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.room-top small { margin-left: auto; font-weight: 400; color: var(--chalk-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.room-t { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.room-t b:first-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-label { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-talk { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--chalk-3); }
.room-talk .ic { width: 13px; height: 13px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; animation: blink 1.4s ease-in-out infinite; }
.livechip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: rgba(229, 72, 77, 0.12); color: var(--red); font-size: 12px; font-weight: 700; vertical-align: 2px; }

/* ------------------------------------------------ sonsuz kaydırma */
.feed-sentinel { min-height: 1px; }
.feed-loading, .feed-end { padding: 16px; text-align: center; font-size: 13px; color: var(--chalk-3); }

/* ------------------------------------------------ alıntı penceresi */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 8vh 12px 12px; background: rgba(5, 15, 9, 0.45); backdrop-filter: blur(2px); animation: popin .15s ease-out; }
.modal-box { width: min(560px, 100%); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; }
.modal-box > header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--chalk-4); }
.modal-x { font-size: 24px; line-height: 1; color: var(--chalk-3); width: 32px; height: 32px; border-radius: 50%; }
.modal-x:hover { background: rgba(var(--ink-rgb), 0.06); }
.modal .composer { box-shadow: none; border: 0; border-radius: 0; }

/* ------------------------------------------------ profil, konu */
.followsyou { padding: 1px 7px; border-radius: 4px; background: rgba(var(--ink-rgb), 0.07); font-size: 12px; color: var(--chalk-2); }
.sec-title { margin: 8px 0 10px; font-size: 17px; font-weight: 700; }
.uhero { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--chalk-4); box-shadow: var(--shadow); }
.thread { max-width: 680px; margin: 0 auto; }
.thread > .post { background: var(--surface); border: 1px solid var(--chalk-4); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); }
.thread .comments { margin: 0; padding: 0; border: 1px solid var(--chalk-4); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); overflow: hidden; }
.thread .clist { border: 0; border-radius: 0; box-shadow: none; }
.thread .clist > .note { padding: 14px 16px; margin: 0; }

/* ------------------------------------------------ telefon */
@media (max-width: 980px) {
  .tribune { grid-template-columns: 1fr; }
  .tri-side { position: static; }
}
@media (max-width: 760px) {
  .feedtabs { top: 49px; margin-left: -12px; margin-right: -12px; }
  .ftab { font-size: 14px; padding: 11px 4px; }
  .newpill { top: 100px; }
  .feed { margin: 0 -12px; border-left: 0; border-right: 0; border-radius: 0; }
  .tri-match .feed, #ufeed { margin: 8px 0 0; border: 1px solid var(--chalk-4); border-radius: var(--radius); }
  .tri-main > .composer { margin: 0 -12px; border-left: 0; border-right: 0; border-radius: 0; }
  .post { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px 12px 6px; }
  .post > .post-av .av { width: 40px !important; height: 40px !important; font-size: 17px !important; }
  .post.is-comment > .post-av .av { width: 32px !important; height: 32px !important; font-size: 13px !important; }
  .post-team { display: none; }
  .composer .quote, .cmp-poll, .cmp-extra, .cmp-search { margin-left: 0; }
  .cmp-tool span { display: none; }
  .room { flex-basis: 150px; }
  .thread > .post, .thread .comments { margin: 0 -12px; border-left: 0; border-right: 0; border-radius: 0; }
}
