/* Demoya yorum (public/demo-yorum.js): erken demo kartinin (is-durum.js demoKart) yorum bolumu. Mac (index.html) ve telefon (m.html)
   ayni dosyayi yukler; renkler Hub'in degiskenlerinden (--text, --panel, --st-*). Hareket yalniz transform ve opacity; azaltilmis
   harekette kapali. */

/* ---- igne (kucuk gorunumde nokta, sahnede numarali) */
.dy-p { position: absolute; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: var(--r-pill, 999px);
  background: var(--st-blue, #3b82f6); color: #fff; font: 600 11px/1 "Geist", system-ui, sans-serif; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #fff, 0 4px 10px -2px rgb(0 0 0 / .35); pointer-events: none; }
.dy-p.s-uygulandi { background: var(--st-green, #22a35a); }
.dy-p.k { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; font-size: 0; box-shadow: 0 0 0 1.5px #fff, 0 2px 4px rgb(0 0 0 / .3); }
.dy-p.yeni { background: var(--text, #111); color: var(--panel, #fff); animation: dy-dus .22s cubic-bezier(.23, 1, .32, 1); }
.dy-p.yeni::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--text, #111); opacity: .35; animation: dy-hal 1.8s ease-out infinite; }
@keyframes dy-dus { from { transform: scale(.4); opacity: 0; } }
@keyframes dy-hal { from { transform: scale(.7); opacity: .5; } to { transform: scale(1.5); opacity: 0; } }

/* ---- sahne (noktaya yorum kipi): gorunum secimi, buyuk demo, dokunma yuzeyi. Olcek sahnenin ic genisligine gore kademeli
   (container query ic kutuyu olcer; her kademede 1280 x --ps ve 390 x --pm kademenin alt sinirina sigar, test/ui-demo-yorum.test.js). */
.dy-sh { container-type: inline-size; display: grid; gap: 10px; justify-items: center; padding: 10px 10px 12px; border-radius: 8px;
  background: radial-gradient(120% 90% at 30% 0%, color-mix(in oklab, var(--st-blue) 10%, transparent), transparent 60%), color-mix(in oklab, var(--text) 4%, transparent); }
.dy-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: color-mix(in oklab, var(--text) 7%, transparent); }
.dy-sg { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out, transform .12s ease-out; }
.dy-sg .ph { font-size: 14px; }
.dy-sg.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 0 0 1px color-mix(in oklab, var(--text) 8%, transparent); }
.dy-sg:active { transform: scale(.97); }
.dy-sg:focus-visible, .dy-cap:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 2px; }
.dy-st-w { --ps: .15; --pm: .45; display: grid; place-items: center; width: 100%; max-width: 100%; overflow: hidden; padding: 6px 0; }
.dy-vp { position: relative; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px color-mix(in oklab, var(--text) 14%, transparent), 0 18px 36px -22px rgb(0 0 0 / .55); }
.dy-vp.d { width: calc(1280px * var(--ps)); height: calc(800px * var(--ps)); border-radius: 8px; }
.dy-vp.m { width: calc(390px * var(--pm)); height: calc(844px * var(--pm)); border-radius: 18px; box-shadow: 0 0 0 5px #161616, 0 0 0 6px rgb(255 255 255 / .08), 0 18px 36px -18px rgb(0 0 0 / .6); }
.dy-vp iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.dy-vp.d iframe { width: 1280px; height: 800px; transform: scale(var(--ps)); }
.dy-vp.m iframe { width: 390px; height: 844px; transform: scale(var(--pm)); }
.dy-vp { transition: transform .22s cubic-bezier(.23, 1, .32, 1); }
.dy-aa { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: transparent; border-radius: inherit; cursor: zoom-in; }
.dy-aa:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .dy-st-w:has(.dy-aa:hover) .dy-vp { transform: translateY(-2px); } }
.dy-st-w:has(.dy-aa:active) .dy-vp { transform: scale(.99); transition-duration: .12s; }
.dy-vp.gun iframe { opacity: .72; }
.dy-cap { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: transparent; border-radius: inherit; cursor: crosshair; }
@media (hover: hover) and (pointer: fine) { .dy-cap:hover { background: color-mix(in oklab, var(--st-blue) 6%, transparent); } }
.dy-ip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; width: 100%; }
.dy-ip p { margin: 0; display: flex; align-items: flex-start; gap: 6px; max-width: 46ch; font-size: 12.5px; line-height: 1.45; color: color-mix(in oklab, var(--text) 78%, var(--muted)); }
.dy-ip .ph { font-size: 15px; flex: none; margin-top: 1px; }
.dy-ipb { flex: none; height: 30px; padding: 0 11px; border-radius: var(--r-6, 6px); border: 1px solid var(--line-2, var(--line)); background: var(--panel); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: transform .12s ease-out; }
.dy-ipb:active { transform: scale(.97); }
.dy-ipb:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 2px; }
@container (min-width: 260px) { .dy-st-w { --ps: .2; --pm: .5; } }
@container (min-width: 300px) { .dy-st-w { --ps: .23; } }
@container (min-width: 340px) { .dy-st-w { --ps: .26; --pm: .56; } }
@container (min-width: 380px) { .dy-st-w { --ps: .29; } }
@container (min-width: 420px) { .dy-st-w { --ps: .32; --pm: .6; } }
@container (min-width: 460px) { .dy-st-w { --ps: .35; } }
@container (min-width: 500px) { .dy-st-w { --ps: .39; } }
@container (min-width: 560px) { .dy-st-w { --ps: .43; --pm: .64; } }
@container (min-width: 640px) { .dy-st-w { --ps: .5; } }

/* ---- kucuk gorunum: yeni surum hazirlanirken onceki surum ustunde serit */
.dm-pv.gun .dm-vp iframe { opacity: .72; transition: opacity .3s ease-out; }
.dm-gun { position: absolute; z-index: 3; left: 10px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill, 999px);
  font-size: 11.5px; font-weight: 500; color: var(--st-blue-t, var(--st-blue)); background: color-mix(in oklab, var(--panel) 88%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--st-blue) 25%, transparent), 0 4px 12px -6px rgb(0 0 0 / .3); pointer-events: none; }
@supports (backdrop-filter: blur(4px)) { .dm-gun { backdrop-filter: blur(6px); background: color-mix(in oklab, var(--panel) 70%, transparent); } }

/* Sohbet sekmesindeki tek satirlik serit (is-durum.js demoSerit): yorum sayisi. */
.dm-sr .y { flex: none; color: var(--muted); white-space: nowrap; }
.dm-sr .y::before { content: "·"; margin-right: 8px; color: var(--faint, var(--muted)); }

/* ---- yorum bolumu */
.dy { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid color-mix(in oklab, var(--text) 8%, transparent); }
.dy-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dy-ht { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.dy-ht .ph { font-size: 15px; color: var(--muted); }
.dy-n { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--r-pill, 999px); font-size: 11.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--muted); background: color-mix(in oklab, var(--text) 7%, transparent); }
.dy-ac { display: flex; flex-wrap: wrap; gap: 6px; }

/* yazma kutusu */
.dy-yaz { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--panel); box-shadow: 0 0 0 1px var(--line-2, var(--line)), 0 8px 20px -14px rgb(0 0 0 / .4);
}
.dy-hd { display: flex; min-width: 0; }
.dy-hc { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 24px; padding: 2px 9px; border-radius: var(--r-pill, 999px); font-size: 12px; font-weight: 500;
  color: var(--text); background: color-mix(in oklab, var(--text) 7%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dy-hc.p::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: var(--r-pill, 999px); background: var(--text); }
.dy-hc.p.bos { color: var(--st-blue-t, var(--st-blue)); background: color-mix(in oklab, var(--st-blue) 11%, transparent); }
.dy-hc.p.bos::before { background: currentColor; }
.dy-lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dy-ta { width: 100%; min-height: 64px; max-height: 220px; resize: vertical; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2, var(--line));
  background: color-mix(in oklab, var(--text) 3%, var(--panel)); color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.dy-ta::placeholder { color: var(--faint, var(--muted)); }
.dy-ta:focus { outline: none; border-color: color-mix(in oklab, var(--st-blue) 60%, var(--line)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--st-blue) 18%, transparent); }
.dy-ta:disabled { opacity: .6; }
.dy-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dy-not { flex: 1 1 180px; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.dy-alt .dm-b.yap { opacity: .7; }
.dy-err { margin: 0; font-size: 12.5px; color: var(--st-red-t, var(--st-red)); }

/* liste: rozet (igne numarasi ya da genel), metin, durum, parcalar */
.dy-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dy-r { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 9px 8px 9px 6px; border-radius: 8px; }
.dy-r + .dy-r { box-shadow: 0 -1px 0 color-mix(in oklab, var(--text) 6%, transparent); }
.dy-r.yeni { animation: dy-gir .26s cubic-bezier(.23, 1, .32, 1); background: color-mix(in oklab, var(--st-blue) 6%, transparent); transition: background-color .6s ease-out; }
@keyframes dy-gir { from { opacity: 0; transform: translateY(-6px); } }
.dy-bd { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: var(--r-pill, 999px); font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: #fff; background: var(--st-blue, #3b82f6); }
.dy-r.s-uygulandi .dy-bd { background: var(--st-green, #22a35a); }
.dy-bd.g, .dy-r.s-uygulandi .dy-bd.g { color: var(--muted); background: color-mix(in oklab, var(--text) 8%, transparent); }
.dy-bd.g .ph { font-size: 13px; }
.dy-rb { display: grid; gap: 4px; min-width: 0; }
.dy-rh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dy-yr { min-width: 0; font-size: 12.5px; color: color-mix(in oklab, var(--text) 72%, var(--muted)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dy-dr { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: var(--r-pill, 999px);
  font-size: 11.5px; font-weight: 600; color: var(--st-blue-t, var(--st-blue)); background: color-mix(in oklab, var(--st-blue) 12%, transparent); }
.dy-dr.ok { color: var(--st-green-t, var(--st-green)); background: var(--st-green-bg, color-mix(in oklab, var(--st-green) 12%, transparent)); }
.dy-dr .ph { font-size: 13px; }
.dy-nb { position: relative; width: 6px; height: 6px; border-radius: var(--r-pill, 999px); background: currentColor; }
.dy-nb::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; background: currentColor; opacity: .25; animation: dm-nb 1.6s ease-in-out infinite; }
.dy-tx { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; white-space: pre-wrap; }
.dy-ps { display: grid; gap: 3px; justify-items: start; }
.dy-pc { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.4; color: color-mix(in oklab, var(--text) 80%, var(--muted)); }
.dy-pc .ph { font-size: 14px; flex: none; margin-top: 1px; }
.dy-pc.ok { color: var(--st-green-t, var(--st-green)); }
.dy-pc.bad { color: var(--st-red-t, var(--st-red)); }
.dy-zm { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* telefon: parmak icin buyuk hedefler (en az 40-44 px) */
.mi-dm .dy-ac .dm-b { flex: 1 1 0; justify-content: center; }
.mi-dm .dy-sg { height: 36px; padding: 0 14px; font-size: 14px; }
.mi-dm .dy-ipb { height: 40px; padding: 0 14px; font-size: 14px; }
.mi-dm .dy-pc { font-size: 13px; }
.mi-dm .dy-ta { font-size: 16px; } /* iOS yazarken yakinlastirmasin */
.mi-dm .dy-alt .dm-b { height: 40px; }
.mi-dm .dy-alt .dm-b.pri { flex: 1 1 auto; justify-content: center; }
.mi-dm .dy-not { flex-basis: 100%; }
.mi-dm .dy-tx { font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .dy-p.yeni, .dy-p.yeni::after, .dy-r.yeni, .dy-nb::after { animation: none; }
  .dm-pv.gun .dm-vp iframe, .dy-vp { transition: none; }
}
