/* ============================================================
   PROJELER SAYFALARI – projects.css
   ============================================================ */

/* ── BODY ── */
.projects-body {
  background: #111;
  overflow-x: hidden;
}

/* ── HERO BANNER ── */
.proj-hero {
  position: relative;
  height: 320px;
  background: url('../assets/images/proje1.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.proj-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,20,20,.85) 0%, rgba(45,61,80,.75) 100%);
}

.proj-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.proj-hero__label {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--lime);
  padding-bottom: 6px;
}

.proj-hero__title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.proj-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

.proj-hero__breadcrumb a {
  color: rgba(255,255,255,.75);
  transition: color .2s;
}

.proj-hero__breadcrumb a:hover { color: var(--lime); }

.proj-hero__breadcrumb span:first-of-type {
  opacity: .4;
}

/* ── FİLTRE BUTONLARI ── */
.proj-filters-wrap {
  background: #161616;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 70px;
  z-index: 50;
}

.proj-filters {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 0;
}

.proj-filter {
  display: inline-block;
  padding: 18px 28px;
  font-family: 'Raleway', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  border-bottom: 3px solid transparent;
  transition: color .25s, border-color .25s;
  white-space: nowrap;
}

.proj-filter:hover {
  color: rgba(255,255,255,.85);
}

.proj-filter--active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ── GRID ── */
.proj-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* Örnek kartlar (link yok) aynı satır yüksekliğinde */
.proj-grid > .proj-card {
  height: 100%;
}

/* ── KART ── */
.proj-card {
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.proj-card-link {
  display: flex;
  height: 100%;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}

/* Görsel alanı */
.proj-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.proj-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}

.proj-card:hover .proj-card__img {
  transform: scale(1.08);
}

/* Hover overlay */
.proj-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.9) 0%, rgba(10,10,10,.2) 55%, transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.proj-card:hover .proj-card__overlay {
  opacity: 1;
}

.proj-card__overlay-text {
  color: rgba(255,255,255,.9);
  font-family: 'Open Sans', sans-serif;
  font-size: .82rem;
  line-height: 1.6;
}

/* Kategori etiketi (köşe) */
.proj-card__cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(6px);
  color: var(--lime);
  font-family: 'Raleway', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.1);
}

/* Durum etiketi (sağ üst) */
.proj-card__status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Raleway', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
  backdrop-filter: blur(6px);
}

.proj-card__status--devam {
  background: rgba(59,130,246,.25);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.3);
}

.proj-card__status--tamamlanan {
  background: rgba(var(--lime-rgb, 221,208,188),.2);
  color: var(--lime);
  border: 1px solid rgba(var(--lime-rgb, 221,208,188),.3);
}

/* Kart içerik */
.proj-card__body {
  padding: 20px 22px 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 5.5rem;
}

.proj-card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: rgba(255,255,255,.45);
  font-family: 'Open Sans', sans-serif;
  font-size: .78rem;
  line-height: 1.45;
  margin-top: auto;
  min-height: 2.2em;
}

.proj-card__meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .5;
}

/* ── BOŞ DURUM ── */
.proj-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.proj-empty__icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: .3;
}

.proj-empty__text {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,.3);
}

/* ── PROJE DETAY ── */

.pd-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 40px 90px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

/* Galeri sol */
.pd-gallery {
  position: sticky;
  top: 90px;
}

.pd-gallery__main-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  width: 100%;
  /* En az 420px yükseklik; genişlik arttıkça 4:3 oranla büyür */
  min-height: 420px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Görsel kapsayıcıyı tam doldurur, kırpma yok */
.pd-gallery__main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: opacity .25s;
}

/* ok butonları */
.pd-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .2s;
  z-index: 2;
}
.pd-gallery__arrow:hover { background: rgba(0,0,0,.8); }
.pd-gallery__arrow--prev { left: 14px; }
.pd-gallery__arrow--next { right: 14px; }
.pd-gallery__arrow svg { width: 20px; height: 20px; }

/* sayaç */
.pd-gallery__counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: rgba(0,0,0,.6);
  color: rgba(255,255,255,.85);
  font-family: 'Open Sans', sans-serif;
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Thumbnail şeridi */
.pd-gallery__strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

.pd-gallery__strip::-webkit-scrollbar { height: 4px; }
.pd-gallery__strip::-webkit-scrollbar-track { background: transparent; }
.pd-gallery__strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.pd-gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #1a1a1a;
  padding: 0;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
  opacity: .6;
}
.pd-gallery__thumb:hover { opacity: .85; }
.pd-gallery__thumb.is-active {
  border-color: var(--lime);
  opacity: 1;
}
.pd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bilgi paneli sağ */
.pd-info {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 28px;
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.pd-breadcrumb a { color: rgba(255,255,255,.55); }
.pd-breadcrumb a:hover { color: var(--lime); }

.pd-badge {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-right: 6px;
  margin-bottom: 14px;
}
.pd-badge--cat  { background: rgba(255,255,255,.07); color: var(--lime); border: 1px solid rgba(255,255,255,.1); }
.pd-badge--devam { background: rgba(59,130,246,.2); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.pd-badge--done { background: rgba(221,208,188,.12); color: var(--lime); border: 1px solid rgba(221,208,188,.25); }

.pd-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.25;
  margin-bottom: 12px;
}

.pd-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 0;
}
.pd-loc svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .5; }

.pd-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.07);
  margin: 20px 0;
}

.pd-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(255,255,255,.75);
  margin-bottom: 20px;
}

.pd-photo-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 24px;
}
.pd-photo-count svg { width: 14px; height: 14px; opacity: .4; }

.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-btn-back {
  display: block;
  text-align: center;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .8px;
  color: rgba(255,255,255,.7);
  transition: border-color .2s, color .2s;
}
.pd-btn-back:hover { border-color: rgba(255,255,255,.4); color: #fff; }

.pd-btn-cta {
  display: block;
  text-align: center;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--on-beige, #3d3528);
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s;
}
.pd-btn-cta:hover { background: var(--lime-hover); }

/* ── SAYIM SATIRI ── */
.proj-count {
  font-family: 'Open Sans', sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 30px;
}

.proj-count strong {
  color: var(--lime);
  font-weight: 600;
}

/* ── FOOTER ── */
.footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 40px;
  text-align: center;
}

.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__name {
  color: rgba(255,255,255,.35);
  font-family: 'Open Sans', sans-serif;
  font-size: .78rem;
  line-height: 1.6;
  max-width: 600px;
}

.footer__copy {
  color: rgba(255,255,255,.2);
  font-family: 'Open Sans', sans-serif;
  font-size: .72rem;
}

.logo-icon--sm svg {
  width: 36px;
  height: 36px;
  opacity: .4;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .proj-hero { height: 240px; }
  .proj-hero__title { font-size: 2rem; }
  .proj-filters { padding: 0 20px; overflow-x: auto; }
  .proj-filter { padding: 16px 18px; font-size: .72rem; }
  .proj-main { padding: 40px 20px 60px; }
  .proj-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
  .pd-wrap { grid-template-columns: 1fr; padding: 30px 20px 60px; }
  .pd-gallery { position: static; }
  .pd-gallery__main-wrap {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .pd-gallery__main-wrap {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
  .pd-wrap { padding: 20px 16px 60px; gap: 24px; }
}

@media (max-width: 600px) {
  .proj-hero { height: 200px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-filter { padding: 14px 14px; letter-spacing: .8px; }
}
