/* sistemmakinaltd.com — efekt katmanı (site.css'ten sonra yüklenir).
   Bölümler: 1. Patlatılmış parça görünümü (ürün sayfası). 2. Sayfa geçişi ve imleç (bütün sayfalar). */

/* ==========================================================================
   1. Patlatılmış parça görünümü, 2. sürüm — sablon/patlatilmis.php, assets/js/patlak.js
      Makine birleşik başlar, sayfa indikçe parçalar ayrılır; tıklanan parçanın bilgisi yandaki panelde açılır.
      JS yokken: düz patlatılmış görsel + parça listesi.
   ========================================================================== */
.patlak { position: relative; padding: 3.5rem 0; color: #d8e6f2; background: radial-gradient(120% 90% at 85% 0%, #0f4a78 0%, rgba(15, 74, 120, 0) 55%), linear-gradient(180deg, #0a2540 0%, #071b30 100%); }
.patlak::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.patlak > .kap { position: relative; }
.patlak [hidden] { display: none !important; }
.patlak__bas { max-width: 760px; margin-bottom: 1.75rem; }
.patlak__baslik { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; }
.patlak__metin { color: #b9cbdb; margin: 0; }
.patlak__sahne { display: grid; gap: 1.25rem; }

/* ---- tuval ---- */
.patlak__tuval { position: relative; overflow: hidden; background: radial-gradient(80% 70% at 50% 62%, #fff 0%, #fff 55%, #eef3f7 100%); border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08); }
.patlak__kat { position: relative; width: 100%; }
.patlak__gorsel { display: block; width: 100%; height: auto; }
.patlak--parcali .patlak__gorsel { visibility: hidden; }             /* yerini parça katmanı alır; boyutu korur */
.patlak__parcalar { position: absolute; inset: 0; }
.patlak__parca-gorsel { position: absolute; max-width: none; will-change: transform, opacity; transform-origin: 50% 50%; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 10px 14px rgba(10, 37, 64, .16)); transition: filter .3s; }
.patlak__parca-gorsel--govde { filter: drop-shadow(0 26px 30px rgba(10, 37, 64, .2)); }
.patlak__parca-gorsel--tiklanir { cursor: pointer; }
.patlak--ayrik .patlak__parca-gorsel--tiklanir:hover { filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)) drop-shadow(0 12px 18px rgba(0, 111, 168, .45)) brightness(1.06); }
.patlak__parca-gorsel.etkin { filter: drop-shadow(0 0 10px rgba(226, 87, 15, .75)) drop-shadow(0 14px 20px rgba(10, 37, 64, .3)); }
.patlak__parca-gorsel.soluk { filter: grayscale(.35) opacity(.5); }

/* ---- numaralı noktalar: parçalar ayrılınca belirir ---- */
.patlak__noktalar { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; z-index: 200; }
.patlak__noktalar > li { position: absolute; width: 0; height: 0; }
.patlak__nokta {
  position: absolute; left: 0; top: 0; translate: -50% -50%; width: 30px; height: 30px; padding: 0; border-radius: 50%; pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font: 700 .78rem/1 var(--yazi); color: #fff; background: var(--marka-koyu);
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(10, 37, 64, .35); transition: background-color .2s, box-shadow .2s, opacity .35s, scale .35s;
}
.patlak__nokta::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }   /* dokunma alanı 48px */
.patlak__nokta::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--marka); opacity: 0; }
.patlak__nokta:hover, .patlak__nokta:focus-visible, .patlak__nokta.etkin { background: #e2570f; color: #fff; box-shadow: 0 0 0 6px rgba(226, 87, 15, .22), 0 6px 16px rgba(10, 37, 64, .4); }
.patlak--parcali:not(.patlak--ayrik) .patlak__nokta { opacity: 0; scale: .2; pointer-events: none; }
.patlak--parcali:not(.patlak--ayrik) .patlak__nokta:focus-visible { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: no-preference) {
  .patlak--ayrik .patlak__nokta::after, .patlak:not(.patlak--parcali) .patlak__nokta::after { animation: patlak-sonar 2.4s ease-out infinite; }
  .patlak__noktalar > li:nth-child(3n+1) .patlak__nokta { transition-delay: .08s; }
  .patlak__noktalar > li:nth-child(3n+2) .patlak__nokta { transition-delay: .16s; }
  .patlak__noktalar > li:nth-child(3n+1) .patlak__nokta::after { animation-delay: .5s; }
  .patlak__noktalar > li:nth-child(3n+2) .patlak__nokta::after { animation-delay: 1.1s; }
}
@keyframes patlak-sonar { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.3); opacity: 0; } }
@media (max-width: 639px) { .patlak__nokta { width: 22px; height: 22px; font-size: .62rem; border-width: 1.5px; } .patlak__nokta::before { inset: -11px; } }

.patlak__ipucu { display: none; position: absolute; left: 50%; bottom: 14px; translate: -50% 0; margin: 0; padding: .45rem .95rem; border-radius: 999px; white-space: nowrap;
  font-size: .8rem; font-weight: 700; color: #fff; background: rgba(10, 37, 64, .82); align-items: center; gap: .5rem; pointer-events: none; transition: opacity .4s; z-index: 210; }
.patlak__ipucu span { width: 8px; height: 8px; border-radius: 50%; background: #7fd2f7; }
.patlak--parcali .patlak__ipucu { display: inline-flex; opacity: calc(1 - var(--patlak-ilerleme, 0) * 2.2); }

/* ---- bilgi paneli ---- */
.patlak__panel { position: relative; border-radius: 22px; padding: 1.5rem; min-height: 220px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.patlak__bos { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.patlak__bos-no { margin: 0; font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgba(127, 210, 247, .6); }
.patlak__bos-baslik { margin: .2rem 0 1rem; font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.patlak__bos p:last-child { margin: 0; color: #b9cbdb; max-width: 34ch; }
.patlak__kart-no { margin: 0 0 1rem; display: flex; align-items: baseline; gap: .4rem; color: #8fb3cf; font-weight: 700; font-variant-numeric: tabular-nums; }
.patlak__kart-no b { font-size: 3rem; line-height: 1; letter-spacing: -.04em; color: #e2570f; }
.patlak__kart-gorsel { width: 100%; max-width: 240px; aspect-ratio: 1 / 1; border-radius: 16px; background: #fff; padding: 12px; margin-bottom: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.patlak__kart-gorsel img { width: 100%; height: 100%; object-fit: contain; }
.patlak__kart-kat { margin: 0 0 .3rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7fd2f7; }
.patlak__kart-ad { margin: 0 0 .5rem; color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.patlak__kart-ad:focus { outline: none; }
.patlak__kart-not { margin: 0 0 1.1rem; color: #c4d6e5; }
.patlak__kart-dugme { margin: 0 0 1.25rem; }
.patlak__gezin { display: flex; align-items: center; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.patlak__gezin button { min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 999px; cursor: pointer; font: 700 1rem/1 var(--yazi); color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); transition: background-color .2s, border-color .2s; }
.patlak__gezin button:hover { background: var(--marka-koyu); border-color: var(--marka-koyu); }
.patlak__kapat { margin-left: auto; font-size: .875rem !important; }
@media (prefers-reduced-motion: no-preference) {
  .patlak__kart--gir > * { animation: patlak-gir .5s cubic-bezier(.2, .7, .2, 1) both; }
  .patlak__kart--gir > :nth-child(2) { animation-delay: .04s; }
  .patlak__kart--gir > :nth-child(3) { animation-delay: .08s; }
  .patlak__kart--gir > :nth-child(4) { animation-delay: .12s; }
  .patlak__kart--gir > :nth-child(5) { animation-delay: .16s; }
  .patlak__kart--gir > :nth-child(6) { animation-delay: .2s; }
  .patlak__kart--gir > :nth-child(7) { animation-delay: .24s; }
}
@keyframes patlak-gir { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

/* ---- JS'siz yedek: parça listesi ---- */
.patlak__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.patlak__parca { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; padding: .8rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.patlak__no { font-weight: 800; font-size: 1.05rem; color: #6fc7f3; font-variant-numeric: tabular-nums; min-width: 1.9em; }
.patlak__kat-ad { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8fb3cf; }
.patlak__ad { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; color: #fff; letter-spacing: 0; }
.patlak__ad a { color: #fff; }
.patlak__not { margin: .2rem 0 0; font-size: .875rem; line-height: 1.4; color: #b9cbdb; }

@media (min-width: 1024px) {
  .patlak { padding: 5.5rem 0; }
  .patlak__sahne { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 2rem; align-items: start; }
  .patlak__panel { position: sticky; top: 110px; padding: 2rem; min-height: 420px; }
  .patlak:not(.patlak--canli) .patlak__liste { max-height: 70vh; overflow-y: auto; }
}
@media print { .patlak { background: #fff; color: #000; } .patlak__ipucu, .patlak__gezin { display: none; } }

/* ==========================================================================
   2. Sayfa geçişi ve imleç — assets/js/hareket.js
   ========================================================================== */
/* Sayfa açılışı: lacivert perde yukarı çekilir (salt CSS; JS ya da GSAP olmasa da kendiliğinden biter). */
@media (prefers-reduced-motion: no-preference) {
  .js body::before { content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none; transform-origin: 50% 0;
    background: linear-gradient(160deg, #0a2540 0%, #0b3b63 60%, #006fa8 100%); animation: gecis-ac .75s cubic-bezier(.7, 0, .2, 1) .05s both; }
  .js body::after { content: ""; position: fixed; inset: 0; z-index: 901; pointer-events: none; transform: scaleY(0); transform-origin: 50% 100%;
    background: linear-gradient(160deg, #0a2540 0%, #0b3b63 60%, #006fa8 100%); transition: transform .42s cubic-bezier(.7, 0, .2, 1); }
  .js.gecis-kapat body::after { transform: scaleY(1); }
}
@keyframes gecis-ac { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* İmleç halkası (yalnız fareli cihaz; hareket.js ekler). */
.imlec { position: fixed; left: 0; top: 0; z-index: 950; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(0, 147, 216, .75); background: rgba(0, 147, 216, 0); opacity: 0; transition: width .25s, height .25s, margin .25s, background-color .25s, border-color .25s, opacity .3s; mix-blend-mode: normal; }
.imlec--var { opacity: 1; }
.imlec--bag { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(0, 147, 216, .14); border-color: rgba(0, 147, 216, .35); }
.imlec--bas { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: rgba(0, 147, 216, .3); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
