/* E-katalog goruntuleyicisi (eraytarim.com). Bagimsiz: eski vendor flipbook/turn.js dosyalarina ihtiyac duymaz. */
:root {
	--kt-lacivert: #2e375f;
	--kt-koyu: #1a1f35;
	--kt-yesil: #2e7d32;
	--kt-gri: #5b6275;
	--kt-acik: #f3f5f9;
	--kv-yukari: 300px; /* kitap disindaki yukseklik payi (ust bar + baslik + arac cubugu) */
	--kv-sure: .9s;
	--kv-ease: cubic-bezier(.45, .05, .25, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.kt-sayfa {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	font: 15px/1.55 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #333; background: var(--kt-acik);
}
a { color: var(--kt-lacivert); }

/* ---- sayfa cercevesi */
.kt-ust { background: #fff; border-bottom: 1px solid #e1e5ee; }
.kt-ust-ic { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kt-logo { display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.kt-logo img { display: block; height: 44px; width: auto; }
.kt-menu { display: flex; align-items: center; gap: 8px; }
.kt-menu a { padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-decoration: none; color: var(--kt-lacivert); }
.kt-menu a:hover, .kt-menu a:focus-visible { background: var(--kt-acik); }
.kt-menu a.kt-dil { border: 1px solid #cfd4e2; }
.kt-ana { flex: 1 0 auto; width: 100%; }
.kt-baslik { max-width: 1280px; margin: 0 auto; padding: 22px 16px 4px; }
.kt-baslik h1 { margin: 0; font-size: 26px; line-height: 1.2; color: var(--kt-lacivert); letter-spacing: .02em; }
.kt-baslik p { margin: 4px 0 0; color: var(--kt-gri); }
.kt-mesaj { max-width: 640px; margin: 36px auto; padding: 28px 24px; text-align: center; background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.kt-mesaj strong { display: block; margin-bottom: 6px; font-size: 18px; color: var(--kt-lacivert); }
.kt-mesaj span { color: var(--kt-gri); }
.kt-alt { background: var(--kt-koyu); color: #b6bccf; font-size: 13px; }
.kt-alt-ic { max-width: 1280px; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.kt-alt a { color: #fff; text-decoration: none; }

/* ---- goruntuleyici kabugu */
.kv { max-width: 1280px; margin: 0 auto; padding: 14px 16px 30px; }
.kv:fullscreen { max-width: none; background: #10131f; padding: 10px 16px; overflow: auto; --kv-yukari: 120px; }
.kv:-webkit-full-screen { max-width: none; background: #10131f; padding: 10px 16px; overflow: auto; --kv-yukari: 120px; }
.kv:fullscreen .kv-durum, .kv:fullscreen .kv-ipucu { color: #c5cbe0; }
.kv:-webkit-full-screen .kv-durum, .kv:-webkit-full-screen .kv-ipucu { color: #c5cbe0; }

/* JS'siz / dar ekran: duz sayfa listesi */
.kv-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.kv-oge a { display: block; overflow: hidden; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.kv-oge img { display: block; width: 100%; height: auto; }
.kv-liste-ipucu { margin: 12px 0 0; text-align: center; color: var(--kt-gri); font-size: 13px; }
@media (min-width: 640px) {
	.kv-liste { grid-template-columns: repeat(2, 1fr); }
	.kv-oge[data-yayilim="1"] { grid-column: 1 / -1; }
}

/* kitap modu (JS acar) */
.kv-sahne, .kv-arac, .kv-ipucu { display: none; }
.kv-mod-kitap .kv-sahne { display: block; }
.kv-mod-kitap .kv-arac { display: flex; }
.kv-mod-kitap .kv-ipucu { display: block; }
.kv-mod-kitap .kv-liste, .kv-mod-kitap .kv-liste-ipucu { display: none; }

.kv-sahne {
	position: relative; padding: 30px 0 38px; overflow: hidden; border-radius: 14px;
	perspective: 3200px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
	background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #e9edf5 60%, #dde3ef 100%);
	box-shadow: inset 0 0 0 1px rgba(46, 55, 95, .08);
}
.kv:fullscreen .kv-sahne { background: radial-gradient(ellipse at 50% 35%, #2a3050 0%, #171b2e 70%); }
.kv:-webkit-full-screen .kv-sahne { background: radial-gradient(ellipse at 50% 35%, #2a3050 0%, #171b2e 70%); }

.kv-kitap {
	position: relative; margin: 0 auto;
	width: min(94%, max(520px, calc((100vh - var(--kv-yukari)) * 1.414)));
	aspect-ratio: 1.414 / 1;
	transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
}
.kv-anim .kv-kitap { transition: transform var(--kv-sure) var(--kv-ease); }

.kv-yaprak {
	position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
	transform-origin: 0 50%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
}
.kv-anim .kv-yaprak { transition: transform var(--kv-sure) var(--kv-ease); }
.kv-yaprak.kv-cevrili { transform: rotateY(-180deg); }

.kv-yuz {
	position: absolute; inset: 0; overflow: hidden; background: #fff;
	backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
/* sayfa yigininin golgesi: yaprak basina degil, sol/sag yarim icin tek eleman */
.kv-gol { position: absolute; top: 0; width: 50%; height: 100%; z-index: 0; pointer-events: none; opacity: 1; transition: opacity .5s; box-shadow: 0 10px 28px rgba(20, 28, 60, .32), 0 1px 4px rgba(20, 28, 60, .25); }
.kv-gol-sol { left: 0; }
.kv-gol-sag { left: 50%; }
.kv-gol.kv-yok { opacity: 0; }
.kv-yuz-geri { transform: rotateY(180deg); }
.kv-yuz-on { cursor: pointer; }
.kv-yuz-geri { cursor: pointer; }
/* cilt golgesi ve sayfa kenari */
.kv-yuz::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.kv-yuz-on::after { background: linear-gradient(to right, rgba(20, 28, 60, .22) 0, rgba(20, 28, 60, .06) 3%, rgba(20, 28, 60, 0) 9%), linear-gradient(to left, rgba(20, 28, 60, .07) 0, rgba(20, 28, 60, 0) 2%); }
.kv-yuz-geri::after { background: linear-gradient(to left, rgba(20, 28, 60, .22) 0, rgba(20, 28, 60, .06) 3%, rgba(20, 28, 60, 0) 9%), linear-gradient(to right, rgba(20, 28, 60, .07) 0, rgba(20, 28, 60, 0) 2%); }

/* sayfa icerigi: yatay gorsel iki sayfaya bolunur (sol/sag yarim) */
.kv-sf { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.kv-sf img {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center;
	opacity: 0; transition: opacity .35s; -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.kv-sf.kv-sol img { width: 200%; left: 0; }
.kv-sf.kv-sag img { width: 200%; left: -100%; }
.kv-sf img.kv-y { opacity: 1; }
.kv-sf.kv-bekle::before {
	content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
	border: 3px solid #d6dbe8; border-top-color: var(--kt-lacivert); border-radius: 50%; animation: kv-don .8s linear infinite;
}
@keyframes kv-don { to { transform: rotate(360deg); } }

/* ---- arac cubugu */
.kv-arac { align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kv-btn {
	appearance: none; -webkit-appearance: none; border: 0; padding: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--kt-lacivert);
	transition: background .2s, opacity .2s, transform .15s;
}
.kv-btn:hover:not(:disabled) { background: #3d4a86; }
.kv-btn:active:not(:disabled) { transform: scale(.94); }
.kv-btn:disabled { opacity: .35; cursor: default; }
.kv-btn:focus-visible, .kv-yuz:focus-visible, .kv-izg-kart:focus-visible { outline: 3px solid #6c9bff; outline-offset: 2px; }
.kv-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kv-btn-ikincil { background: #fff; color: var(--kt-lacivert); box-shadow: inset 0 0 0 1px #cbd1e1; }
.kv-btn-ikincil:hover:not(:disabled) { background: #eef1f8; }
.kv-durum { min-width: 150px; padding: 0 8px; text-align: center; font-weight: 600; color: var(--kt-lacivert); }
.kv-ayrac { width: 1px; height: 28px; margin: 0 6px; background: #c9cfde; }
.kv-ipucu { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--kt-gri); }

/* ---- kaplama: buyutec ve tum sayfalar */
.kv-ort {
	position: fixed; inset: 0; z-index: 99999; display: none; flex-direction: column; color: #fff;
	background: rgba(10, 13, 26, .94);
}
.kv-ort.kv-acik { display: flex; }
.kv-ort-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.kv-ort-baslik { font-weight: 600; }
.kv-ort-araclar { display: flex; gap: 8px; }
.kv-ort .kv-btn { background: rgba(255, 255, 255, .14); }
.kv-ort .kv-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .28); }
.kv-ort-govde { position: relative; flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 6px 12px 16px; -webkit-overflow-scrolling: touch; }
.kv-ort-govde img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 4px; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.kv-ort-yakin .kv-ort-govde { display: block; padding: 0; }
.kv-ort-yakin .kv-ort-govde img { max-width: none; max-height: none; width: min(220%, 2000px); border-radius: 0; cursor: grab; }
.kv-izgara { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding: 8px 16px 24px; align-content: start; }
.kv-izg-kart { appearance: none; -webkit-appearance: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; text-align: center; color: #fff; background: rgba(255, 255, 255, .08); font: inherit; }
.kv-izg-kart:hover { background: rgba(255, 255, 255, .18); }
.kv-izg-kart[aria-current="true"] { box-shadow: 0 0 0 2px #6c9bff; }
.kv-izg-kart img { display: block; width: 100%; height: 130px; object-fit: contain; background: #fff; border-radius: 3px; margin-bottom: 6px; }
.kv-izg-kart span { font-size: 13px; }

@media (max-width: 899px) { :root { --kv-yukari: 260px; } .kt-baslik h1 { font-size: 22px; } }
@media (max-width: 639px) {
	.kt-logo img { height: 38px; }
	.kv-ort-yakin .kv-ort-govde img { width: min(320%, 1600px); }
}
@media (prefers-reduced-motion: reduce) {
	.kv-anim .kv-kitap, .kv-anim .kv-yaprak { transition-duration: .01s !important; transition-delay: 0s !important; }
	.kv-sf img { transition: none; }
}
