/* Sohbet paneli stilleri: Arena'nın sohbet panelinden (web/css/shell.css, social.css, wa.css) alınmış, VoxChat jetonlarına bağlanmıştır.
 * Kaynak kural satırları Arena ile aynıdır; değişiklik yalnız aşağıdaki jeton takma adlarında ve "VoxChat uyarlaması" bölümündedir. */
:root { --surface: var(--panel); --surface-2: var(--raised); --line-strong: color-mix(in srgb, var(--text) 22%, var(--line)); --hover: color-mix(in srgb, var(--text) 7%, transparent); --danger: var(--err); --info: var(--accent); --staff: #c084fc; }

/* ---- Arena'dan ---- */
.msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 3px 0; font-size: .88rem; word-break: break-word; }
.msg .msg-rep { background: none; border: 0; padding: 0 3px; margin-left: 2px; color: var(--dim); font-size: .78rem; cursor: pointer; opacity: 0; transition: opacity .12s; vertical-align: baseline; }
.msg:hover .msg-rep, .msg .msg-rep:focus-visible { opacity: .8; }
.msg .msg-rep:hover { color: var(--danger, #dc2626); opacity: 1; }
@media (hover: none) { .msg .msg-rep { opacity: .35; } }
.msg time { color: var(--dim); font-size: .72rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.msg .nick { font-weight: 700; cursor: pointer; background-color: transparent; border: 0; padding: 0; }   /* background-color: efekt sınıfının (gökkuşağı) degrade görseli silinmesin */ .msg .nick:hover { text-decoration: underline; }
.msg.sys { color: var(--dim); font-style: italic; }
.composer .input { flex: 1; }
.msg .msg-acts { display: inline-flex; gap: 0; vertical-align: baseline; }
.msg .msg-act { background: none; border: 0; padding: 0 4px; color: var(--dim); font-size: .82rem; cursor: pointer; opacity: 0; transition: opacity .12s; line-height: 1; }
.msg:hover .msg-act, .msg .msg-act:focus-visible { opacity: .85; }
.msg .msg-act:hover { color: var(--accent); opacity: 1; }
.msg .msg-act.msg-rep:hover { color: var(--danger, #dc2626); }
@media (hover: none) { .msg .msg-act { opacity: .4; } }
.msg-quote { display: block; max-width: 100%; text-align: left; margin: 0 0 3px; padding: 2px 8px; border: 0; border-left: 3px solid var(--accent); background: var(--surface-2, rgba(127, 127, 127, .12)); color: var(--dim); font: inherit; font-size: .8rem; border-radius: 0 6px 6px 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-quote b { color: var(--text); }
.msg-rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.rx-chip { border: 1px solid var(--line, rgba(127, 127, 127, .3)); background: var(--surface-2, rgba(127, 127, 127, .1)); color: var(--text); border-radius: 999px; padding: 1px 8px; font-size: .78rem; cursor: pointer; line-height: 1.5; }
.rx-chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.rx-chip:disabled { cursor: default; }
.cx-pop { position: fixed; z-index: 90; display: flex; gap: 2px; padding: 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong, rgba(127, 127, 127, .4)); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.cx-pop button { border: 0; background: none; font-size: 1.25rem; padding: 3px 5px; border-radius: 8px; cursor: pointer; transition: transform .1s; }
.cx-pop button:hover { transform: scale(1.25); } .cx-pop button.on { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.msg.flash { animation: msg-flash 1.4s ease-out; }
@keyframes msg-flash { 0%, 40% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }
.reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; padding: 5px 10px; border-left: 3px solid var(--accent); background: var(--surface-2, rgba(127, 127, 127, .12)); border-radius: 0 8px 8px 0; font-size: .82rem; color: var(--dim); }
.reply-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .reply-bar b { color: var(--text); } .reply-bar[hidden] { display: none; }
.chat-find { display: flex; gap: 6px; align-items: center; margin: 0 0 6px; } .chat-find[hidden] { display: none; } .chat-find .input { flex: 1; min-width: 0; }
.chat-older, .chat-more { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 6px; font-size: .8rem; color: var(--dim); }
.chat-more { justify-content: center; width: 100%; }
.msg.hit time { white-space: nowrap; }
.msg.hit mark { background: color-mix(in srgb, #facc15 55%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.msg.hit { grid-template-columns: 86px minmax(0, 1fr); }
.cx-pop { width: max-content; flex-wrap: nowrap; }
.msg-quote.static { cursor: default; white-space: normal; }
.msg { -webkit-touch-callout: none; }
@media (hover: none) { .msg .msg-act { opacity: .6; font-size: 1.05rem; padding: 2px 8px; } .msg .msg-rep { opacity: .6; } }
.msg-menu { position: fixed; z-index: 500; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong, rgba(127, 127, 127, .4)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); }
.msg-menu:not(.pop) { left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); animation: mm-up .18s ease-out; }
.msg-menu.pop { min-width: 220px; max-width: 320px; border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.mm-title { padding: 4px 10px 8px; font-size: .8rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line, rgba(127, 127, 127, .25)); margin-bottom: 4px; }
.mm-rx { display: flex; justify-content: space-around; padding: 4px 2px 8px; border-bottom: 1px solid var(--line, rgba(127, 127, 127, .25)); margin-bottom: 4px; }
.mm-rx button { border: 0; background: none; font-size: 1.6rem; padding: 4px 8px; border-radius: 12px; cursor: pointer; }
.mm-rx button.on { background: color-mix(in srgb, var(--accent) 18%, transparent); } .mm-rx button:active { transform: scale(1.2); }
.mm-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-size: .98rem; padding: 12px 10px; border-radius: 10px; cursor: pointer; }
.mm-item:hover { background: var(--surface-2, rgba(127, 127, 127, .12)); } .mm-item:disabled { opacity: .5; cursor: default; }
.mm-item.danger { color: var(--danger, #dc2626); } .mm-ic { width: 22px; text-align: center; font-size: 1.1rem; }
.mm-item small { display: block; color: var(--dim); font-size: .74rem; } .mm-cancel { justify-content: center; margin-top: 4px; color: var(--dim); }
.rt-link { color: var(--info); text-decoration: underline; word-break: break-all; }
.ct-bar { display: inline-flex; gap: 2px; flex: none; }
.ct-btn { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; font-size: 1.1rem; line-height: 1; color: var(--dim); } .ct-btn:hover { background: var(--hover); color: var(--text); }
.ct-aa { font-size: .82rem; font-weight: 800; }
.ct-pop { position: fixed; z-index: 400; width: min(300px, calc(100vw - 16px)); padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: grid; gap: 8px; }
.ct-tabs { display: flex; gap: 4px; flex-wrap: wrap; } .ct-tab { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--dim); font-size: .72rem; font-weight: 700; } .ct-tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ct-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; max-height: 190px; overflow-y: auto; overflow-x: hidden; }
.ct-em { height: 34px; min-width: 0; padding: 0; overflow: hidden; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; font-size: 1.25rem; line-height: 1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; } .ct-em:hover { background: var(--hover); }
.ct-row { display: flex; gap: 4px; } .ct-fmt { flex: 1; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 700; }
.ct-fmt.b { font-weight: 900; } .ct-fmt.i { font-style: italic; } .ct-fmt.u { text-decoration: underline; } .ct-fmt.s { text-decoration: line-through; } .ct-fmt.m { font-family: ui-monospace, Consolas, monospace; }
.ct-sws { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; } .ct-sw { aspect-ratio: 1; border-radius: 8px; border: 2px solid var(--line-strong); }
.ct-hint { margin: 0; font-size: .7rem; color: var(--dim); line-height: 1.35; }
.composer .ct-bar { align-self: center; }
@media (max-width: 480px) { .ct-btn { width: 36px; height: 36px; } }
.ct-preview { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 4px); padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: .86rem; line-height: 1.35; word-break: break-word; box-shadow: var(--shadow); z-index: 5; }
.ct-preview[hidden] { display: none; }
.msg .nick.own { color: var(--accent); }
.msg.srv.err { color: var(--danger); }
.msg.srv b { color: var(--text); font-weight: 700; }
.msg.hot { background: color-mix(in srgb, var(--warn) 14%, transparent); border-radius: 8px; box-shadow: inset 3px 0 0 var(--warn); }
.nick-bar { display: flex; gap: 6px; padding: 6px 12px 0; overflow-x: auto; scrollbar-width: none; }
.nick-bar[hidden] { display: none; }
.nick-bar::-webkit-scrollbar { display: none; }
.nick-chip { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 650; font-size: .85rem; } .nick-chip:hover { border-color: var(--accent); }
.rt-table { display: inline-flex; align-items: center; gap: 4px; margin: 0 1px; padding: 1px 9px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: inherit; font: inherit; font-weight: 800; font-size: .86em; cursor: pointer; vertical-align: baseline; }
.rt-table:hover, .rt-table:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }

@keyframes mm-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---- VoxChat uyarlaması ---- */
.achat .msg { padding: 3px 8px; border-radius: 8px; }
.achat .msg:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.achat .msg .nick { color: hsl(var(--h, 210) 62% 38%); } :root:not([data-mode=light]) .achat .msg .nick { color: hsl(var(--h, 210) 78% 72%); }
.achat .msg .nick.own { color: var(--accent); } .achat .msg .nick.bot { color: var(--ok); } .achat .msg .nick.noprof { cursor: default; } .achat .msg .nick.noprof:hover { text-decoration: none; }
.achat .msg.bot { background: color-mix(in srgb, var(--ok) 9%, transparent); box-shadow: inset 3px 0 0 var(--ok); border-radius: 8px; }
.achat .msg .tg { margin-right: 4px; vertical-align: baseline; }
.achat .msg .pic { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 12px; margin: 4px 0 2px; cursor: zoom-in; background: var(--raised); }
.achat .msg-acts .msg-act svg { width: 14px; height: 14px; vertical-align: -2px; }
.achat .msg-act.del:hover { color: var(--danger); }
.achat .msg .acts-wrap { white-space: nowrap; }
.achat .sysline { display: flex; justify-content: center; margin: 5px 0; } .achat .sysline span { padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, var(--panel)); color: var(--dim); font-size: .74rem; font-weight: 600; }
.achat .chat-find .input, .achat .chat-find input { border-radius: 10px; padding: 7px 12px; }
.achat .composer-extra { display: contents; }
.achat .btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.achat .btn.sm { padding: 5px 12px; font-size: .78rem; border-radius: 9px; }
.achat .empty { color: var(--dim); text-align: center; padding: 14px; font-size: .86rem; }
/* dokunmatik ekranlarda satır eylemleri gizlenir: uzun basış menüsü (yanıtla, tepki, şikâyet, sil, kopyala) aynı işleri yapar; Arena da böyle çalışır */
@media (hover: none) { .achat .msg .msg-acts { display: none; } }
