/* h-tools.css (v4, 2026-11-17): ana sayfa "Tüm araçlar". v3.css'ten SONRA yüklenir.
   Fikir: tablo gibi bitişik hücreler yerine ayrı kartlardan bir galeri + (geniş ekranda) yapışkan "canlı vitrin":
   üstüne gelinen / odaklanan aracın ne yaptığını gerçek kâğıt sahnesiyle (DNScene) gösterir. Telefonda başparmağa göre
   tek sütun liste ve başlığın altına yapışan, kaydırınca yerine oturan kategori şeridi. "Cihazında kalır" süzgeci yeşil
   kimliğiyle açılır. Hareket yalnız html.motion altında; her şey JS'siz de görünür. */

/* ---------- arama ---------- */
#tum .tl-bar .search { position: relative; flex: 0 1 400px; height: 48px; padding: 0 8px 0 14px; gap: 10px; border-radius: 12px; background: var(--bg);
  box-shadow: 0 1px 2px rgba(18, 20, 24, .04); transition: border-color .2s, box-shadow .25s var(--mc-out); }
#tum .tl-bar .search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18, 20, 24, .06), 0 8px 22px rgba(18, 20, 24, .08); }
#tum .tl-bar .search input { font-size: 16px; height: 100%; }
#tum .tl-bar .search input::-webkit-search-cancel-button { display: none; }
.tl-cnt { flex: none; font: 500 12px/1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.tl-cnt:empty { display: none; }
.tl-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer; }
.tl-x:hover { background: var(--bg-3); color: var(--ink); }
.tl-x[hidden] { display: none; }

/* ---------- kategori şeridi ---------- */
#tum .tabs { margin-bottom: 0; }
.tl-rail { margin-bottom: 16px; }
#tum .tab { transition: background-color .25s var(--mc-out), border-color .2s, color .2s, transform .2s var(--mc-out); }
#tum .tab:active { transform: scale(.96); }
#tum .tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- "Cihazında kalır" kimliği ---------- */
.tl-dev { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--ok) 28%, var(--line)); border-radius: 14px;
  background: linear-gradient(100deg, var(--ok-soft), color-mix(in srgb, var(--ok-soft) 40%, var(--bg)) 70%); }
.tl-dev[hidden] { display: none; }
.td-t { min-width: 0; }
.td-t strong { display: block; font-family: var(--f-display); font-size: 17px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.td-t p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 76ch; }
/* küçük telefon: cam, içinde kâğıt, köşede yeşil onay */
.td-ph { position: relative; flex: none; width: 42px; height: 68px; border-radius: 9px; background: linear-gradient(160deg, #2A2F38, #121418); box-shadow: 0 8px 18px rgba(18, 20, 24, .18), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.td-scr { position: absolute; inset: 3px; border-radius: 6.5px; background: linear-gradient(165deg, #FFFFFF, #EEF8F2); overflow: hidden; display: grid; place-items: center; }
.td-pg { display: grid; align-content: start; gap: 3px; width: 22px; height: 30px; padding: 5px 4px; border-radius: 2.5px; background: #fff; border: 1px solid #D5DAE2; box-shadow: 0 3px 6px rgba(18, 20, 24, .12); }
.td-pg i { display: block; height: 2px; border-radius: 1px; background: #C9D0DB; }
.td-pg i:first-child { width: 60%; background: #2A2F38; }
.td-ok { position: absolute; right: -8px; bottom: -6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 0 0 2.5px var(--ok-soft), 0 4px 10px rgba(30, 138, 79, .35); }
.td-ok svg { width: 12px; height: 12px; }
[dir="rtl"] .td-ok { right: auto; left: -8px; }
.motion .tl-dev:not([hidden]) { animation: tl-dev-in .5s var(--mc-out) backwards; }
.motion .tl-dev:not([hidden]) .td-ok { animation: tl-pop .5s var(--mc-spring) .25s backwards; }
.motion .tl-dev:not([hidden]) .td-pg { animation: tl-pg-in .6s var(--mc-out) .1s backwards; }
@keyframes tl-dev-in { from { opacity: 0; clip-path: inset(0 0 100% 0 round 14px); transform: translateY(-8px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 14px); transform: none; } }
@keyframes tl-pop { from { transform: scale(0); } }
@keyframes tl-pg-in { from { transform: translateY(34px); } }
#tum.is-cihaz .cell .ico { background: color-mix(in srgb, var(--ok) 9%, var(--bg)); }
#tum.is-cihaz .cell { --cc: var(--ok); }

/* ---------- gövde: ızgara + vitrin ---------- */
.tg-body { display: block; }
.tg-main { min-width: 0; }
#tum .cells { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
#tum .cell { align-items: flex-start; gap: 14px; padding: 13px 14px 14px 13px; min-height: 100px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  box-shadow: 0 1px 2px rgba(18, 20, 24, .03); outline: 0;
  transition: transform .4s var(--mc-out), box-shadow .4s var(--mc-out), border-color .2s, background-color .2s; }
#tum .cell[data-h] { background: var(--bg); }
#tum .cell .ico { position: relative; width: 68px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: color-mix(in srgb, var(--cc) 6%, var(--bg-2)); transition: background-color .25s; }
#tum .cell .ico svg { height: 38px; width: auto; max-width: 60px; transition: transform .45s var(--mc-out); }
#tum .cell .ico img { height: 38px; width: auto; }
#tum .cell .txt { gap: 3px; padding-top: 1px; }
#tum .cell h3 { font-size: 15px; line-height: 1.3; }
#tum .cell p { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#tum .cell .nw { inset-inline-start: 7px; inset-inline-end: auto; right: auto; top: 7px; z-index: 1; padding: 3px 5px 2px; border-radius: 5px; background: var(--brand); color: #fff; font-size: 9px; line-height: 1; letter-spacing: .05em; box-shadow: 0 2px 5px rgba(227, 38, 43, .3); }
[dir="rtl"] #tum .cell .nw { left: auto; }
#tum .cell[data-h="2"] .ico svg { transform: none; }
@media (hover: hover) {
  #tum .cell:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cc) 45%, var(--line)); box-shadow: 0 2px 4px rgba(18, 20, 24, .04), 0 14px 28px rgba(18, 20, 24, .09); }
  #tum .cell:hover .ico { background: color-mix(in srgb, var(--cc) 13%, var(--bg)); }
  #tum .cell:hover .ico svg { transform: scale(1.1); }
}
#tum .cell:active { transform: scale(.985); transition-duration: .12s; }
#tum .cell:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 20, 24, .14), 0 14px 28px rgba(18, 20, 24, .09); }
#tum .cell:focus-visible .ico svg { transform: scale(1.1); }
/* vitrinde gösterilen kart: kenarında ailesinin rengi */
#tum .cell.is-view { border-color: color-mix(in srgb, var(--cc) 55%, var(--line)); }
#tum .cell.is-view .ico { background: color-mix(in srgb, var(--cc) 13%, var(--bg)); }
#tum .cell.is-view::after { content: ""; position: absolute; inset-inline-end: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--cc); }
#tum .cells.cut .cell:nth-child(n+17) { display: none; }
#tum .all-more { margin-top: 20px; height: 48px; max-width: 340px; border-radius: 12px; font-size: 15px; }

/* canlı vitrin */
.tv { display: none; }
@media (min-width: 1061px) and (hover: hover) and (pointer: fine) {
  .tg-body { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 20px; align-items: start; }
  #tum .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tum .cells.cut .cell:nth-child(n+16) { display: none; }
  .tv { display: block; position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); overflow: hidden;
    box-shadow: 0 1px 2px rgba(18, 20, 24, .04), 0 18px 44px rgba(18, 20, 24, .09); }
}
/* QA (başsız tarayıcıda fare yok): ?tv=1 → html.tv-qa aynı düzeni zorlar */
@media (min-width: 1061px) {
  html.tv-qa .tg-body { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 20px; align-items: start; }
  html.tv-qa #tum .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.tv-qa #tum .cells.cut .cell:nth-child(n+16) { display: none; }
  html.tv-qa .tv { display: block; position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); overflow: hidden;
    box-shadow: 0 1px 2px rgba(18, 20, 24, .04), 0 18px 44px rgba(18, 20, 24, .09); }
}
.tv-stage { position: relative; border-bottom: 1px solid var(--line); }
.h3.h3--tv { height: 244px; border-radius: 0; }
.h3--tv .h3-page { left: 39%; top: 49%; scale: .68; }
.h3--tv .h3-floor { left: 39%; top: 91%; width: 180px; margin-left: -90px; }
.h3--tv .h3-chip { height: 32px; font-size: 11.5px; padding-right: 11px; gap: 7px; }
.h3--tv .h3-cloud { right: 4%; top: 7%; }
.h3--tv .h3-tray { right: 5%; bottom: 9%; }
.h3--tv .h3-dust { right: calc(4% + 80px); }
.h3--tv .h3-name { display: none; }
.tv.is-local .h3-cloud, .tv.is-local .h3-dust { display: none; }
/* cihazda çalışan araç: sahne bir cihazın camının içinde kalır (yeşil çerçeve), "geçici kopya" hiç görünmez */
.tv-stage::after { content: ""; position: absolute; inset: 8px; border-radius: 12px; border: 1.5px solid var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 10%, transparent) inset; opacity: 0; transform: scale(1.03); pointer-events: none;
  transition: opacity .35s var(--mc-out), transform .5s var(--mc-out); }
.tv.is-local .tv-stage::after { opacity: .75; transform: none; }
.tv-meta { padding: 16px 18px 18px; display: grid; gap: 8px; }
.tv-meta > * { transition: opacity .2s var(--mc-out), transform .35s var(--mc-out); }
.tv.is-swap .tv-meta > * { opacity: 0; transform: translateY(4px); transition-duration: .12s; }
.tv-fmt { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-3); min-height: 26px; }
.tv-fmt b { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px; background: var(--c, var(--ink)); color: #fff; font: 700 12px/1 var(--f-mono); letter-spacing: .03em; white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.tv-fmt b:empty, .tv-fmt b:empty + svg { display: none; }
.tv-fmt b[data-f="pdf"] { --c: var(--c-pdf); } .tv-fmt b[data-f="doc"] { --c: var(--c-doc); } .tv-fmt b[data-f="xls"] { --c: var(--c-xls); } .tv-fmt b[data-f="img"] { --c: var(--c-img); }
.tv-fmt b[data-f="aud"] { --c: var(--c-aud); } .tv-fmt b[data-f="vid"] { --c: var(--c-vid); } .tv-fmt b[data-f="txt"] { --c: var(--c-txt); }
.tv-name { font-family: var(--f-display); font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.012em; color: var(--ink); }
.tv-desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); min-height: 63px; }
.tv-fact { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; font-weight: 500; color: var(--ink-2); }
.tv-fact i { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.tv.is-local .tv-fact { color: var(--ok); }
.tv.is-local .tv-fact i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* ---------- boş sonuç ---------- */
#tum .tl-none { display: grid; justify-items: center; gap: 6px; padding: 36px 20px 40px; border: 1px dashed var(--line-2); border-radius: 16px; background: var(--bg); color: var(--ink-2); text-align: center; }
#tum .tl-none[hidden] { display: none; }
.tl-none p { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.5; }
.tn-h { font-family: var(--f-display); font-size: 21px; line-height: 1.25; letter-spacing: -.012em; color: var(--ink); overflow-wrap: anywhere; }
.tn-h[hidden] { display: none; }
.tn-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.tn-act .btn { height: 44px; border-radius: 10px; }
/* boş kâğıt + üstünde gezinen büyüteç */
.tn-art { position: relative; width: 96px; height: 104px; margin-bottom: 8px; }
.tn-pg { position: absolute; left: 14px; top: 6px; width: 64px; height: 84px; padding: 13px 10px; display: grid; align-content: start; gap: 7px; border-radius: 6px; background: linear-gradient(160deg, #fff, #F5F6F8); border: 1px solid #D5DAE2;
  box-shadow: 0 14px 26px rgba(18, 20, 24, .13), 0 3px 8px rgba(18, 20, 24, .06); transform: rotate(-5deg); }
.tn-pg i { display: block; height: 4px; border-radius: 2px; border: 1px dashed #C9D0DB; }
.tn-pg i:nth-child(2) { width: 70%; } .tn-pg i:nth-child(4) { width: 46%; }
.tn-lens { position: absolute; left: 44px; top: 40px; width: 40px; height: 40px; border-radius: 50%; border: 3.5px solid var(--ink); background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 60%, rgba(46, 107, 230, .08));
  box-shadow: 0 8px 16px rgba(18, 20, 24, .2), 0 0 0 1px rgba(255, 255, 255, .6) inset; }
.tn-lens::after { content: ""; position: absolute; left: 31px; top: 33px; width: 5px; height: 20px; border-radius: 3px; background: var(--ink); transform: rotate(-45deg); transform-origin: 50% 0; }
.motion .tl-none:not([hidden]) .tn-lens { animation: tn-seek 4.2s var(--mc-io) infinite; }
.motion .tl-none:not([hidden]) { animation: tn-in .45s var(--mc-out) backwards; }
@keyframes tn-seek { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-30px, -22px); } 62% { transform: translate(-6px, -34px); } 82% { transform: translate(-26px, 4px); } }
@keyframes tn-in { from { opacity: 0; transform: scale(.97); } }
.is-paused .tn-lens, .is-still .tn-lens { animation: none !important; }

/* ---------- tablet ---------- */
@media (max-width: 1060px) {
  #tum .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tum .cells.cut .cell:nth-child(n+16) { display: none; }
}
/* ---------- telefon: tek sütun, başparmağa göre; kategori şeridi başlığın altına yapışır ---------- */
@media (max-width: 760px) {
  #tum .cells { grid-template-columns: 1fr; gap: 8px; }
  #tum .cell { flex-direction: row; align-items: center; gap: 12px; padding: 11px 12px; min-height: 76px; }
  #tum .cell .ico { width: 60px; height: 54px; }
  #tum .cell .ico svg, #tum .cell .ico img { height: 34px; max-width: 52px; }
  #tum .cell h3 { font-size: 16.5px; }
  #tum .cell p { font-size: 14.5px; -webkit-line-clamp: 2; }
  #tum .cells.cut .cell:nth-child(n+9) { display: none; }
  #tum .tl-bar .search { flex: 1 1 100%; height: 52px; }
  .tl-rail { position: sticky; top: var(--hdr-h, 61px); z-index: 6; margin: 0 -16px 12px; padding: 8px 0; background: var(--bg-2); transition: box-shadow .25s; }
  .tl-rail.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 18px -12px rgba(18, 20, 24, .18); }
  #tum .tabs { margin: 0; padding: 0 16px; gap: 8px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  [dir="rtl"] #tum .tabs { margin: 0; padding: 0 16px; }
  #tum .tab { scroll-snap-align: start; height: 42px; padding: 0 16px; font-size: 15px; }
  .tl-rail::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 28px; pointer-events: none; background: linear-gradient(to left, var(--bg-2), transparent); }
  [dir="rtl"] .tl-rail::after { background: linear-gradient(to right, var(--bg-2), transparent); }
  .tl-dev { align-items: flex-start; gap: 16px; padding: 14px; }
  .td-t strong { font-size: 16.5px; } .td-t p { font-size: 15px; }
  #tum .all-more { max-width: none; height: 52px; font-size: 16px; }
  .tn-act { width: 100%; } .tn-act .btn { flex: 1 1 100%; height: 48px; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  #tum .cell, #tum .cell .ico svg, .tv-meta > *, .tv-stage::after { transition: none; }
}
