/* Etnospor flipbook defter — boldblack.co tasarım dili (renkler, yazı, etiket ve düğmeler sitenin _tema/tema.css'inden).
   Kitap mekaniği (süzülme, kağıt, kapak düzeltmesi) Katalog-Gosterim/site/style.css'ten alındı. */
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/host-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/host-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --black: #090909; --ink: #1e1e1e; --ink-2: #29292b; --grey: #7f7f80; --white: #f9f9f9;
  --surface: #f5f4f3; --line: #f1f1f1; --orange: #ff462e;
  --gutter: 40px; --ease: cubic-bezier(.22, 1, .36, 1);
  --kayma: 0px;
}
* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #fff; color: var(--ink);
  font-family: "Host Grotesk", system-ui, sans-serif; font-weight: 500; font-size: 18px; line-height: 1.4; letter-spacing: -.1px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column; height: 100dvh; overflow: hidden;
}
h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Üst şerit ve başlık (sitedeki .topbar / .hd) */
.topbar { height: 4px; flex: none; background: var(--orange); }
.hd { flex: none; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px 0 var(--gutter); color: var(--black); }
.hd__logo { width: 131px; height: 40px; }
.hd__logo svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.pill, .btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 4px 20px 4px 4px; border-radius: 999px;
  background: var(--surface); color: var(--black); font-size: 17px; line-height: 20px; font-weight: 500; white-space: nowrap;
  box-shadow: inset 0 0 0 1px #0909090a; transition: background .3s var(--ease);
}
.pill__ikon, .btn__ikon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; transition: transform .45s var(--ease);
}
.pill__ikon svg { width: 18px; height: 18px; stroke-width: 2; }
.pill:hover .pill__ikon { transform: rotate(-45deg); }
.pill:hover, .btn:hover { background: #efedeb; }

/* Bölüm etiketi (sitedeki .sl): ince çizgi, ortada +, altında turuncu kare + ad | (BB® — 01) | sağ */
.sl { flex: none; padding: 0 var(--gutter); }
.sl__line { position: relative; height: 1px; background: var(--line); margin-bottom: 14px; }
.sl__line span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); padding: 0 8px; background: #fff; font-size: 14px; line-height: 1; color: var(--ink-2); }
.sl__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 18px; line-height: 26px; font-weight: 500; color: var(--ink-2); }
.sl__label { display: flex; align-items: center; gap: 13px; margin: 0; font-size: inherit; line-height: inherit; font-weight: 500; white-space: nowrap; }
.sl__ince { color: var(--grey); }
.sl__row .btn { justify-self: end; }
.sl__dot { width: 12px; height: 12px; border-radius: 2px; background: var(--orange); flex: none; }
.sl__sag { justify-self: end; color: var(--grey); }

.btn { flex: none; font-size: 17px; }
.btn__ikon svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.btn__ikon .oynat__dur { display: none; fill: none; stroke: currentColor; stroke-width: 2.6; }
.btn[aria-pressed="true"] .oynat__bas { display: none; }
.btn[aria-pressed="true"] .oynat__dur { display: block; }
.btn[aria-pressed="false"]:hover .btn__ikon { transform: scale(1.08); }

/* Sahne: açık gri yüzey (sitedeki iş kartları gibi), içinde süzülen defter */
.sahne {
  position: relative; flex: 1; min-height: 0; margin: 16px var(--gutter) 0; border-radius: 6px;
  background: radial-gradient(80% 70% at 50% 40%, #fbfaf9, var(--surface) 70%);
  overflow: clip; touch-action: manipulation;
}
.suzul, .egim, .kaydir, .kitap-yeri { position: absolute; inset: 0; }
.suzul { inset: 6% 6% 15%; animation: suzul 7s ease-in-out infinite; }
.kaydir { transform: translateX(var(--kayma)) scale(var(--olcek, 1)); transition: transform .8s cubic-bezier(.22, .8, .2, 1); }
body.kapak-buyuk .kitap-yeri { pointer-events: none; }
body.okuma .suzul, body.oynuyor .suzul { animation-play-state: paused; }
@keyframes suzul { 0%, 100% { transform: translate3d(0, -5px, 0); } 50% { transform: translate3d(0, 7px, 0); } }
.golge {
  position: absolute; left: 50%; bottom: 9%; width: 44%; height: 6%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(9, 9, 9, .22), transparent); filter: blur(14px);
  animation: golge 7s ease-in-out infinite;
}
@keyframes golge { 0%, 100% { transform: translateX(-50%) scale(.92); opacity: .75; } 50% { transform: translateX(-50%) scale(1.04); opacity: 1; } }

/* Sahnenin altındaki araç çubuğu */
.arac { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 6px 24px rgba(9, 9, 9, .06), inset 0 0 0 1px #0909090a; transition: opacity .3s; }
.yuvarlak { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--black); transition: background .25s; }
.yuvarlak:hover { background: var(--surface); }
.yuvarlak:disabled { opacity: .25; cursor: default; background: none; }
.yuvarlak svg { width: 18px; height: 18px; }
.sayac { min-width: 104px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
body.oynuyor .arac { opacity: .35; pointer-events: none; }

/* Alt bilgi */
.ft { flex: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--grey); }

/* ---------- Kitap ---------- */
.kitap-yeri > .kitap { position: absolute; inset: 0; }
.kitap-yeri .stf__parent { margin: 0 auto; }
.sayfa { background: #f6f3ec; overflow: hidden; user-select: none; }
.sayfa .kapak-gorsel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sayfa.ic-karton { background: #e9e3d6; }
.sayfa img.kare { position: absolute; width: 50.676%; height: auto; right: -2.027%; bottom: -1.4286%; pointer-events: none; -webkit-user-drag: none; }
.sayfa__no { position: absolute; top: 3.5%; font-size: clamp(7px, .8vw, 11px); color: rgba(40, 34, 28, .32); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.sayfa.--right .sayfa__no { right: 7%; }
.sayfa.--left .sayfa__no { left: 7%; }
/* kağıt hissi: gren + ışık + cilt yeri gölgesi */
.sayfa::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url("kagit.png"), var(--isik), var(--cilt); }
.sayfa.--left {
  --cilt: linear-gradient(to left, rgba(0,0,0,.30) 0%, rgba(0,0,0,.14) 1.2%, rgba(0,0,0,.05) 3%, rgba(255,255,255,.10) 5.5%, rgba(255,255,255,.04) 8%, rgba(0,0,0,.02) 12%, transparent 20%);
  --isik: radial-gradient(130% 100% at 15% 0%, rgba(255,255,255,.09), transparent 55%), linear-gradient(to bottom, transparent 75%, rgba(0,0,0,.03));
}
.sayfa.--right {
  --cilt: linear-gradient(to right, rgba(0,0,0,.24) 0%, rgba(0,0,0,.10) 1.2%, rgba(0,0,0,.035) 3%, rgba(255,255,255,.12) 5%, rgba(255,255,255,.05) 7.5%, rgba(0,0,0,.02) 11%, transparent 18%);
  --isik: radial-gradient(130% 100% at 40% 0%, rgba(255,255,255,.07), transparent 55%), linear-gradient(to bottom, transparent 70%, rgba(0,0,0,.04)), linear-gradient(to left, rgba(0,0,0,.025), transparent 12%);
}
.sayfa::before { content: ""; position: absolute; top: 0; bottom: 0; width: 5px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(to right, rgba(0,0,0,.10) 0 1px, rgba(255,255,255,0) 1px 2px); opacity: .7; }
.sayfa.--left::before { left: 0; }
.sayfa.--right::before { right: 0; }
.stf__item { box-shadow: 0 30px 50px -18px rgba(9, 9, 9, .28), 0 6px 12px -4px rgba(9, 9, 9, .12); }
.stf__item[style*="rotateY"] { box-shadow: none; }
.stf__hardShadow { visibility: hidden; }
.sayfa.sayfa--bos { background: none; box-shadow: none; }
.sayfa.sayfa--bos::before, .sayfa.sayfa--bos::after { content: none; }
.kitap.bos-acik .stf__outerShadow { visibility: hidden; }
.stf__item[data-kirp] { box-shadow: none; }

/* Flipbook çevirirken köşeye biraz yaklaş */
.kitap-yeri { transition: transform .9s cubic-bezier(.22, .8, .2, 1); transform-origin: var(--kose-x, 100%) var(--kose-y, 100%); }
body.yakin .kitap-yeri { transform: scale(var(--yakin, 1.3)); }
/* dönüp geçen sayfa: cilt yerinden (sol kenar) döner */
.ucan { position: absolute; z-index: 50; pointer-events: none; transform-origin: 0 50%; transform-style: preserve-3d;
  animation: ucan 300ms cubic-bezier(.45, .05, .7, .6) forwards; }
.ucan__on, .ucan__arka { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ucan__arka { transform: rotateY(180deg); background: #efebe2; }
.ucan__on::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to right, rgba(0,0,0,.18), rgba(0,0,0,0) 60%); opacity: 0; animation: ucan-golge 300ms ease-in forwards; }
@keyframes ucan { 0% { transform: perspective(6000px) rotateY(0deg); } 100% { transform: perspective(6000px) rotateY(-180deg); } }
@keyframes ucan-golge { to { opacity: 1; } }

/* Büyük ekran */
@media (min-width: 2000px) {
  :root { --gutter: 64px; }
  .hd, .sl, .arac, .ft { zoom: 1.35; }
}
/* Tablet */
@media (max-width: 1100px) {
  .sl__ince { display: none; }
  .suzul { inset: 5% 4% 16%; }
}
/* Telefon (sitede kenar boşluğu 16 px, etiket satırında orta numara yok) */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hd { height: 68px; padding: 0 16px; }
  .hd__logo { width: 100px; height: 30px; }
  .pill { font-size: 15px; padding-right: 14px; gap: 10px; }
  .pill__ikon { width: 36px; height: 36px; }
  .sl__line { margin-bottom: 16px; }
  .sl__row { grid-template-columns: 1fr auto; font-size: 15px; }
  .sl__num { display: none; }
  .btn { font-size: 15px; gap: 10px; padding-right: 14px; }
  .btn__ikon { width: 36px; height: 36px; }
  .sahne { margin-top: 16px; }
  .suzul { inset: 4% 2% 20%; }
  .arac { bottom: 12px; }
  .golge { display: none; } /* telefonda defter ortada küçük kalıyor, yer gölgesi çok aşağıda düşüyordu; sayfaların kendi gölgesi yeterli */
  .sayac { min-width: 84px; font-size: 13px; }
  .ft { font-size: 12px; }
  .ft__ipucu { display: none; }
}
@media (max-height: 760px) and (min-width: 641px) {
  .hd { height: 68px; }
  .sahne { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .suzul, .golge { animation: none; } }
