/* Katalog görüntüleyici (catalog.html + js/catalog.js) — yalnızca görüntüleyici sayfasında, site.css'ten SONRA
   yüklenir. Canlıdaki sayfa çeviren katalog görüntüleyicinin karşılığı: bağımsız tam pencere sayfa (site üst/alt
   bilgisi yok), gri zemin, pencereye sığan kitap, altta yüzen koyu araç çubuğu, kenar okları, sol üstte proje
   listesine dönüş. Sayfa görselleri üreticide PDF'ten üretilir. JS yokken sayfalar alt alta listedir;
   js/catalog.js çalışınca (.is-enhanced) kitap görünümüne geçilir. Kitap ölçüsü --catalog-ratio değişkeninden
   gelir (betik data-ratio değerini CSSOM ile yazar; satır içi stil yok). Yazı tipleri ve wyg-turn animasyonu
   tema/site.css'tekilerdir. */
.catalog [hidden]{display:none!important}
body.page-catalog{min-height:100vh;margin:0;background-color:#cdd0d4;background-image:linear-gradient(118deg,rgba(255,255,255,.34) 0,rgba(255,255,255,.34) 24%,rgba(255,255,255,0) 24.1%),linear-gradient(242deg,rgba(255,255,255,.2) 0,rgba(255,255,255,.2) 31%,rgba(255,255,255,0) 31.1%),linear-gradient(200deg,rgba(0,0,0,.05) 0,rgba(0,0,0,.05) 46%,rgba(0,0,0,0) 46.1%),linear-gradient(160deg,#e2e4e7,#b7bbc1);background-attachment:fixed}
.catalog_top{margin:0;padding:12px 16px;display:flex;flex-wrap:wrap;gap:10px 14px}
.catalog_link{padding:6px 14px 6px 8px;border-radius:18px;display:inline-flex;align-items:center;gap:4px;background-color:rgba(255,255,255,.72);box-shadow:0 1px 4px rgba(0,0,0,.12);transition:background-color .2s;font-size:.8235294118rem;line-height:1.1764705882rem;font-family:RedHatDisplay-Medium;color:#33495a}
.catalog_link-download{padding-left:12px;gap:6px}
.catalog_link:hover,.catalog_link:focus-visible{background-color:#fff}
.catalog_icon{width:20px;height:20px;flex-shrink:0;display:block}
.catalog_link .catalog_icon{width:16px;height:16px}
.catalog_pages{max-width:1100px;margin:0 auto;padding:4px 16px 24px}
.catalog_page{margin-bottom:20px;position:relative}
.catalog_page img{margin:0 auto;display:block;box-shadow:0 6px 22px rgba(0,0,0,.22)}
.catalog_page-left img,.catalog_page-right img{max-width:50%}
.catalog_anchor{position:absolute;top:0;left:50%}
html.no-js .catalog_toolbar,html.no-js .catalog_hint,html.no-js .catalog_edge{display:none}

/* Tam pencere düzen (JS açıkken). Betik yüklenene kadar yalnızca ilk sayfa görünür; yüklenemezse de öyle kalır. */
html.js body.page-catalog{height:100vh;height:100dvh;overflow:hidden}
html.js .catalog_top{padding:0;position:fixed;top:10px;left:12px;z-index:8}
html.js .catalog_link-download{display:none}
html.js .catalog_viewer{position:fixed;top:0;right:0;bottom:0;left:0}
html.js .catalog_stage{padding:20px 68px 80px;position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;display:flex;justify-content:center;align-items:center;touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none;cursor:pointer}
html.js .catalog_stage.is-zoomed{touch-action:none;cursor:grab}
html.js .catalog_stage.is-panning{cursor:grabbing}
/* Dönen yaprak perspektifle sahnenin dışına taşar: çevirme sürerken (yakın değilken) kırpılmaz. */
html.js .catalog_stage.is-turning:not(.is-zoomed){overflow:visible}
html.js .catalog_book{width:min(100%,max(240px,calc((100vh - 100px) * var(--catalog-ratio,2))));width:min(100%,max(240px,calc((100dvh - 100px) * var(--catalog-ratio,2))));aspect-ratio:var(--catalog-ratio,2);position:relative;flex-shrink:0;transition:transform .2s ease}
html.js .catalog_stage.is-panning .catalog_book{transition:none}
/* Tek sayfa (kapak sağ yarıda, arka kapak sol yarıda) canlıdaki gibi ortalanır: yaprak çeyrek kitap kayar. */
html.js .catalog_sheet{position:absolute;top:0;right:0;bottom:0;left:0}
html.js .catalog_viewer.is-ready .catalog_sheet{transition:transform .7s cubic-bezier(.35,.05,.3,1)}
html.js .catalog_book.is-single-right .catalog_sheet{transform:translateX(-25%)}
html.js .catalog_book.is-single-left .catalog_sheet{transform:translateX(25%)}
html.js .catalog_pages{max-width:none;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0}
html.js .catalog_page{width:100%;height:100%;margin:0;position:absolute;top:0;left:0;display:none}
html.js .catalog_page-right{width:50%;left:50%}
html.js .catalog_page-left{width:50%}
html.js .catalog_page:first-child,html.js .catalog_page.is-current,html.js .catalog_page.is-moving{display:block}
html.js .is-enhanced .catalog_page:first-child:not(.is-current):not(.is-moving){display:none}
html.js .catalog_page img{width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none}
/* Yayılımın ortasındaki cilt gölgesi */
html.js .catalog_page-both::after{width:5%;background:linear-gradient(90deg,rgba(0,0,0,0),rgba(0,0,0,.09) 50%,rgba(0,0,0,0));content:'';position:absolute;top:0;bottom:0;left:47.5%;pointer-events:none}
html.js .catalog_pages.is-flipping .catalog_page{visibility:hidden}
/* Kaydırarak geçiş (tek sayfalı düzen ve dar ekran); hareket azaltma tercihinde yalnızca kısa bir solma */
html.js .catalog_page.is-anim{transition:transform .45s ease,opacity .45s ease}
html.js .catalog_page.is-enter-next{opacity:0;transform:translateX(70px)}
html.js .catalog_page.is-enter-prev{opacity:0;transform:translateX(-70px)}
html.js .catalog_page.is-leave-next{opacity:0;transform:translateX(-70px)}
html.js .catalog_page.is-leave-prev{opacity:0;transform:translateX(70px)}
/* Sayfa çevirme: alttaki iki yarım + sırt çizgisi etrafında dönen yaprak (ön yüz: eski sayfa, arka yüz: yeni sayfa) */
.catalog_flip{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;perspective:2600px;pointer-events:none}
.catalog_flip_half{width:50%;position:absolute;top:0;bottom:0;overflow:hidden}
.catalog_flip_half-left{left:0}
.catalog_flip_half-right{left:50%}
.catalog_flip_leaf{width:50%;position:absolute;top:0;bottom:0;z-index:2;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.35,.05,.3,1)}
.catalog_flip-next .catalog_flip_leaf{left:50%;transform-origin:left center}
.catalog_flip-prev .catalog_flip_leaf{left:0;transform-origin:right center}
.catalog_flip-next.is-turning .catalog_flip_leaf{transform:rotateY(-180deg)}
.catalog_flip-prev.is-turning .catalog_flip_leaf{transform:rotateY(180deg)}
.catalog_flip_face{background-color:#fff;position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.catalog_flip_face.is-empty{background-color:transparent}
.catalog_flip_face-back{transform:rotateY(180deg)}
.catalog_flip_face::after{background:linear-gradient(90deg,rgba(0,0,0,.28),rgba(0,0,0,0) 55%);content:'';position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .7s ease}
.catalog_flip-prev .catalog_flip_face-front::after,.catalog_flip-next .catalog_flip_face-back::after{background:linear-gradient(270deg,rgba(0,0,0,.28),rgba(0,0,0,0) 55%)}
.catalog_flip_face.is-empty::after{display:none}
.catalog_flip_face-back::after{opacity:1}
.catalog_flip.is-turning .catalog_flip_face-front::after{opacity:1}
.catalog_flip.is-turning .catalog_flip_face-back::after{opacity:0}
.catalog_flip_img{height:100%;max-width:none;position:absolute;top:0;left:0}
.catalog_flip_img-s{width:100%}
.catalog_flip_img-l{width:200%}
.catalog_flip_img-r{width:200%;left:-100%}
/* Kenar okları (süs; tıklamayı sahnenin sağ/sol yarısı alır) ve yükleniyor göstergesi. Kitap, alttaki araç çubuğu
   payı yüzünden pencerenin ortasından 30px yukarıdadır; oklar ve gösterge kitabın ortasına hizalanır. */
html.js .catalog_edge{width:44px;height:44px;border-radius:50%;background-color:rgba(44,49,57,.72);box-shadow:0 2px 8px rgba(0,0,0,.2);position:absolute;top:calc(50% - 30px);z-index:4;display:flex;justify-content:center;align-items:center;transform:translateY(-50%);pointer-events:none;color:#fff}
html.js .catalog_edge-prev{left:12px}
html.js .catalog_edge-next{right:12px}
html.js .catalog_edge.is-disabled{opacity:.3}
html.js .catalog_stage.is-zoomed .catalog_edge{display:none}
.catalog_stage.is-loading::after{width:34px;height:34px;margin:-17px 0 0 -17px;border:3px solid rgba(44,49,57,.25);border-top-color:#2c3139;border-radius:50%;content:'';position:absolute;top:calc(50% - 30px);left:50%;z-index:5;animation:wyg-turn .8s linear infinite}

/* Araç çubuğu: altta ortada yüzen koyu şerit */
.catalog_toolbar{max-width:calc(100% - 16px);padding:5px 10px;border-radius:10px;background-color:rgba(44,49,57,.86);box-shadow:0 4px 16px rgba(0,0,0,.28);position:absolute;bottom:14px;left:50%;z-index:7;display:flex;justify-content:center;align-items:center;gap:2px;transform:translateX(-50%);color:#fff}
.catalog_btn{width:38px;height:38px;border:0;border-radius:8px;padding:0;flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;background-color:transparent;transition:background-color .2s;color:#fff}
.catalog_btn:hover:not([disabled]),.catalog_btn[aria-expanded="true"],.catalog_btn[aria-pressed="true"]{background-color:rgba(255,255,255,.2)}
.catalog_btn[disabled]{opacity:.35;cursor:default}
.catalog_goto{margin:0 4px;display:inline-flex;align-items:center;gap:6px;font-size:.8823529412rem;line-height:1;font-family:RedHatDisplay-Medium;color:#fff}
.catalog_goto_input{width:66px;height:30px;border:1px solid rgba(255,255,255,.4);border-radius:5px;padding:0 4px;background-color:rgba(255,255,255,.1);font-size:.8823529412rem;font-family:RedHatDisplay-Medium;color:#fff;text-align:center}
.catalog_goto_input:focus{border-color:#fff;background-color:rgba(255,255,255,.2)}
.catalog_goto_total{white-space:nowrap}
.catalog_toolbar :focus-visible,.catalog_thumbs :focus-visible{outline-color:#fff}
/* Küçük resimler: araç çubuğunun üstünde açılan panel */
.catalog_thumbs{max-height:min(52vh,460px);border-radius:10px;padding:12px;background-color:rgba(34,40,48,.94);box-shadow:0 6px 24px rgba(0,0,0,.3);position:absolute;right:12px;bottom:74px;left:12px;z-index:6;overflow:auto}
.catalog_thumbs_list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.catalog_thumb{width:100%;height:100%;border:2px solid transparent;border-radius:6px;padding:5px;display:flex;justify-content:flex-end;align-items:center;flex-direction:column;gap:5px;background-color:#fff;font-size:.7647058824rem;line-height:1;font-family:RedHatDisplay-Medium;color:#33495a}
.catalog_thumb img{display:block}
.catalog_thumb-half img{max-width:50%}
.catalog_thumb:hover,.catalog_thumb[aria-current="true"]{border-color:#6fb3dd}
/* Dar ekran (telefon, dikey): kitap düzeninde tek sayfa. Sınıfı js/catalog.js koyar (.is-narrow); yayılım görseli
   iki kat genişlikte durur ve yarısı görünür (.is-half-right: sağ sayfa). Geçişler kaydırmadır, yaprak çevrilmez. */
html.js .catalog_viewer.is-narrow .catalog_book{width:min(100%,max(220px,calc((100vh - 124px) * var(--catalog-ratio-single,1))));width:min(100%,max(220px,calc((100dvh - 124px) * var(--catalog-ratio-single,1))));aspect-ratio:var(--catalog-ratio-single,1)}
html.js .catalog_viewer.is-narrow .catalog_pages{overflow:hidden}
html.js .catalog_viewer.is-narrow .catalog_page-left,html.js .catalog_viewer.is-narrow .catalog_page-right{width:100%;left:0}
html.js .catalog_viewer.is-narrow .catalog_page-both{width:200%;transition:left .3s ease}
html.js .catalog_viewer.is-narrow .catalog_page-both.is-half-right{left:-100%}
html.js .catalog_viewer.is-narrow .catalog_page-both.is-anim{transition:transform .45s ease,opacity .45s ease}
html.js .catalog_viewer.is-narrow .catalog_page-both::after{display:none}
@media screen and (max-width:767px){
  html.js .catalog_stage{padding:48px 8px 76px}
  html.js .catalog_edge{display:none}
  .catalog_stage.is-loading::after{top:calc(50% - 14px)}
  .catalog_page-left img,.catalog_page-right img{max-width:100%}
  .catalog_toolbar{padding:4px 6px;gap:0}
  .catalog_btn{width:34px;height:34px}
  .catalog_goto{margin:0 2px;gap:4px}
  .catalog_goto_input{width:54px}
  .catalog_thumbs{right:8px;bottom:66px;left:8px}
  .catalog_thumbs_list{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
}
@media screen and (max-width:479px){
  .catalog_btn-jump{display:none}
}
@media (prefers-reduced-motion:reduce){
  html.js .catalog_book,html.js .catalog_viewer.is-ready .catalog_sheet{transition:none}
  html.js .catalog_page.is-anim,html.js .catalog_viewer.is-narrow .catalog_page-both.is-anim{transition:opacity .18s linear}
  html.js .catalog_viewer.is-narrow .catalog_page-both{transition:none}
  html.js .catalog_page.is-enter-next,html.js .catalog_page.is-enter-prev,html.js .catalog_page.is-leave-next,html.js .catalog_page.is-leave-prev{transform:none}
  .catalog_stage.is-loading::after{animation:none}
}
