/* ═══════════════════════════════════════════
   AKNC — proje-detay.css
   ═══════════════════════════════════════════ */

/* ─── SAYFA ──────────────────────────────── */
.detay-page {
  background: var(--clr-white);
  overflow-x: hidden;
}

/* Navbar — açık tema */
.detay-page #navbar {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
}
.detay-page #navbar .logo-img           { filter: none; opacity: 1; }
.detay-page #navbar .nav-links a        { color: #666; }
.detay-page #navbar .nav-links a:hover  { color: var(--clr-dark); }
.detay-page #navbar .hamburger span     { background: var(--clr-dark); }
.detay-page .nav-active                 { color: var(--clr-dark) !important; }
.detay-page .nav-active::after          { width: 100% !important; }

/* ─── LAYOUT ─────────────────────────────── */
.pd-layout {
  display: grid;
  grid-template-columns: 58fr 42fr;
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
}

/* ─── GALERİ (SOL SÜTUN) ─────────────────── */
.pd-gallery {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  background: var(--clr-dark);
}

.pd-viewer {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.pd-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .3s ease;
}

/* Navigasyon okları */
.pd-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  z-index: 5;
  padding: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s;
}
.pd-arr svg { width: 18px; height: 18px; }
.pd-arr:hover {
  background: var(--clr-white);
  box-shadow: 0 5px 18px rgba(0,0,0,0.3);
  transform: translateY(-50%) scale(1.07);
}
.pd-arr-prev { left: 18px; }
.pd-arr-next { right: 18px; }

/* Sayaç */
.pd-count {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.9);
  font-family: var(--ff-sans);
  font-size: .68rem;
  letter-spacing: .12em;
  padding: .28rem .72rem;
  border-radius: 20px;
  pointer-events: none;
}

/* Küçük resimler şeridi */
.pd-thumbs {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: #0d0d0c;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-gold) transparent;
}
.pd-thumbs::-webkit-scrollbar           { height: 3px; }
.pd-thumbs::-webkit-scrollbar-thumb     { background: var(--clr-gold); border-radius: 2px; }
.pd-thumbs::-webkit-scrollbar-track     { background: transparent; }

.pd-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 52px;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  transition: border-color .2s;
}
.pd-thumb img          { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active       { border-color: var(--clr-gold); }
.pd-thumb:hover:not(.active) { border-color: rgba(184,157,114,.45); }

/* ─── BİLGİ PANELİ (SAĞ SÜTUN) ─────────── */
.pd-info {
  display: flex;
  flex-direction: column;
  padding: 3rem 3.5rem 2.5rem;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  position: sticky;
  top: var(--nav-h);
  background: var(--clr-white);
}

/* Geri butonu */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #aaa;
  transition: color .2s;
  margin-bottom: 2.8rem;
  width: fit-content;
}
.pd-back svg   { width: 13px; height: 13px; }
.pd-back:hover { color: var(--clr-dark); }

/* İçerik alanı */
.pd-info-body { flex: 1; }

.pd-cat { margin-bottom: .7rem; }

.pd-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-weight: 400;
  color: var(--clr-dark);
  line-height: 1.12;
  margin-bottom: 1.6rem;
}

.pd-divider {
  width: 38px;
  height: 2px;
  background: var(--clr-gold);
  margin-bottom: 1.6rem;
}

.pd-desc {
  font-family: var(--ff-sans);
  font-size: .9rem;
  line-height: 1.85;
  color: #666;
  margin-bottom: 2.5rem;
}

/* Meta bilgiler */
.pd-meta {
  border-top: 1px solid var(--clr-border);
  padding-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-bottom: 2.5rem;
}

.pd-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pd-meta-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-light);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--clr-gold);
}
.pd-meta-icon svg { width: 15px; height: 15px; }

.pd-meta-label {
  display: block;
  font-family: var(--ff-sans);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: .22rem;
}

.pd-meta-val {
  display: block;
  font-family: var(--ff-sans);
  font-size: .9rem;
  color: var(--clr-dark);
}

/* CTA */
.pd-actions { margin-bottom: 2.5rem; }

/* Önceki / Sonraki proje navigasyonu */
.pd-proj-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--clr-border);
  padding-top: 1.5rem;
  margin-top: auto;
}

.pd-proj-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ff-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #aaa;
  transition: color .2s;
}
.pd-proj-btn svg   { width: 13px; height: 13px; }
.pd-proj-btn:hover { color: var(--clr-dark); }

.pd-proj-sep {
  width: 1px;
  height: 20px;
  background: var(--clr-border);
}

/* ─── RESPONSİF ─────────────────────────── */
@media (max-width: 960px) {
  .pd-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* Galeri — sabit yükseklik, kaydırmalı değil */
  .pd-gallery {
    position: relative;
    top: 0;
    height: 62vw;
    min-height: 260px;
    max-height: 480px;
  }

  /* Bilgi paneli — tam genişlik, scroll yok */
  .pd-info {
    position: relative;
    top: 0;
    max-height: none;
    padding: 2.2rem 1.6rem 2.5rem;
    overflow-y: visible;
  }

  .pd-back { margin-bottom: 1.8rem; }
}

@media (max-width: 480px) {
  .pd-gallery  { height: 72vw; }
  .pd-arr      { width: 38px; height: 38px; }
  .pd-arr svg  { width: 15px; height: 15px; }
  .pd-thumb    { width: 60px; height: 42px; }
}
