/* iq-katalog.css — /ipconiq-katalog sayfa cevrilen katalog (19 Kas 2026)
 * Sonsuz animasyon YOK; yalniz sayfa cevirirken calisan kisa gecisler. */

.ikat-bas { padding-bottom: 8px; }
.ikat-bas__satir { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.ikat-bas__satir > div { max-width: 720px; }
.ikat-bas .iq-h2 { margin-top: 6px; }
.ikat-bas .iq-eylem { margin: 0; }
.ikat-bolum { padding-top: 16px; }

/* JS yoksa: alt alta sayfalar */
.ikat-liste { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 20px; }
.ikat-liste img { display: block; width: 100%; height: auto; border: 1px solid var(--iq-cizgi); background: #fff; }
.ikat--hazir .ikat-liste { display: none; }

/* sahne */
.ikat { position: relative; }
.ikat-sahne { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 28px 0; background: #eef0f2; border: 1px solid var(--iq-cizgi); border-radius: 6px; overflow: hidden; }
.ikat-kitap { --pw: 400px; --ph: 566px; position: relative; display: flex; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2600px; transition: transform .45s ease; flex: none; }
.ikat--tek .ikat-kitap { width: var(--pw); }
.ikat-yuva { position: relative; width: var(--pw); height: var(--ph); background: #fff; box-shadow: 0 10px 30px rgba(12, 22, 34, .18); }
.ikat-yuva.bos { background: transparent; box-shadow: none; }
.ikat-yuva img, .ikat-yuz img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ikat-yuva img[data-i] { cursor: zoom-in; }
.ikat--cift .ikat-yuva--sol:not(.bos)::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 28px; background: linear-gradient(to left, rgba(0, 0, 0, .10), transparent); pointer-events: none; }
.ikat--cift .ikat-yuva--sag:not(.bos)::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 28px; background: linear-gradient(to right, rgba(0, 0, 0, .08), transparent); pointer-events: none; }
.ikat--tek .ikat-yuva--sol { display: none; }

/* kapak / arka kapak tek: kitabi ortala */
.ikat--cift .ikat-kitap.yalniz-sag { transform: translateX(calc(var(--pw) / -2)); }
.ikat--cift .ikat-kitap.yalniz-sol { transform: translateX(calc(var(--pw) / 2)); }

/* cevrilen yaprak */
.ikat-yaprak { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transition: transform .75s cubic-bezier(.45, .05, .25, 1); z-index: 3; pointer-events: none; }
.ikat-yaprak--sag { left: var(--pw); transform-origin: left center; }
.ikat-yaprak--sol { left: 0; transform-origin: right center; }
.ikat-yaprak--sag.donuyor { transform: rotateY(-180deg); }
.ikat-yaprak--sol.donuyor { transform: rotateY(180deg); }
.ikat-yuz { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; box-shadow: 0 10px 30px rgba(12, 22, 34, .2); }
.ikat-yuz--arka { transform: rotateY(180deg); }
.ikat-yuz.bos { background: transparent; box-shadow: none; }

/* tek sayfa kaydirma */
.ikat-yuva img.gir-sag { animation: ikatSag .32s ease-out 1; }
.ikat-yuva img.gir-sol { animation: ikatSol .32s ease-out 1; }
@keyframes ikatSag { from { opacity: .2; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes ikatSol { from { opacity: .2; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

/* oklar */
.ikat-ok { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--iq-cizgi-2); background: #fff; color: var(--iq-metin); display: grid; place-items: center; cursor: pointer; z-index: 4; transition: background .15s, opacity .15s; }
.ikat-ok:hover:not(:disabled) { background: var(--iq-dugme); color: #fff; border-color: var(--iq-dugme); }
.ikat-ok:disabled { opacity: .3; cursor: default; }
.ikat-ok svg, .ikat-buyut__d svg, .ikat-tam svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* alt arac cubugu */
.ikat-arac { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 14px; }
.ikat-no { font-family: var(--iq-mono); font-size: 13px; color: var(--iq-ikincil); min-width: 120px; text-align: center; }
.ikat-git { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--iq-cizgi-2); border-radius: 6px; background: #fff; color: var(--iq-metin); max-width: 100%; }
.ikat-tam { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--iq-cizgi-2); border-radius: 6px; background: #fff; color: var(--iq-metin); cursor: pointer; }
.ikat-tam:hover { border-color: var(--iq-dugme); }
.ikat-ipucu { text-align: center; font-size: 13px; color: var(--iq-soluk); margin: 8px 0 0; }

/* tam ekran */
.ikat:fullscreen { background: #e6e9ec; padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.ikat:fullscreen .ikat-sahne { border: 0; background: transparent; }
.ikat:fullscreen .ikat-ipucu { display: none; }

/* buyutme penceresi */
html.ikat-kilit { overflow: hidden; }
.ikat-buyut { position: fixed; inset: 0; z-index: 2147483000; /* WhatsApp / asistan dugmelerinin de ustunde */ background: rgba(12, 22, 34, .94); display: flex; flex-direction: column; }
.ikat-buyut[hidden] { display: none; }
.ikat-buyut__ust { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; }
.ikat-buyut__no { flex: 1; font-family: var(--iq-mono); font-size: 13px; color: rgba(255, 255, 255, .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ikat-buyut__d { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.ikat-buyut__d:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.ikat-buyut__d:disabled { opacity: .3; cursor: default; }
.ikat-buyut__kapat { margin-left: 6px; }
.ikat-buyut__alan { flex: 1; overflow: auto; padding: 0 16px 16px; text-align: center; -webkit-overflow-scrolling: touch; }
.ikat-buyut__alan img { display: inline-block; max-width: min(100%, 1100px); max-height: calc(100vh - 100px); width: auto; height: auto; background: #fff; cursor: zoom-in; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.ikat-buyut--tam .ikat-buyut__alan img { max-height: none; max-width: none; width: min(1500px, 200%); cursor: zoom-out; }
.ikat-buyut__ipucu { margin: 0; padding: 0 16px 10px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .55); }
.ikat-buyut--tam .ikat-buyut__ipucu { display: none; }

/* telefon */
@media (max-width: 519px) {
  .ikat-sahne { padding: 12px 0; background: transparent; border: 0; }
  .ikat-ok { position: absolute; bottom: -2px; width: 40px; height: 40px; }
  .ikat-sahne { padding-bottom: 60px; }
  .ikat-ok--geri { left: calc(50% - 64px); }
  .ikat-ok--ileri { right: calc(50% - 64px); }
  .ikat-buyut__alan { padding: 0 6px 10px; }
  .ikat-buyut--tam .ikat-buyut__alan img { width: 260%; }
}

@media (prefers-reduced-motion: reduce) {
  .ikat-kitap, .ikat-yaprak { transition: none; }
  .ikat-yuva img.gir-sag, .ikat-yuva img.gir-sol { animation: none; }
}
