/* =========================================================
   PROJE DETAY SAYFASI  (projelerimiz-detay.php ile eşleşir) — önek: pjd-
   NOT: Bu dosya assets/projelerimiz.css ile BİRLİKTE yüklenir. Üst alan (hero + site haritası),
   butonlar, kartlar, alt bant ve değişkenler (--pj-*) oradan gelir; burada yalnızca detaya özel
   bölümler vardır: etiketler · ana görsel + künye · hakkında · galeri · video · tam ekran görüntüleyici
   ========================================================= */

/* ---------- ÜST ALAN EK AYARLARI ---------- */
.pjd .pj-hero h1 { max-width: 20ch; text-wrap: balance; font-size: clamp(36px, 5.4vw, 78px); }
.pjd .pj-hero-lead { max-width: 60ch; }
.pjd .pjd-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; animation: pjRise 1s var(--pj-ease) .34s both; }
.pjd-tag { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 14px; border: 1px solid rgba(255, 255, 255, .3); border-left: 4px solid var(--pj-cyan); border-radius: 4px; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: #fff; }
.pjd-tag svg { width: 16px; height: 16px; flex: none; color: var(--pj-ice); }

/* ---------- BÖLÜM ARALARI ---------- */
.pjd-block { margin-top: clamp(64px, 8vw, 120px); scroll-margin-top: 110px; }
.pjd .pjd-head { margin-bottom: clamp(26px, 3.4vw, 44px); }
.pjd .pjd-head h2 { max-width: 16ch; }

/* ---------- ANA GÖRSEL + KÜNYE ---------- */
.pjd-intro { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--pj-line); border-left: 6px solid var(--pj-cyan); border-radius: 4px; background: #fff; box-shadow: 0 30px 60px -34px rgba(11, 42, 74, .55); }
.pjd-frame { position: relative; min-height: clamp(300px, 38vw, 540px); }
.pjd-frame::before { content: ""; position: absolute; z-index: 3; left: 14px; bottom: 14px; width: 34px; height: 34px; border-bottom: 2px solid var(--pj-neon); border-left: 2px solid var(--pj-neon); filter: drop-shadow(0 0 5px var(--pj-neon)); pointer-events: none; }
.pjd-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, transparent 65%, rgba(8, 40, 82, .3)); pointer-events: none; }
.pjd-frame .pj-brk { opacity: 1; transform: none; }
.pjd-frame:hover .pj-img img { transform: scale(1.04); }
.pjd-frame:hover .pj-scan { transform: scaleX(1); }
.pjd-zoom { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-end; justify-content: flex-end; padding: 18px; border: 0; background: transparent; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.pjd-zoom svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: linear-gradient(135deg, #1aa7ff, #0a7fe0); color: #fff; box-shadow: 0 10px 24px -6px rgba(0, 120, 220, .8); transition: transform .5s var(--pj-ease), box-shadow .5s ease; }
.pjd-zoom:hover svg { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 217, 255, .18), 0 12px 28px -6px rgba(0, 150, 255, .9); }
.pjd-zoom:focus-visible { outline: 3px solid var(--pj-blue); outline-offset: -3px; }
.pjd-zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pjd-spec { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); color: #fff; background: radial-gradient(70% 60% at 100% 0%, rgba(0, 217, 255, .22), transparent 65%), linear-gradient(150deg, #082852, #0a5fb8); }
.pjd-spec::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%); }
.pjd-spec > * { position: relative; }
.pjd-spec > .pj-bigidx { position: absolute; }
.pjd .pjd-spec dl { width: 100%; margin: 6px 0 0; padding: 0; }
.pjd-spec dl > div { display: flex; flex-direction: column; gap: 5px; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.pjd-spec dl > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.pjd-spec dt { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--pj-ice); }
.pjd .pjd-spec dd { margin: 0; font-size: 19px; font-weight: 300; line-height: 1.35; color: #fff; }
.pjd-spec-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* ---------- PROJE HAKKINDA ---------- */
.pjd-about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pjd .pjd-about .pjd-head { position: sticky; top: calc(var(--hdr, 80px) + 24px); margin: 0; }
.pjd-text { padding-left: clamp(18px, 2.6vw, 38px); border-left: 2px solid rgba(37, 195, 253, .6); }
.pjd-text p { font-size: 17.5px; font-weight: 300; line-height: 1.85; color: var(--pj-text); }
.pjd .pjd-text p + p { margin-top: 1.3em; }
.pjd .pjd-text p:first-child { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.7; color: var(--pj-ink); }

/* ---------- GALERİ ---------- */
.pjd .pjd-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.pjd-gal li { min-width: 0; }
.pjd-shot { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 1px solid var(--pj-line); border-left: 5px solid var(--pj-cyan); border-radius: 4px; background: #dfe9f1; cursor: zoom-in; box-shadow: 0 22px 44px -28px rgba(11, 42, 74, .6); transition: transform .6s var(--pj-ease), box-shadow .5s ease; -webkit-tap-highlight-color: transparent; }
.pjd-shot:hover, .pjd-shot:focus-visible { transform: translateY(-5px); box-shadow: 0 34px 56px -24px rgba(0, 150, 255, .55); }
.pjd-shot:hover .pj-img img, .pjd-shot:focus-visible .pj-img img { transform: scale(1.07); filter: saturate(1.1); }
.pjd-shot:hover .pj-brk, .pjd-shot:focus-visible .pj-brk { opacity: 1; transform: none; }
.pjd-shot:hover .pj-scan, .pjd-shot:focus-visible .pj-scan { transform: scaleX(1); }
.pjd-shot:focus-visible { outline: 3px solid var(--pj-blue); outline-offset: 3px; }
.pjd-shot-ic { position: absolute; z-index: 4; right: 14px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: linear-gradient(135deg, #1aa7ff, #0a7fe0); color: #fff; opacity: 0; transform: scale(.8); transition: opacity .4s ease, transform .5s var(--pj-ease); }
.pjd-shot-ic svg { width: 18px; height: 18px; }
.pjd-shot:hover .pjd-shot-ic, .pjd-shot:focus-visible .pjd-shot-ic { opacity: 1; transform: none; }

/* ---------- VİDEOLAR ---------- */
.pjd-vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.pjd-vcard { min-width: 0; margin: 0; }
.pjd-vbox { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--pj-line); border-left: 5px solid var(--pj-cyan); border-radius: 4px; background: #0a1d36; box-shadow: 0 22px 44px -26px rgba(11, 42, 74, .6); }
.pjd-vbox > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--pj-ease); }
.pjd-vbox:not(.is-live)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 40, 82, .05), rgba(8, 40, 82, .55)); pointer-events: none; }
.pjd-vbox:not(.is-live):hover > img { transform: scale(1.05); }
.pjd-vbox iframe, .pjd-vbox video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pjd-vbox video { object-fit: contain; }
.pjd-play { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 74px; height: 74px; padding: 0 0 0 4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); background: linear-gradient(135deg, #1aa7ff, #0a7fe0); color: #fff; cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 0 0 0 rgba(0, 217, 255, .5), 0 14px 30px -8px rgba(0, 120, 220, .9); animation: pjdPulse 2.4s ease-out infinite; transition: transform .4s var(--pj-ease); }
.pjd-play svg { width: 28px; height: 28px; }
.pjd-play:hover { transform: translate(-50%, -50%) scale(1.1); }
.pjd-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes pjdPulse { 70% { box-shadow: 0 0 0 20px rgba(0, 217, 255, 0), 0 14px 30px -8px rgba(0, 120, 220, .9); } 100% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0), 0 14px 30px -8px rgba(0, 120, 220, .9); } }
.pjd-vbox--ig { background: linear-gradient(135deg, #f09433 0%, #dc2743 55%, #bc1888 100%); }
.pjd-ig-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.pjd-vbox--ig.is-live { aspect-ratio: auto; height: min(720px, 150vw); background: #fff; }
.pjd-vcard figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 0; }
.pjd-vcard figcaption b { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pj-blue); }
.pjd-vcard figcaption a { font-size: 13.5px; font-weight: 600; color: var(--pj-ink); text-decoration: none; border-bottom: 1px solid var(--pj-cyan); transition: color .25s ease; }
.pjd-vcard figcaption a:hover { color: var(--pj-blue); }
.pjd-vcard figcaption a:focus-visible { outline: 2px solid var(--pj-blue); outline-offset: 3px; }

/* ---------- TAM EKRAN GÖRÜNTÜLEYİCİ (main dışında; renkler sabit) ---------- */
.pjd-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(4, 16, 36, .95); opacity: 0; transition: opacity .25s ease; font-family: 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif; }
.pjd-lb[hidden] { display: none; }
.pjd-lb.is-open { opacity: 1; }
.pjd-lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: clamp(60px, 9vh, 90px) clamp(12px, 7vw, 110px); }
.pjd-lb-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-left: 4px solid #25c3fd; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.98); transition: opacity .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1); -webkit-user-select: none; user-select: none; }
.pjd-lb-img.is-in { opacity: 1; transform: none; }
.pjd-lb-btn { position: absolute; z-index: 3; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.pjd-lb-btn svg { width: 22px; height: 22px; }
.pjd-lb-btn:hover { background: linear-gradient(135deg, #1aa7ff, #0a7fe0); border-color: #78e8ff; }
.pjd-lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pjd-lb-close { top: 16px; right: 16px; }
.pjd-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.pjd-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.pjd-lb-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; background: linear-gradient(0deg, rgba(4, 16, 36, .85), transparent); color: #dcebf6; font-size: 14px; pointer-events: none; }
.pjd-lb-name { font-weight: 600; letter-spacing: .04em; }
.pjd-lb-cnt { font-variant-numeric: tabular-nums; letter-spacing: .14em; color: #7ae7ff; }

/* ---------- TABLET / MOBİL ---------- */
@media (max-width: 1000px) {
    .pjd-intro { grid-template-columns: 1fr; }
    .pjd-frame { min-height: 0; aspect-ratio: 16 / 10; }
    .pjd-frame::after { background: linear-gradient(180deg, transparent 65%, rgba(8, 40, 82, .3)); }
    .pjd-about { grid-template-columns: 1fr; }
    .pjd .pjd-about .pjd-head { position: static; }
    .pjd .pjd-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pjd-vgrid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .pjd-intro { border-left-width: 4px; }
    .pjd-shot, .pjd-vbox { border-left-width: 4px; }
    .pjd .pjd-gal { gap: 10px; }
    .pjd-spec-btns .pj-btn { flex: 1 1 100%; justify-content: center; }
    .pjd-text { padding-left: 16px; }
    .pjd-text p { font-size: 16.5px; }
    .pjd-play { width: 62px; height: 62px; }
    .pjd-lb-btn { width: 44px; height: 44px; }
    .pjd-lb-prev { left: 8px; }
    .pjd-lb-next { right: 8px; }
    .pjd-lb-stage { padding-inline: 8px; }
}
/* dokunmatikte hover'a bağlı süsler her zaman görünür */
@media (hover: none) {
    .pjd-shot-ic { opacity: 1; transform: none; }
    .pjd-shot:hover { transform: none; }
    .pjd-shot .pj-brk { opacity: 1; transform: none; }
    .pjd-shot:hover .pj-img img, .pjd-frame:hover .pj-img img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pjd-play { animation: none; }
    .pjd-lb, .pjd-lb-img { transition-duration: .01ms !important; }
}