/* ═══════════════════════════════════════════════════════════════════════════════════════════════════
   PROJELER (pj- liste, pd- detay) — /projelerimiz · /projects ve /proje/{slug}. Anasayfa çizgisi: ma-bolumler.css'in
   ab- sistemi (koyu zemin, .ab-kap, --ab-bosluk, sistem font/vurgu), ortak iç sayfa başlığı (.isb — header payı orada)
   ve anasayfa "Projelerimiz" kartı (sp-: 16px köşeli koyu kart, 4:5 görsel, 4 / 2 / 1 sütun).
   Detay: koyu başlık bandı → banda binen ana görsel + galeri (Fancybox) → açık zeminde künye + okunaklı metin sütunu +
   teklif CTA'sı → koyu "Diğer projeler". Yalnız bu sayfalarda yüklenir (@section Styles). Davranış: js/ic-proje.js.
   Sıfırlamalar 0,0,1 özgüllükte (:where) — Bootstrap 5.3 yüklü.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */

:where(.pj, .pd-yazi) button { margin: 0; font: inherit; }

/* ═══ LİSTE (pj-) ═══ */
/* Footer'ın üst köşeleri yuvarlak (80px / mobil 40px): koyu bölüm köşelerin arkasına uzanır, açık body zemini görünmez */
.pj { margin-bottom: -80px; padding: 0 0 calc(var(--ab-bosluk) + 80px); }
@media (max-width: 767.98px) { .pj { margin-bottom: -40px; padding-bottom: calc(var(--ab-bosluk) + 40px); } }

/* Müşteri çipleri (yalnız kategori varsa) */
.pj-filtre { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(24px, 3vw, 40px); }
.pj-cip {
    display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: transparent; color: #fff;
    font-family: var(--ab-govde); font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: -.01em;
    cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
}
.pj-cip:hover { border-color: rgba(255, 255, 255, .5); }
.pj-cip[aria-pressed="true"] { border-color: #fff; background: #fff; color: var(--ab-koyu); }
.pj-cip:focus-visible { outline: 2px solid var(--ab-vurgu); outline-offset: 3px; }
@media (max-width: 575.98px) { .pj-filtre { gap: 8px; } .pj-cip { min-height: 38px; padding: 0 15px; font-size: 13px; } }

/* Kapanış satırı: kısa cümle + "Teklif alın" çift çizgili bağlantı */
.pj-son {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
    margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(24px, 2.5vw, 36px); border-top: 1px solid rgba(255, 255, 255, .12);
}
.pj-son-metin {
    margin: 0; font-family: var(--ab-baslik); font-size: clamp(24px, 2.6vw, 40px); font-weight: 600; line-height: 1.1;
    letter-spacing: -.04em; color: #fff;
}

/* Boş durum */
.pj-bos { max-width: 560px; padding: clamp(8px, 2vw, 24px) 0 0; }
.pj-bos-ikon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 16px;
    background: var(--ab-kart); color: var(--ab-soluk); font-size: 28px;
}
.pj-bos-baslik { margin: 0 0 10px; font-family: var(--ab-baslik); font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.04em; color: #fff; }
.pj-bos-metin { margin: 0 0 24px; font-size: 16px; line-height: 1.55; letter-spacing: -.02em; color: var(--ab-soluk); }

/* ═══ DETAY (pd-) ═══ */
.pd-yazi { --pd-bindirme: clamp(72px, 10vw, 168px); --pd-genislik: 1240px; }

/* Başlık bandı (.isb: header payı + breadcrumb + etiket/başlık ızgarası) */
.pd-bas--medyali { padding-bottom: calc(var(--ab-bosluk) + var(--pd-bindirme)); }
.pd-baslik { text-wrap: balance; }
.pd-ozet { max-width: 680px; text-wrap: pretty; }
.pd-ortak {
    margin: clamp(16px, 1.6vw, 22px) 0 0; font-family: var(--ab-govde); font-size: 14px; font-weight: 500; line-height: 1.4;
    letter-spacing: .02em; color: var(--ab-soluk);
}
/* Son kırıntı (proje adı) tek satır, gerekirse kısalır */
.pd-bas .isb-kirinti ol { flex-wrap: nowrap; }
.pd-bas .isb-kirinti li { flex: none; }
.pd-bas .isb-kirinti li:last-child { display: flex; flex: 0 1 auto; min-width: 0; }
.pd-bas .isb-kirinti li:last-child::before { flex: none; }
.pd-bas .isb-kirinti li:last-child span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Görseller: banda binen ana görsel (sol, 1:1) + galeri (sağ, 2 sütun; tek sayıda ise ilki iki sütun) ─── */
.pd-medya-alan { position: relative; padding: 0 30px; }
.pd-medya {
    position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 12px;
    max-width: var(--pd-genislik); margin: calc(-1 * var(--pd-bindirme)) auto 0;
}
.pd-medya--tek, .pd-medya--anasiz { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
.pd-ana { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: #26272b; }
.pd-medya--tek .pd-ana { aspect-ratio: 4 / 3; }
.pd-galeri { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 12px; min-height: 0; margin: 0; padding: 0; list-style: none; }
.pd-galeri > li { position: relative; min-width: 0; min-height: 0; border-radius: 18px; overflow: hidden; background: #26272b; }
.pd-galeri > li:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.pd-medya--anasiz .pd-galeri { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.pd-medya--anasiz .pd-galeri > li { aspect-ratio: 4 / 5; grid-column: auto; }
.pd-bag { position: absolute; inset: 0; display: block; color: #fff; }
.pd-bag img {
    display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%;
    transition: transform .7s cubic-bezier(.25, .46, .45, .94);
}
.pd-bag:hover img, .pd-bag:focus-visible img { transform: scale(1.04); }
.pd-bag:focus-visible { outline: 3px solid var(--ab-vurgu); outline-offset: -3px; border-radius: inherit; }
.pd-ana, .pd-galeri > li { isolation: isolate; }
.pd-ana .pd-bag, .pd-galeri .pd-bag { border-radius: inherit; }
/* Büyüt simgesi: vurgu renkli daire — fareyle/odakla belirir, dokunmatikte hep görünür */
.pd-ikon {
    position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 50%; background: var(--ab-vurgu); color: var(--ab-vurgu-yazi);
    opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .3s ease;
}
.pd-bag:hover .pd-ikon, .pd-bag:focus-visible .pd-ikon { opacity: 1; transform: none; }
@media (hover: none) { .pd-ikon { width: 38px; height: 38px; opacity: 1; transform: none; } }

@media (max-width: 991.98px) {
    .pd-medya { grid-template-columns: minmax(0, 1fr); }
    .pd-galeri { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
    .pd-galeri > li { aspect-ratio: 4 / 5; }
    .pd-galeri > li:first-child:nth-last-child(odd) { grid-column: auto; }
}
@media (max-width: 575.98px) {
    .pd-medya-alan { padding: 0 15px; }
    .pd-medya { gap: 10px; }
    .pd-ana { aspect-ratio: 4 / 5; border-radius: 18px; }
    .pd-medya--tek .pd-ana { aspect-ratio: 4 / 5; }
    .pd-galeri { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pd-galeri > li { border-radius: 14px; }
    .pd-galeri > li:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
    .pd-medya--anasiz .pd-galeri > li:first-child:nth-last-child(odd) { aspect-ratio: 4 / 5; grid-column: auto; }
}

/* ─── Gövde: açık zemin; künye (geniş ekranda sağda, yapışkan) + metin sütunu (≤720px) + CTA ─── */
.pd { padding: clamp(40px, 5vw, 80px) 30px var(--ab-bosluk); }
.pd-izgara {
    display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; column-gap: clamp(48px, 6vw, 96px);
    row-gap: clamp(32px, 4vw, 48px); max-width: var(--pd-genislik); margin: 0 auto;
}
@media (min-width: 1100px) {
    .pd-izgara { grid-template-columns: minmax(0, 720px) 320px; row-gap: 0; }
    .pd-icerik, .pd-cta { grid-column: 1; }
    .pd-kunye { position: sticky; top: 32px; grid-column: 2; grid-row: 1 / span 2; align-self: start; }
    .pd-cta { margin-top: clamp(44px, 5vw, 72px); }
}

/* Künye — açık kart, tanım listesi */
.pd-kunye { padding: clamp(22px, 2.4vw, 30px); border-radius: 22px; background: var(--ab-acik-kart); }
.pd-kunye-baslik {
    margin: 0 0 6px; font-family: var(--ab-govde); font-size: 12px; font-weight: 600; line-height: 22px; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--ab-vurgu-metin);
}
.pd-kunye dl { margin: 0; }
.pd-kunye-satir { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 13px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.pd-kunye-satir:first-child { border-top: 0; }
.pd-kunye dt { font-family: var(--ab-govde); font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .01em; color: #6b6b6b; }
.pd-kunye dd { margin: 0; font-family: var(--ab-baslik); font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: #111; overflow-wrap: anywhere; }
@media (min-width: 576px) and (max-width: 1099.98px) {
    .pd-kunye dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
    .pd-kunye-satir:nth-child(2) { border-top: 0; }
}
@media (max-width: 575.98px) {
    .pd-kunye-satir { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; gap: 12px; padding: 11px 0; }
    .pd-kunye dd { font-size: 16px; }
}

/* Metin tipografisi (panel Detay HTML'i: h2/h3, p, listeler, bağlantı) */
.pd-icerik { font-family: var(--ab-govde); font-size: 18px; line-height: 1.75; letter-spacing: -.005em; color: #2b2b2b; overflow-wrap: break-word; }
.pd-icerik > :first-child, .pd-bolum:first-child > :first-child { margin-top: 0; }
/* site.css "section { padding: 5rem 0 }" — içerik bölümleri kendi aralığını kullanır */
.pd-bolum { padding: 0; }
.pd-bolum + .pd-bolum { margin-top: 2.2em; }
.pd-icerik p, .pd-icerik ul, .pd-icerik ol { margin: 0 0 1.15em; }
.pd-icerik h2 {
    margin: 0 0 .6em; font-family: var(--ab-baslik); font-size: clamp(26px, 2.3vw, 34px); font-weight: 600; line-height: 1.2;
    letter-spacing: -.03em; color: #000; scroll-margin-top: 24px; text-wrap: balance;
}
.pd-icerik h3 {
    margin: 1.7em 0 .5em; font-family: var(--ab-baslik); font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; line-height: 1.3;
    letter-spacing: -.02em; color: #000;
}
.pd-icerik strong, .pd-icerik b { font-weight: 600; color: #000; }
.pd-icerik a {
    color: var(--ab-vurgu-metin); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s;
}
.pd-icerik a:hover, .pd-icerik a:focus-visible { color: #000; }
.pd-icerik ul { padding: 0; list-style: none; }
.pd-icerik ul > li { position: relative; padding-left: 1.5em; }
.pd-icerik ul > li::before {
    position: absolute; top: .72em; left: .3em; width: 8px; height: 8px; border-radius: 50%; background: var(--ab-vurgu); content: '';
}
.pd-icerik ol { padding: 0; list-style: none; counter-reset: pd-sira; }
.pd-icerik ol > li { position: relative; padding-left: 2.6em; counter-increment: pd-sira; }
.pd-icerik ol > li::before {
    position: absolute; top: .2em; left: 0; width: 1.75em; height: 1.75em; border-radius: 50%;
    background: color-mix(in srgb, var(--ab-vurgu) 16%, #fff);
    font-family: var(--ab-govde); font-size: 14px; font-weight: 600; line-height: 1.75em; text-align: center; color: var(--ab-vurgu-metin);
    content: counter(pd-sira);
}
.pd-icerik li + li { margin-top: .55em; }
.pd-icerik img { max-width: 100%; height: auto; border-radius: 16px; }

/* Teklif CTA'sı (makalenin <footer>'ı) — Form Bölümü panelinin vurgu zemini */
.pd-cta {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    padding: clamp(28px, 3.6vw, 48px); border-radius: 24px; background: var(--ab-vurgu); color: var(--ab-vurgu-yazi);
}
.pd-cta-etiket { margin: 0; font-family: var(--ab-govde); font-size: 12px; font-weight: 600; line-height: 22px; letter-spacing: 1.2px; text-transform: uppercase; opacity: .88; }
.pd-cta-baslik {
    margin: 0; font-family: var(--ab-baslik); font-size: clamp(24px, 2.3vw, 34px); font-weight: 500; line-height: 1.2;
    letter-spacing: -.02em; color: inherit; text-wrap: balance;
}
.pd-cta-metin { max-width: 560px; margin: 0; font-family: var(--ab-govde); font-size: 17px; line-height: 1.55; opacity: .88; }
.pd-buton {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 16px 30px; border: 1px solid #fff;
    border-radius: 122px; background: #fff; color: #000; font-family: var(--ab-govde); font-size: 16px; font-weight: 600;
    line-height: 22.4px; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s;
}
.pd-buton svg { flex: none; transition: transform .3s; }
.pd-buton:hover, .pd-buton:focus-visible { border-color: #000; background: #000; color: #fff; }
.pd-buton:hover svg, .pd-buton:focus-visible svg { transform: translate(2px, -2px); }
.pd-buton:focus-visible { outline: 2px solid var(--ab-vurgu-yazi); outline-offset: 3px; }

/* ─── Diğer projeler: koyu bölüm, anasayfa kartları (sp-) ─── */
.pd-diger { margin-bottom: -80px; padding: var(--ab-bosluk) 0 calc(var(--ab-bosluk) + 80px); }
.pd-diger-ust {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
    margin-bottom: clamp(24px, 3vw, 40px);
}
.pd-diger-baslik {
    margin: 0; font-family: var(--ab-baslik); font-size: clamp(34px, 4.4vw, 64px); font-weight: 600; line-height: 1;
    letter-spacing: -.05em; color: #fff;
}
/* Telefonda diğer projeler iki sütun (sekiz tam boy kart sayfayı gereksiz uzatırdı) */
@media (max-width: 575.98px) {
    .pd-diger-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pd-diger-izgara .sp-ic { padding: 4px; border-radius: 14px; }
    .pd-diger-izgara .sp-kart-ust { flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 8px 10px; }
    .pd-diger-izgara .sp-kart-baslik { font-size: 15px; }
    .pd-diger-izgara .sp-kart-etiket { font-size: 12px; white-space: normal; }
    .pd-diger-izgara .sp-gorsel { border-radius: 10px; }
    .pd-diger-izgara .sp-kart:nth-child(2n) { --gec: .08s; }
}

@media (max-width: 767.98px) {
    .pd { padding: 32px 15px var(--ab-bosluk); }
    .pd-icerik { font-size: 17px; line-height: 1.7; }
    .pd-cta { border-radius: 20px; }
    .pd-buton { width: 100%; justify-content: center; }
    .pd-diger { margin-bottom: -40px; padding-bottom: calc(var(--ab-bosluk) + 40px); }
}

@media (prefers-reduced-motion: reduce) {
    .pj-cip, .pd-bag img, .pd-ikon, .pd-buton, .pd-buton svg { transition: none; }
    .pd-bag:hover img, .pd-bag:focus-visible img { transform: none; }
}
