/* =========================================================
   Proje ayrıntısı — İşlerimiz'de data-project kartları açar (assets/js/project.js)
   Sisli oda zemini üstünde tam ekran sayfa: film (tıklayınca YouTube), başlık, açıklama,
   filmden kareler (büyütülebilir) ve sıradaki iş. Sayfa kendi içinde kayar (data-lenis-prevent).
   ========================================================= */

.psheet {
  --ps-ink: #1d1a2e; --ps-sub: #4a4460; --ps-soft: #6b6480; --ps-line: rgba(29, 26, 46, .12);
  --ps-ease: cubic-bezier(.22, 1, .36, 1);
  position: fixed; inset: 0; z-index: 85; overflow-y: auto; overscroll-behavior: contain;
  color: var(--ps-ink); opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(78% 66% at 50% 30%, #fcfcfc 0%, #f1f1f2 52%, #e2e2e5 84%, #d9d9de 100%);
}
.psheet[hidden] { display: none; }
.psheet.is-open { opacity: 1; }

.psheet__in {
  width: min(calc(100% - 2 * var(--gutter)), 1180px); margin: 0 auto;
  padding: clamp(84px, 11vh, 120px) 0 clamp(72px, 9vw, 120px);
  transform: translateY(40px); transition: transform .7s var(--ps-ease);
}
.psheet.is-open .psheet__in { transform: none; }

/* Kapat: üst bardaki cam hap tarifi */
.psheet__close {
  position: fixed; top: 18px; inset-inline-end: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding-inline: 20px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ps-ink);
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 1px #fff, 0 0 0 1px rgba(29, 26, 46, .08), 0 18px 40px -22px rgba(29, 26, 46, .45);
  transition: transform .4s var(--ps-ease);
}
.psheet__close:hover { transform: scale(1.04); }
.psheet__close b { position: relative; width: 20px; height: 20px; }
.psheet__close b::before, .psheet__close b::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9.25px; height: 1.5px; background: currentColor; }
.psheet__close b::before { transform: rotate(45deg); } .psheet__close b::after { transform: rotate(-45deg); }

/* ---------- Film ---------- */
.psheet__video {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: clamp(20px, 2.2vw, 32px); background: #0c0b0f;
  box-shadow: 0 0 0 1px rgba(29, 26, 46, .06), 0 50px 90px -50px rgba(29, 26, 46, .55);
}
.psheet__video img, .psheet__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.psheet__video::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 70% at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .38)); }
.psheet__video.is-playing::after { display: none; }
.psheet__play {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: #fff; font-size: 15px; font-weight: 500;
}
.psheet__play i {
  display: grid; place-items: center; width: clamp(72px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 20px 40px -18px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ps-ease), background-color .3s;
}
.psheet__play svg { width: 26%; height: 26%; margin-left: 6%; fill: currentColor; }
.psheet__play:hover i { transform: scale(1.08); background-color: rgba(255, 255, 255, .26); }

/* ---------- Başlık, künye, açıklama ---------- */
.psheet__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px;
  margin-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--ps-line);
}
.psheet__eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ps-soft); }
.psheet__title { margin: 0; font-size: clamp(40px, 5.4vw, 88px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.psheet__orig { margin: 14px 0 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; color: var(--ps-soft); }
html[dir="rtl"] .psheet__eyebrow { letter-spacing: 0; font-size: 15px; }
html[dir="rtl"] .psheet__title { letter-spacing: 0; line-height: 1.3; }
.psheet__yt {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 22px; border-radius: 999px; white-space: nowrap;
  background: var(--ps-ink); color: #fff; font-size: 15px; font-weight: 500; transition: transform .4s var(--ps-ease), background-color .3s;
}
.psheet__yt[hidden] { display: none; } /* YouTube'da olmayan iş (Drive) */
.psheet__yt:hover { transform: scale(1.03); background: #2d2842; }
.psheet__yt svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
html[dir="rtl"] .psheet__yt svg { transform: scaleX(-1); }

.psheet__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 32px 72px; margin-top: clamp(28px, 3.4vw, 44px); }
.psheet__desc { margin: 0; max-width: 58ch; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; letter-spacing: -.012em; font-weight: 500; color: var(--ps-sub); text-wrap: pretty; }
.psheet__meta { display: grid; gap: 14px; margin: 0; align-content: start; }
.psheet__meta div { display: grid; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--ps-line); }
.psheet__meta dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ps-soft); }
.psheet__meta dd { margin: 0; font-size: 16px; font-weight: 500; }
html[dir="rtl"] .psheet__meta dt { letter-spacing: 0; font-size: 13px; }

/* ---------- Filmden kareler: ilk kare büyük, kalanlar üçlü ızgara ---------- */
.psheet__gal { margin-top: clamp(56px, 7vw, 96px); }
.psheet__label { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ps-soft); }
.psheet__label span { margin-inline-start: 8px; opacity: .6; }
html[dir="rtl"] .psheet__label { letter-spacing: 0; font-size: 15px; }
.psheet__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.psheet__grid button {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: #1a1720; cursor: zoom-in;
  box-shadow: 0 0 0 1px rgba(29, 26, 46, .06);
}
.psheet__grid button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.psheet__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ps-ease); }
.psheet__grid button:hover img { transform: scale(1.04); }

/* ---------- Sıradaki iş ---------- */
.psheet__next {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  width: 100%; margin-top: clamp(64px, 8vw, 112px); padding: clamp(24px, 3vw, 36px) 0 0; border-top: 1px solid var(--ps-line);
  text-align: start; color: var(--ps-ink);
}
.psheet__next small { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ps-soft); }
html[dir="rtl"] .psheet__next small { letter-spacing: 0; font-size: 15px; }
.psheet__next strong { display: block; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
html[dir="rtl"] .psheet__next strong { letter-spacing: 0; line-height: 1.3; }
.psheet__next img { width: clamp(120px, 16vw, 220px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; transition: transform .6s var(--ps-ease); }
.psheet__next:hover img { transform: scale(1.04); }

/* ---------- Büyütülmüş kare ---------- */
.psheet__lb {
  position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; padding: clamp(56px, 8vh, 88px) clamp(12px, 5vw, 96px);
  background: rgba(12, 11, 15, .92); opacity: 0; transition: opacity .3s ease;
}
.psheet__lb[hidden] { display: none; }
.psheet__lb.is-open { opacity: 1; }
.psheet__lb img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.psheet__lb-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: background-color .3s; }
.psheet__lb-nav:hover { background: rgba(255, 255, 255, .2); }
.psheet__lb-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.psheet__lb-nav--prev { left: clamp(8px, 2vw, 28px); } .psheet__lb-nav--next { right: clamp(8px, 2vw, 28px); }
.psheet__lb-count { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 13px; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.psheet__lb-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); }
.psheet__lb-close::before, .psheet__lb-close::after { content: ""; position: absolute; left: 15px; right: 15px; top: 23.25px; height: 1.5px; background: currentColor; }
.psheet__lb-close::before { transform: rotate(45deg); } .psheet__lb-close::after { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .psheet__head, .psheet__body { grid-template-columns: 1fr; }
  .psheet__head { align-items: start; }
  .psheet__yt { justify-self: start; }
  .psheet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psheet__grid button:first-child { grid-row: auto; aspect-ratio: 16 / 9; }
  .psheet__close span { display: none; }
  .psheet__close { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .psheet, .psheet__in, .psheet__lb { transition: none; }
  .psheet__in { transform: none; }
}
