/* tur.css — Clineo Tanıtım Rehberi (1 Kas 2026): ilerleme penceresi + adım adım tur baloncuğu.
   Bağımsız: yalnız #tur-* ve .tur-* seçicileri. Geri dönüş: index.html'den css/tur.css + js/tur.js satırlarını kaldır. */

/* ---------- üst çubuk düğmesi ---------- */
.icon-btn.tur-btn { position: relative; }
.icon-btn.tur-btn svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.icon-btn.tur-btn .tur-badge {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--c-fill, var(--brand)); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface, #fff);
}
.icon-btn.tur-btn .tur-badge[hidden] { display: none; }

/* ---------- ortak katman ---------- */
#tur-root { position: fixed; inset: 0; z-index: 1200; pointer-events: none; font-family: inherit; }
#tur-root > * { pointer-events: auto; }
#tur-root[hidden] { display: none; }

/* ---------- rehber penceresi ---------- */
.tur-dim { position: fixed; inset: 0; background: rgba(15,25,45,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: turFade .18s ease; }
.tur-win {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); display: flex; flex-direction: column;
  background: var(--surface, #fff); color: var(--ink, #1d1d1f); border-radius: 18px;
  box-shadow: 0 24px 70px -20px rgba(10,20,40,.45), 0 0 0 1px rgba(15,25,45,.06);
  animation: turPop .22s cubic-bezier(.2,.8,.2,1);
}
.tur-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line, #e5e5ea); }
.tur-head-row { display: flex; align-items: flex-start; gap: 12px; }
.tur-head-ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--c-fill, var(--brand)); color: #fff; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.08); background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)); }
.tur-head-ic svg { width: 22px; height: 22px; fill: currentColor; }
.tur-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.tur-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted, #6e6e73); }
.tur-x { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted, #6e6e73); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; flex: none; }
.tur-x:hover { background: var(--surface-2, #f5f5f7); color: var(--ink, #1d1d1f); }
.tur-prog { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--muted, #6e6e73); }
.tur-prog b { color: var(--ink, #1d1d1f); font-weight: 650; font-variant-numeric: tabular-nums; }
.tur-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2, #eef0f3); overflow: hidden; }
.tur-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--c-fill, var(--brand)); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.tur-list { padding: 8px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.tur-card { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 10px; border-radius: 12px; transition: background .12s; }
.tur-card:hover { background: var(--surface-2, #f5f5f7); }
.tur-card.next { background: color-mix(in srgb, var(--c-fill, var(--brand)) 7%, var(--surface, #fff)); }
.tur-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650; color: var(--muted, #6e6e73); background: var(--surface-2, #eef0f3); font-variant-numeric: tabular-nums; }
.tur-card.done .tur-num { background: #e8f6ec; color: #1f8a3b; }
.tur-card.next .tur-num { background: var(--c-fill, var(--brand)); color: #fff; }
.tur-card h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.tur-card p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted, #6e6e73); line-height: 1.4; }
.tur-meta { display: flex; gap: 8px; align-items: center; margin-top: 5px; font-size: 11.5px; color: var(--muted, #6e6e73); }
.tur-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2, #eef0f3); font-weight: 500; }
.tur-card.done .tur-pill.st { background: #e8f6ec; color: #1f8a3b; }
.tur-card.next .tur-pill.st { background: color-mix(in srgb, var(--c-fill, var(--brand)) 14%, var(--surface, #fff)); color: var(--c-fill, var(--brand)); }
.tur-act {
  border: 1px solid var(--line, #e5e5ea); background: var(--surface, #fff); color: var(--ink, #1d1d1f);
  font: inherit; font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s;
}
.tur-act:hover { background: var(--surface-2, #f5f5f7); }
.tur-act.p { background: var(--c-fill, var(--brand)); color: #fff; border-color: transparent; }
.tur-act.p:hover { filter: brightness(1.06); }
.tur-foot { padding: 12px 22px 16px; border-top: 1px solid var(--line, #e5e5ea); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tur-foot small { color: var(--muted, #6e6e73); font-size: 12px; }
.tur-foot .tur-act { min-width: 90px; }
html[data-theme="dark"] .tur-card.done .tur-num, html[data-theme="dark"] .tur-card.done .tur-pill.st { background: rgba(31,138,59,.22); color: #8ee3a3; }
html[data-theme="dark"] .tur-dim { background: rgba(0,0,0,.6); }

/* ---------- adım adım tur ---------- */
.tur-block { position: fixed; inset: 0; background: transparent; } /* dışarı tıklamayı yutar */
.tur-spot {
  position: fixed; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(15,25,45,.55), 0 0 0 3px rgba(255,255,255,.95), 0 0 0 6px color-mix(in srgb, var(--c-fill, var(--brand)) 55%, transparent);
  transition: left .28s cubic-bezier(.2,.8,.2,1), top .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1);
}
.tur-spot.none { box-shadow: 0 0 0 9999px rgba(15,25,45,.55); }
html[data-theme="dark"] .tur-spot { box-shadow: 0 0 0 9999px rgba(0,0,0,.66), 0 0 0 3px rgba(255,255,255,.85), 0 0 0 6px color-mix(in srgb, var(--c-fill, var(--brand)) 55%, transparent); }
.tur-pop {
  position: fixed; width: min(360px, calc(100vw - 24px)); background: var(--surface, #fff); color: var(--ink, #1d1d1f);
  border-radius: 14px; box-shadow: 0 18px 50px -14px rgba(10,20,40,.5), 0 0 0 1px rgba(15,25,45,.07); padding: 16px 18px 14px;
  animation: turPop .2s cubic-bezier(.2,.8,.2,1);
}
.tur-pop::before { content: ""; position: absolute; width: 14px; height: 14px; background: var(--surface, #fff); transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(15,25,45,.07); display: none; }
.tur-pop[data-pos="bottom"]::before { display: block; top: -7px; left: var(--ax, 28px); }
.tur-pop[data-pos="top"]::before { display: block; bottom: -7px; left: var(--ax, 28px); transform: rotate(225deg); }
.tur-pop[data-pos="right"]::before { display: block; left: -7px; top: var(--ay, 28px); transform: rotate(-45deg); }
.tur-pop[data-pos="left"]::before { display: block; right: -7px; top: var(--ay, 28px); transform: rotate(135deg); }
.tur-pop-top { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted, #6e6e73); font-weight: 500; font-variant-numeric: tabular-nums; }
.tur-pop-top .tur-bar { height: 4px; }
.tur-pop-top .tur-x { width: 26px; height: 26px; font-size: 18px; }
.tur-pop h4 { margin: 10px 0 4px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.tur-pop p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2, #3a3a3c); }
.tur-pop p b { font-weight: 650; color: var(--ink, #1d1d1f); }
.tur-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.tur-pop-foot .tur-act { padding: 7px 12px; }
.tur-pop-foot .tur-act[disabled] { opacity: .45; cursor: default; }
.tur-pop-foot .sp { flex: 1; }
.tur-mod { font-size: 11.5px; color: var(--muted, #6e6e73); }
@keyframes turPop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.tur-win { animation-name: turPopC; }
@keyframes turPopC { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes turFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 820px) {
  .tur-win { width: calc(100vw - 16px); max-height: 90vh; border-radius: 16px; }
  .tur-card { grid-template-columns: 30px 1fr; }
  .tur-card .tur-act { grid-column: 2; justify-self: start; margin-top: 4px; }
  .tur-pop { width: calc(100vw - 16px); left: 8px !important; right: 8px; }
  .tur-pop::before { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .tur-win, .tur-pop, .tur-dim, .tur-spot { animation: none; transition: none; } }
