/* Dijital katalog görüntüleyici: tüm tasarımlarda aynı, nötr koyu sahne */
html.cv-open { overflow: hidden; }
.cv {
    position: fixed; inset: 0; z-index: 400;
    display: grid; grid-template-rows: auto 1fr;
    background: #121312; color: #ecebe6;
    font: 500 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    opacity: 0; transition: opacity .25s ease;
}
.cv.is-in { opacity: 1; }
.cv-bar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid rgba(236, 235, 230, .14); }
.cv-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cv-count { color: #aaa9a2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv-actions { margin-left: auto; display: flex; gap: 8px; }
.cv-btn {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    background: none; color: #ecebe6; border: 1px solid rgba(236, 235, 230, .28); border-radius: 4px;
    font: inherit; text-decoration: none; cursor: pointer;
}
.cv-btn:hover { border-color: #ecebe6; }
.cv-btn:focus-visible, .cv-nav:focus-visible { outline: 2px solid #f0a640; outline-offset: 2px; }
@media (max-width: 600px) {
    .cv-bar { flex-wrap: wrap; gap: 6px 12px; }
    .cv-title { flex: 1 1 100%; }
    .cv-full { display: none; }
}

.cv-stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.cv-book { position: relative; display: flex; perspective: 2600px; cursor: pointer; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.cv-page { position: relative; flex: 1; height: 100%; background: #fff; overflow: hidden; }
.cv-page.is-empty { background: transparent; }
.cv-book:not(.is-single) .cv-left:not(.is-empty)::after {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 40px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .18)); pointer-events: none;
}
.cv-book:not(.is-single) .cv-right:not(.is-empty)::after {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 40px;
    background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .18)); pointer-events: none;
}
.cv-page canvas, .cv-face canvas { display: block; width: 100%; height: 100%; }
.cv-book:has(.cv-left.is-empty) { box-shadow: none; }
.cv-book:has(.cv-left.is-empty) .cv-right { box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }

/* Sayfa çevirme yaprağı */
.cv-leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; z-index: 3; pointer-events: none; }
.cv-leaf--next { left: 50%; transform-origin: left center; animation: cv-flip-next .85s cubic-bezier(.45, .05, .25, 1) forwards; }
.cv-leaf--prev { left: 0; transform-origin: right center; animation: cv-flip-prev .85s cubic-bezier(.45, .05, .25, 1) forwards; }
.cv-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; }
.cv-face.is-empty { background: transparent; }
.cv-back { transform: rotateY(180deg); }
.cv-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 60%); opacity: 0; animation: cv-shade .85s ease forwards; }
@keyframes cv-flip-next { to { transform: rotateY(-180deg); } }
@keyframes cv-flip-prev { to { transform: rotateY(180deg); } }
@keyframes cv-shade { 50% { opacity: 1; } to { opacity: 0; } }

/* Tek sayfa düzeninde kayarak geçiş */
.cv-in-next { animation: cv-slide-next .35s ease both; }
.cv-in-prev { animation: cv-slide-prev .35s ease both; }
@keyframes cv-slide-next { from { transform: translateX(14%); opacity: 0; } }
@keyframes cv-slide-prev { from { transform: translateX(-14%); opacity: 0; } }

.cv-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(18, 19, 18, .7); color: #ecebe6; border: 1px solid rgba(236, 235, 230, .3);
    font-size: 28px; line-height: 1; cursor: pointer;
}
.cv-nav:hover:not(:disabled) { border-color: #ecebe6; }
.cv-nav:disabled { opacity: .25; cursor: default; }
.cv-prev { left: 16px; }
.cv-next { right: 16px; }
@media (max-width: 700px) { .cv-nav { width: 44px; height: 44px; top: auto; bottom: 12px; transform: none; } }
.cv-status { position: absolute; inset: auto 0 50% 0; text-align: center; color: #aaa9a2; margin: 0; }
.cv-status a { color: #f0a640; }
@media (prefers-reduced-motion: reduce) {
    .cv, .cv-leaf, .cv-in-next, .cv-in-prev { transition: none; animation: none; }
}
