/* Genel Muhasebe El Kitabı — sayfa çevirmeli okuyucu */
:root { --ok-ust: 56px; --ok-zemin: #1d2a36; --ok-zemin2: #121b24; --ok-altin: #c9973a; --ok-yazi: #e8eef3; }
html, body { margin: 0; height: 100%; background: radial-gradient(120% 90% at 50% 10%, #2a3a4a 0%, var(--ok-zemin) 45%, var(--ok-zemin2) 100%); color: var(--ok-yazi); font-family: "Kitap Sans", "Noto Sans", "Segoe UI", Arial, sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

.ok-ust { position: fixed; inset: 0 0 auto 0; height: var(--ok-ust); display: flex; align-items: center; gap: 12px; padding: 0 16px; background: rgba(10,18,26,.72); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,.08); z-index: 30; box-sizing: border-box; }
.ok-ust .geri { color: #b7c7d6; text-decoration: none; font-size: 13px; white-space: nowrap; }
.ok-ust .baslik { font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-ust .baslik span { color: var(--ok-altin); font-weight: 400; margin-left: 6px; }
.ok-ust .bosluk { flex: 1; }
.ok-ust .dugme { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 7px 11px; cursor: pointer; font-size: 13px; text-decoration: none; color: var(--ok-yazi); white-space: nowrap; }
.ok-ust .dugme:hover { background: rgba(255,255,255,.14); }
.ok-ust .dugme.altin { background: var(--ok-altin); border-color: var(--ok-altin); color: #1b1407; font-weight: 700; }
.ok-ust svg { width: 16px; height: 16px; }

.sahne { position: fixed; top: var(--ok-ust); bottom: 54px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; perspective: 2600px; user-select: none; }
.kitap { position: absolute; left: 50%; top: 50%; transform-origin: center center; }
.yaprak-yuva { position: absolute; top: 0; width: 170mm; height: 240mm; background: #fff; overflow: hidden; }
.yaprak-yuva.sol { left: 0; box-shadow: inset -18px 0 28px -22px rgba(0,0,0,.45); }
.yaprak-yuva.sag { left: 170mm; box-shadow: inset 18px 0 28px -22px rgba(0,0,0,.45); }
.tek-sayfa .yaprak-yuva.sag { left: 0; box-shadow: none; }
.yaprak-yuva.bos { background: transparent; box-shadow: none; }
.kitap::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(170mm - 1px); width: 2px; background: rgba(0,0,0,.18); pointer-events: none; }
.tek-sayfa .kitap::after, .kitap.kapakta::after { display: none; }
.kitap-golge { position: absolute; inset: 0; box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 8px 18px rgba(0,0,0,.35); pointer-events: none; }
.yaprak-yuva .sayfa { position: absolute; inset: 0; }

/* çevrilen yaprak */
.cevrilen { position: absolute; top: 0; width: 170mm; height: 240mm; transform-style: preserve-3d; z-index: 5; }
.cevrilen.ileri { left: 170mm; transform-origin: left center; }
.cevrilen.geri { left: 0; transform-origin: right center; }
.cevrilen .yuz { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; }
.cevrilen .arka { transform: rotateY(180deg); }
.cevrilen .golge { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.0), rgba(0,0,0,.22)); opacity: 0; }
.tek-sayfa .cevrilen.ileri, .tek-sayfa .cevrilen.geri { left: 0; transform-origin: left center; }

.ok-alt { position: fixed; inset: auto 0 0 0; height: 54px; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(10,18,26,.6); border-top: 1px solid rgba(255,255,255,.06); z-index: 30; }
.ok-alt button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ok-alt button:hover { background: rgba(255,255,255,.14); }
.ok-alt button:disabled { opacity: .3; cursor: default; }
.ok-alt input[type=range] { width: min(46vw, 420px); accent-color: var(--ok-altin); }
.ok-alt .no { font-size: 13px; min-width: 84px; text-align: center; color: #c9d6e2; font-variant-numeric: tabular-nums; }

/* içindekiler paneli */
.panel { position: fixed; top: var(--ok-ust); bottom: 0; left: 0; width: min(380px, 92vw); background: #0f1821; border-right: 1px solid rgba(255,255,255,.08); transform: translateX(-102%); transition: transform .25s ease; z-index: 40; overflow-y: auto; padding: 14px 12px 40px; box-sizing: border-box; }
.panel.acik { transform: none; }
.panel h3 { margin: 4px 8px 12px; font-size: 13px; letter-spacing: .14em; color: var(--ok-altin); }
.panel a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 6px; color: #d4dee8; text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.panel a:hover { background: rgba(255,255,255,.07); }
.panel a.b1 { margin-top: 10px; font-weight: 700; color: #fff; }
.panel a.b2 { padding-left: 22px; color: #aebfcf; font-size: 13px; }
.panel a .n { margin-left: auto; color: #7f93a6; font-variant-numeric: tabular-nums; }
.perde { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; display: none; }
.perde.acik { display: block; }

.ipucu { position: fixed; bottom: 66px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: #c9d6e2; background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 20px; z-index: 31; transition: opacity .6s; pointer-events: none; }
.yukleniyor { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #b7c7d6; z-index: 50; background: var(--ok-zemin2); }

@media (max-width: 640px) {
  .ok-ust .geri span, .ok-ust .dugme .yazi { display: none; }
  .ok-ust .baslik span { display: none; }
  .ok-alt input[type=range] { width: 38vw; }
}
@media print { body { display: none; } }
/* kitap sayfaları okuyucunun açık renkli yazı rengini devralmasın */
.yaprak-yuva .sayfa, .cevrilen .sayfa { color: #1c2429; text-align: left; }
