/* Smartconcept Teknik Kütüphane · "Raf Atlası" (docs/art-direction.md)
   Renkler ve yazı tipleri ÖNERİDİR; mağazanın lacivert/turkuaz değerleri ve Inter + IBM Plex Mono temel alındı. */

:root {
  --paper: #F5F6FA; --surface: #FFFFFF; --mat: #ECEEF4; --rule: #E6E5EE;
  --ink: #16142B; --ink-2: #4A4864; --navy: #1E146C; --navy-2: #2B2090; --navy-3: #140D4F;
  --teal: #00A99A; --teal-text: #00786D; --link: #00786D;
  --grad: linear-gradient(90deg, #00D3C0, #006D9B);
  --stage: #1B1A26; --stage-2: #23222F; --stage-ink: #F3F2FA; --stage-ink-2: #B8B5D6; --ring-on-dark: #3FE0CF;
  --focus: 0 0 0 2px #fff, 0 0 0 4px var(--navy);
  --shadow-cover: 0 1px 2px rgba(22,20,43,.12), 0 6px 16px -8px rgba(22,20,43,.25);
  --edge: rgba(22,20,43,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12111C; --surface: #1A1926; --mat: #23213A; --rule: #2E2C42;
    --ink: #F3F2FA; --ink-2: #B8B5D6; --navy: #B9A2FF; --link: #3FE0CF; --teal-text: #3FE0CF;
    --focus: 0 0 0 2px #12111C, 0 0 0 4px #3FE0CF;
    --edge: rgba(255,255,255,.12);
    --shadow-cover: 0 1px 2px rgba(0,0,0,.4), 0 8px 18px -8px rgba(0,0,0,.6);
    color-scheme: dark;
  }
  .card, .hit, .chips span, .tchip { --c: var(--cd) !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; letter-spacing: -.01em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .9em; }
.break { word-break: break-all; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* Üst: logo gradyanı çizgisi (B yönünün "sinyal hattı") */
.signal { height: 3px; background: var(--grad); background-size: 200% 100%; animation: signal 9s linear infinite; }
@keyframes signal { to { background-position: -200% 0; } }

.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brandmark { display: flex; flex: none; }
.brandmark img { width: 132px; height: auto; display: block; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }
.libmark { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); text-decoration: none; border-left: 1px solid var(--rule); padding-left: 14px; white-space: nowrap; }
.top-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.top-search .i { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--ink-2); }
.top-search input { width: 100%; height: 40px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 0 12px 0 40px; font: inherit; font-size: .9375rem; }
.top-search input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 20%, transparent); }
.top-nav { display: flex; gap: 4px; }
.top-nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: .9375rem; white-space: nowrap; }
.top-nav a:hover, .top-nav a[aria-current] { background: var(--mat); }
.home .top-search { visibility: hidden; }
@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; min-height: 0; }
  .libmark { display: none; }
  .top-nav { margin-left: auto; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; }
  .home .top-search { display: none; }
}
@media (max-width: 420px) { .top-nav a { padding: 8px 7px; font-size: .875rem; } .brandmark img { width: 112px; } }

/* Ana sayfa: arama */
.hero { padding-block: clamp(32px, 6vw, 72px) 40px; }
.eyebrow, .band-head p, .stats, .callno, .card-m, .code, .page-live, .strip-track span { font-family: var(--mono); }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-text); margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.lead { color: var(--ink-2); font-size: 1.0625rem; max-width: 62ch; margin: 0 0 24px; }
.big-search { position: relative; display: flex; max-width: 820px; }
.big-search .i { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--ink-2); width: 22px; height: 22px; }
.big-search input { flex: 1; min-width: 0; height: 56px; border: 2px solid var(--navy); border-right: 0; border-radius: var(--r) 0 0 var(--r); padding: 0 16px 0 52px; font: inherit; font-size: 1.0625rem; background: var(--surface); color: var(--ink); }
.big-search input:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 35%, transparent); }
.big-search button { height: 56px; border: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--navy); color: #fff; font: 600 1rem var(--sans); padding: 0 24px; cursor: pointer; }
@media (prefers-color-scheme: dark) { .big-search button { color: #12111C; } }
.big-search button:hover { background: var(--navy-2); }
.hint { font-size: .875rem; color: var(--ink-2); margin: 10px 0 22px; }
kbd { font-family: var(--mono); font-size: .8em; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface); }
.stats { font-size: .8125rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 0; }
.stats i, .callno i { font-style: normal; opacity: .5; margin-inline: .45em; }

.topic-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 8px; border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9375rem; transition: border-color .16s var(--ease), transform .16s var(--ease); }
.tchip b { font: 500 .6875rem var(--mono); letter-spacing: .04em; color: #fff; background: var(--c); border-radius: 999px; padding: 3px 7px; }
.tchip .n { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
a.tchip:hover { border-color: var(--c); transform: translateY(-1px); }
.tchip[aria-current] { border-color: var(--c); box-shadow: inset 0 -3px 0 var(--c); }
.tchip.is-empty { opacity: .65; }
@media (prefers-color-scheme: dark) { .tchip b { color: #12111C; } }

/* Koyu bant (coverflow) */
.band { padding-block: 40px 48px; }
.band-dark { background: var(--stage); color: var(--stage-ink); }
.band-dark a { color: var(--stage-ink); }
.band-tight { padding-block: 24px 32px; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.band-head h2 { font-size: 1.75rem; margin: 0; }
.band-head p { margin: 0; font-size: .8125rem; color: var(--ink-2); max-width: 60ch; }
.band-dark .band-head p { color: var(--stage-ink-2); }

.flow { position: relative; }
.flow-track { list-style: none; margin: 0; padding: 24px max(16px, calc(50% - 130px)) 28px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; perspective: 1100px; overscroll-behavior-x: contain; }
.flow-track::-webkit-scrollbar { display: none; }
.flow-track:focus-visible { box-shadow: inset 0 0 0 2px var(--ring-on-dark); border-radius: 0; }
.flow-item { flex: 0 0 auto; width: 260px; scroll-snap-align: center; transform-style: preserve-3d; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.flow-item a { display: block; text-decoration: none; border-radius: 10px; }
.flow-cover { display: flex; align-items: flex-end; justify-content: center; height: 300px; }
.flow-cover img { max-height: 300px; width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); background: #2A2938; -webkit-box-reflect: below 6px linear-gradient(transparent 70%, rgba(255,255,255,.12)); }
.flow-cap { display: block; padding-top: 18px; text-align: center; opacity: 0; transition: opacity .2s var(--ease); }
.flow-item.is-center .flow-cap, .no-flow .flow-cap, .flow-item:focus-within .flow-cap { opacity: 1; }
.flow-t { display: block; font-weight: 600; font-size: 1rem; line-height: 1.3; margin-bottom: 6px; }
.band-dark .callno { color: var(--stage-ink-2); }
.band-dark .callno b { color: var(--cd); }
.flow-btn { position: absolute; top: 150px; translate: 0 -50%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(27,26,38,.85); color: #fff; display: grid; place-items: center; cursor: pointer; }
.flow-btn:hover { background: #35344a; }
.flow-btn:focus-visible { box-shadow: 0 0 0 2px var(--stage), 0 0 0 4px var(--ring-on-dark); }
.flow-prev { left: max(12px, env(safe-area-inset-left, 0px)); } .flow-next { right: max(12px, env(safe-area-inset-right, 0px)); }
.no-js .flow-btn { display: none; }
@media (max-width: 640px) { .flow-item { width: 200px; } .flow-cover { height: 240px; } .flow-cover img { max-height: 240px; } .flow-btn { top: 128px; width: 40px; height: 40px; } .flow-track { padding-inline: max(16px, calc(50% - 100px)); } }

/* Marka halkası */
.ring-sec { position: relative; height: 230vh; background: linear-gradient(var(--paper), color-mix(in srgb, var(--mat) 60%, var(--paper))); }
.ring-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 24px; }
.ring-stage { position: relative; height: 420px; perspective: 1400px; perspective-origin: 50% 40%; }
.ring { list-style: none; margin: 0; padding: 0; position: absolute; left: 50%; top: 20px; width: 220px; height: 360px; translate: -50% 0; transform-style: preserve-3d; transform: rotateY(var(--rot, 0deg)); }
.ring-card { position: absolute; inset: 0; transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--radius, 380px)); backface-visibility: hidden; }
.ring-card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 24px 48px -28px rgba(22,20,43,.45); transition: transform .2s var(--ease), border-color .2s var(--ease); }
.ring-card a:hover, .ring-card a:focus-visible { border-color: var(--navy); transform: translateY(-6px); }
.ring-cover { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; background: var(--mat); padding: 16px 16px 0; }
.ring-cover img { max-height: 100%; width: auto; object-fit: contain; box-shadow: var(--shadow-cover); border: 1px solid var(--edge); }
.ring-plate { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px 16px; border-top: 2px solid var(--rule); }
.ring-logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.ring-name { font-weight: 700; font-size: 1.25rem; }
.ring-n { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .ring-logo { background: #fff; border-radius: 6px; padding: 4px 8px; height: 38px; } }
/* Halka kapalıyken (JS yok, hareket azaltılmış ya da dar ekran): düz yatay raf */
:is(.ring-flat, .no-js) .ring-sec { height: auto; }
:is(.ring-flat, .no-js) .ring-sticky { position: static; height: auto; padding-block: 40px; }
:is(.ring-flat, .no-js) .ring-stage { height: auto; perspective: none; }
:is(.ring-flat, .no-js) .ring { position: static; translate: none; width: auto; height: auto; transform: none; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 20px; }
:is(.ring-flat, .no-js) .ring-card { position: relative; inset: auto; transform: none; flex: 0 0 200px; height: 320px; scroll-snap-align: start; }

/* Konu rafları ve kartlar */
.shelf { padding-block: 36px 8px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.shelf-head h2 { font-size: 1.5rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.code { font-size: .75rem; letter-spacing: .06em; color: #fff; background: var(--c); border-radius: 6px; padding: 4px 8px; font-weight: 500; }
@media (prefers-color-scheme: dark) { .code { background: var(--cd); color: #12111C; } }
.shelf-head a { font-weight: 500; white-space: nowrap; }
.shelf-row { list-style: none; margin: 0; padding: 4px 2px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 232px); gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; border-bottom: 2px solid var(--rule); }
.shelf-row > * { scroll-snap-align: start; }
.shelf-empty { color: var(--ink-2); border: 1px dashed var(--rule); border-radius: var(--r); padding: 18px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 28px 20px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.card { position: relative; min-width: 0; }
.card-a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border-radius: 10px; }
.card-a::before { content: ""; position: absolute; left: -2px; top: 0; height: calc(100% * .62); width: 4px; border-radius: 4px; background: var(--c, var(--rule)); transition: width .16s var(--ease); z-index: 1; }
.card-a:hover::before, .card-a:focus-visible::before { width: 8px; }
.plinth { position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 4 / 5; background: var(--mat); border-radius: 8px; padding: 12px; border-bottom: 2px solid var(--rule); overflow: hidden; }
.plinth::after { content: ""; position: absolute; inset: 0; background: var(--mat-tint, transparent); opacity: .08; pointer-events: none; }
.cover { display: contents; }
.plinth img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center bottom; border: 1px solid var(--edge); box-shadow: var(--shadow-cover); background: #fff; transition: transform .16s var(--ease); position: relative; z-index: 1; }
.card-a:hover .plinth img, .card-a:focus-visible .plinth img { transform: translateY(-6px); }
.card-b { display: flex; flex-direction: column; gap: 6px; padding: 12px 2px 0; min-width: 0; }
.card-brand { font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--c, var(--ink-2)); }
.card-t { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.card-a:hover .card-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips span { font-size: .75rem; line-height: 1; padding: 5px 7px; border-radius: 6px; background: color-mix(in srgb, var(--c, var(--ink-2)) 10%, transparent); color: var(--ink); }
.card-m { font-size: .75rem; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--ink-2); }
.badge .i { width: 16px; height: 16px; }
.badge-text { color: var(--teal-text); }
.callno { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.callno b { color: var(--c); font-weight: 500; }

/* Liste ve arama */
.page-head { padding-block: 28px 22px; }
.crumbs { font-size: .875rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.crumbs a { color: inherit; }
.page-head h1 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); margin: 0 0 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .lead { margin-bottom: 0; }
.head-logo { display: block; height: 40px; width: auto; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .head-logo { background: #fff; padding: 6px 10px; border-radius: 8px; height: 52px; } }
.head-links { margin: 10px 0 0; font-weight: 500; }
.browse { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 32px; padding-block: 12px 64px; align-items: start; }
.filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; }
.filters fieldset { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: 14px 0 12px; }
.filters legend { font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: .9375rem; }
.opt input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; flex: none; }
.opt span:first-of-type { flex: 1; }
.opt .n { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
.opt.is-off { color: var(--ink-2); opacity: .55; cursor: default; }
.sel select { width: 100%; height: 40px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; padding: 0 10px; }
.filter-actions { display: flex; gap: 8px; padding-top: 12px; }
.js .filter-actions .btn[type=submit] { display: none; }
.sheet-head { display: none; }
.results { min-width: 0; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; min-height: 40px; }
.count { margin: 0; font-family: var(--mono); font-size: .875rem; color: var(--ink-2); }
.count b { color: var(--ink); font-size: 1.125rem; }
.active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.achip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-size: .8125rem; }
.achip .i { width: 16px; height: 16px; }
@media (prefers-color-scheme: dark) { .achip { color: #12111C; } }
.clear { font-size: .875rem; }
.filter-open { display: none; margin-left: auto; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: 500 .9375rem var(--sans); cursor: pointer; }
.results[aria-busy="true"] { opacity: .55; transition: opacity .12s; }
.group-h { font-size: 1.25rem; margin: 8px 0 16px; display: flex; align-items: baseline; gap: 10px; }
.group-h span { font: 400 .8125rem var(--mono); color: var(--ink-2); }
.grid + .group-h { margin-top: 44px; }
.anim-in { animation: rise .14s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

@media (max-width: 900px) {
  .browse { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filter-open { display: inline-flex; }
  .no-js .filter-open { display: none; }
  .js .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 88vh; z-index: 60; background: var(--surface); border-radius: 18px 18px 0 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -20px 60px rgba(0,0,0,.3); transform: translateY(105%); transition: transform .24s var(--ease); visibility: hidden; }
  .js .filters.is-open { transform: none; visibility: visible; }
  .js .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: 14px 0 10px; z-index: 1; }
  .sheet-head p { margin: 0; font-weight: 600; font-size: 1.125rem; }
  .sheet-close { width: 44px; height: 44px; border: 0; background: var(--mat); border-radius: 50%; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
  .js .filter-actions { position: sticky; bottom: 0; background: var(--surface); padding-block: 12px; }
  .js .filter-actions .btn[type=submit] { display: inline-flex; flex: 1; }
  .no-js .filters { position: static; max-height: none; margin-bottom: 18px; }
  .sheet-backdrop { position: fixed; inset: 0; background: rgba(10,8,30,.45); z-index: 55; }
}

.hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.hit { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--c, var(--rule)); border-radius: var(--r); }
.hit-cover { display: flex; align-items: flex-start; }
.hit-cover img { width: 100%; height: auto; border: 1px solid var(--edge); box-shadow: var(--shadow-cover); }
.hit h3 { margin: 0 0 4px; font-size: 1.125rem; }
.hit h3 a { color: var(--ink); }
.hit-m { margin: 0 0 12px; font-size: .875rem; color: var(--ink-2); }
.hit-pages { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hit-pages a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; text-decoration: none; color: var(--ink); padding: 8px; border-radius: 8px; border: 1px solid transparent; }
.hit-pages a:hover { background: var(--paper); border-color: var(--rule); }
.hit-pages img { height: 96px; width: auto; max-width: 160px; object-fit: contain; border: 1px solid var(--edge); background: #fff; }
.hit-pages b { display: block; font: 500 .8125rem var(--mono); color: var(--teal-text); margin-bottom: 4px; }
.snip { font-size: .9375rem; color: var(--ink-2); }
mark { background: color-mix(in srgb, var(--teal) 30%, transparent); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.more { margin: 10px 0 0 8px; font-size: .875rem; }
@media (max-width: 560px) { .hit { grid-template-columns: 1fr; } .hit-cover { display: none; } .hit-pages a { grid-template-columns: 64px minmax(0, 1fr); } .hit-pages img { height: auto; width: 64px; } }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border-radius: var(--r); background: var(--mat); color: var(--ink-2); font-size: .9375rem; }

.empty { padding: 32px 0; max-width: 62ch; }
.empty h2 { font-size: 1.375rem; margin: 18px 0 10px; }
.empty-shelf { display: flex; gap: 10px; align-items: flex-end; height: 72px; border-bottom: 2px solid var(--rule); width: 200px; }
.empty-shelf span { width: 44px; border: 2px dashed var(--rule); border-bottom: 0; border-radius: 4px 4px 0 0; height: 60%; }
.empty-shelf span:nth-child(2) { height: 85%; } .empty-shelf span:nth-child(3) { height: 45%; }
.tips { padding-left: 18px; color: var(--ink-2); margin-bottom: 18px; }
.empty-help { margin-top: 18px; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: 600 .9375rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.btn .mono { font-weight: 400; opacity: .85; }
@media (prefers-color-scheme: dark) { .btn { color: #12111C; } .btn:hover { background: #cbb9ff; } }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--rule); }
.btn-ghost:hover { background: var(--mat); }
@media (prefers-color-scheme: dark) { .btn-ghost { color: var(--ink); } .btn-ghost:hover { background: var(--mat); } }
.btn-ghost-dark { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-weight: 600; }

/* Katalog sayfası: koyu sahne, açık kitap, sayfa şeridi */
.reader-page { background: var(--paper); }
.stage { background: radial-gradient(120% 80% at 50% 0%, #2A2840 0%, var(--stage) 60%); color: var(--stage-ink); }
.stage-in { max-width: 1440px; margin-inline: auto; padding: 14px max(12px, env(safe-area-inset-right, 0px)) 12px max(12px, env(safe-area-inset-left, 0px)); }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 4px; min-height: 32px; }
.crumbs-dark { color: var(--stage-ink-2); margin: 0; font-size: .8125rem; min-width: 0; }
.crumbs-dark a { color: var(--stage-ink-2); }
.crumbs-dark [aria-current] { color: var(--stage-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; }
.page-live { margin: 0; font-size: .8125rem; color: var(--stage-ink-2); white-space: nowrap; }
.book-wrap { position: relative; height: clamp(420px, calc(100vh - 64px - 3px - 48px - 150px), 1000px); margin-top: 8px; }
.book { height: 100%; --pdflip-accent: #3FE0CF; }
.book-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.book-cover img { max-height: calc(100% - 60px); max-height: 62vh; width: auto; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.14); }
.book-msg { color: var(--stage-ink-2); margin: 0; font-size: .9375rem; text-align: center; max-width: 52ch; }
.book-msg a { color: var(--ring-on-dark); }
.book.is-ready .book-fallback, .book:has(.pdflip-main) .book-fallback { display: none; }
[hidden] { display: none !important; }
.book-error { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; background: rgba(27,26,38,.96); padding: 24px; border-radius: 12px; }
.book-error h2 { margin: 0; font-size: 1.375rem; }
.book-error p { color: var(--stage-ink-2); margin: 0 0 8px; }
.book-error-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.book-error .btn { background: var(--ring-on-dark); border-color: var(--ring-on-dark); color: #12111C; }
.strip { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.strip-track { list-style: none; margin: 0; padding: 6px 4px 10px; display: flex; gap: 10px; overflow-x: auto; flex: 1; min-width: 0; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #4a4860 transparent; }
.strip-track li { flex: none; scroll-snap-align: center; }
.strip-track a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--stage-ink-2); border-radius: 6px; padding: 3px; }
.strip-track img { height: 84px; width: auto; display: block; border-radius: 2px; border: 1px solid rgba(255,255,255,.14); opacity: .78; transition: opacity .16s var(--ease), transform .16s var(--ease); background: #2A2938; }
.strip-track a:hover img { opacity: 1; transform: translateY(-2px); }
.strip-track a[aria-current] img { opacity: 1; outline: 2px solid var(--ring-on-dark); outline-offset: 2px; }
.strip-track a[aria-current] span { color: var(--ring-on-dark); }
.strip-track span { font-size: .6875rem; }
.strip-track a:focus-visible { box-shadow: 0 0 0 2px var(--ring-on-dark); }
.strip-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--stage-ink); display: grid; place-items: center; cursor: pointer; }
.strip-btn:hover { background: rgba(255,255,255,.08); }
.no-js .strip-btn { display: none; }
@media (max-width: 720px) {
  .book-wrap { height: min(calc(100svh - 64px - 40px - 150px), 760px); min-height: 380px; }
  .strip-btn { display: none; }
  .strip-track img { height: 70px; }
  .crumbs-dark [aria-current] { max-width: 18ch; }
}
/* pdflip: koyu sahneye uyum */
.book .pdflip-toolbar { background: rgba(20,19,30,.92); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.book .pdflip-button { min-width: 40px; min-height: 40px; }
.book .pdflip-page { box-shadow: 0 0 0 1px rgba(255,255,255,.14); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-block: 36px 56px; align-items: start; }
.note-card { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--c, var(--navy)); border-radius: 6px; padding: 26px clamp(18px, 3vw, 32px); box-shadow: 0 20px 40px -30px rgba(22,20,43,.45); transform: rotate(-.6deg); transform-origin: 30% 0; }
.note-brand { font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--c, var(--ink-2)); margin: 0 0 6px; }
.note-card h1 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.125rem); margin: 0 0 8px; }
.note-desc { color: var(--ink-2); }
.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; margin: 20px 0; }
.meta div { padding: 10px 0; border-top: 1px solid var(--rule); min-width: 0; }
.meta dt { font: 500 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 2px; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.meta small { color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-ok { min-height: 1.4em; margin: 8px 0 0; font-size: .875rem; color: var(--teal-text); }
.note-small { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; color: var(--ink-2); }
.sum { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 10px; font-size: .875rem; color: var(--ink-2); }
.sum summary { cursor: pointer; font-weight: 500; color: var(--ink); min-height: 32px; display: flex; align-items: center; }
.help { background: var(--navy); color: #fff; border-radius: var(--r); padding: 24px; position: sticky; top: 84px; }
.help h2 { font-size: 1.25rem; margin: 0 0 8px; }
.help p { color: rgba(255,255,255,.82); }
.help .btn { background: #fff; color: var(--navy-3); border-color: #fff; }
.help .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.help-a { display: flex; flex-wrap: wrap; gap: 8px; }
.help a:not(.btn) { color: #9FF3EA; }
@media (prefers-color-scheme: dark) { .help { background: #221F45; } }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } .help { position: static; } .note-card { transform: none; } }

.err { padding-block: 56px 72px; max-width: 760px; }
.err-code { font: 500 .875rem var(--mono); color: var(--teal-text); margin: 0 0 8px; letter-spacing: .1em; }
.err h1 { font-size: 2rem; margin: 0 0 10px; }
.err .big-search { margin: 24px 0; }
.err .topic-chips { margin-bottom: 24px; }
.bare { display: grid; place-items: center; min-height: 100vh; }

.foot { border-top: 1px solid var(--rule); background: var(--surface); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot-t { font-weight: 600; margin: 0 0 4px; }
.foot-s { color: var(--ink-2); margin: 0; font-size: .875rem; max-width: 56ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.foot nav a { color: var(--ink); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0ms !important; scroll-behavior: auto !important; }
  .card-a:hover .plinth img, .ring-card a:hover, a.tchip:hover { transform: none; }
}
@media print { .top, .foot, .stage, .help, .signal { display: none; } .note-card { transform: none; box-shadow: none; } }

/* Dar ekran ince ayarları */
@media (max-width: 640px) {
  .shelf-head { flex-wrap: wrap; gap: 4px 12px; }
  .shelf-head h2 { font-size: 1.1875rem; }
  .band-head h2 { font-size: 1.375rem; }
  .shelf-row { grid-auto-columns: minmax(150px, 46vw); gap: 14px; }
  .big-search button { padding: 0 16px; }
  .big-search input { padding-left: 44px; font-size: 1rem; }
  .big-search .i { left: 14px; }
}
@media (pointer: coarse) { .hint-key { display: none; } }
@media (max-width: 720px) {
  .book-wrap { height: max(360px, calc(100svh - 300px)); min-height: 0; }
}

/* İnceleme düzeltmeleri */
.brand-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 auto 8px; }
.brand-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; }
.brand-chips a:hover { border-color: var(--navy); }
.brand-chips span { font: .75rem var(--mono); color: var(--ink-2); }
.ring-sec { height: 170vh; }
.top-lib { display: none; }
@media (max-width: 900px) { .top-lib { display: inline-block; } }
@media (max-width: 720px) { .reader-page .top { position: static; } }
.book-wrap { isolation: isolate; }
.book-status { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 4; background: rgba(20,19,30,.88); padding: 8px 14px; border-radius: 10px; width: max-content; max-width: calc(100% - 32px); }
.book.is-ready ~ .book-status { display: none; }
.book .pdflip-error { display: none !important; }
.rotate-hint { display: none; }
@media (max-width: 720px) and (orientation: portrait) {
  .is-landscape .rotate-hint:not([hidden]) { display: flex; position: absolute; top: 8px; left: 50%; translate: -50% 0; z-index: 4; align-items: center; gap: 8px; margin: 0; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(20,19,30,.9); color: var(--stage-ink-2); font-size: .8125rem; width: max-content; max-width: calc(100% - 24px); }
  .rotate-hint button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; flex: none; }
  .is-landscape.book-wrap { height: max(300px, calc(62vw + 120px)); }
}
.strip-track a.is-shown img { opacity: 1; outline: 2px solid color-mix(in srgb, var(--ring-on-dark) 55%, transparent); outline-offset: 2px; }
.note-t { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.125rem); margin: 0 0 8px; }
.results-lead { margin: 0 0 14px; font-size: .9375rem; }
.count:focus { outline: none; }

/* --- Deneyim incelemesi düzeltmeleri --- */
/* Yüksek kontrast modunda gölge görünmez; saydam çerçeve orada görünür hale gelir. */
:focus-visible, .top-search input:focus, .big-search input:focus, .flow-btn:focus-visible, .flow-track:focus-visible, .strip-track a:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.skip { background: var(--navy-3); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.note-card, .page-head, .shelf, .detail) { --c: var(--cd) !important; } }
:root[data-theme="dark"] :is(.note-card, .page-head, .shelf, .detail) { --c: var(--cd) !important; }
.ring-card a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.brand-chips { position: relative; z-index: 2; margin-bottom: 28px; }
.ring { top: 44px; }
.ring-stage { height: 450px; }
@media (max-width: 900px) { html { scroll-padding-top: 150px; } }
@media (max-width: 720px) { .reader-page .top-search { display: none; } .reader-page { scroll-padding-top: 80px; } }
/* Not kartı: eğiklik yalnızca arka katmanda; yazı düz ve net kalır. */
.note-card { position: relative; isolation: isolate; transform: none; background: none; border: 0; box-shadow: none; }
.note-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--c, var(--navy)); border-radius: 6px; box-shadow: 0 20px 40px -30px rgba(22,20,43,.45); transform: rotate(-.6deg); transform-origin: 30% 0; }
.note-card { padding-top: 30px; }
@media (max-width: 960px) { .note-card::before { transform: none; } }
@media (prefers-reduced-motion: reduce) { .note-card::before { transform: none; } }
@media print { .note-card::before { transform: none; box-shadow: none; } }
body.sheet-open { overflow: hidden; }
.crumbs a { padding-block: 3px; }
.flat-only { display: none; }
:is(.ring-flat, .no-js) .flat-only { display: inline; }
:is(.ring-flat, .no-js) .ring-only { display: none; }
