/* ============================================================
   PROJE DETAY SAYFASI
============================================================ */

/* ── Hero ── */
.pd-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.pd-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.pd-hero:hover .pd-hero-bg { transform: scale(1); }
.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,12,0.3) 0%, rgba(11,11,12,0.85) 100%);
}
.pd-hero-body {
  position: relative;
  z-index: 2;
  padding: 0 48px 44px;
  color: #fff;
  width: 100%;
}
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  transition: gap .2s;
}
.pd-back:hover { gap: 12px; }
.pd-hero-body h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.pd-hero-body p {
  font-size: 0.85rem;
  color: var(--lighter);
  letter-spacing: 0.5px;
}

/* ── Galeri Grid ── */
.pd-gallery {
  background: var(--light);
  padding: 56px 32px 72px;
  min-height: 300px;
}
.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
}
.pd-gallery-grid .gal-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
}
.pd-gallery-grid .gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.pd-gallery-grid .gal-item:hover img { transform: scale(1.06); }
.pd-gallery-grid .gal-item::after {
  content: '\f065';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: rgba(11,11,12,0);
  opacity: 0;
  transition: background .3s, opacity .3s;
}
.pd-gallery-grid .gal-item:hover::after {
  background: rgba(11,11,12,0.4);
  opacity: 1;
}

/* ── Lightbox ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lb-overlay.open { display: flex; }
.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(198,164,92,0.5); }
.lb-close { top: 20px; right: 24px; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pd-hero { height: 320px; }
  .pd-hero-body { padding: 0 24px 32px; }
  .pd-gallery { padding: 40px 16px 56px; }
  .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .pd-hero { height: 260px; }
  .pd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 8px; width: 40px; height: 40px; }
  .lb-next { right: 8px; width: 40px; height: 40px; }
  .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lb-img { max-width: 100vw; max-height: 80vh; border-radius: 0; }
}

/* iOS safe area desteği */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .pd-hero-body { padding-bottom: calc(44px + env(safe-area-inset-bottom)); }
}
