/* ---------------------------------------------------------------------------
   Doruk Mimarlık - MVC ek stilleri
   Sablonda olmayan sayfalar icin: proje detay, proje listesi, hata sayfasi.
   Mevcut style.css / theme-dark.css dosyalariniza dokunmaz, en son yuklenir.
   --------------------------------------------------------------------------- */

/* Proje kartini tiklanabilir yapan seffaf katman */
.projects-grid .project-card { position: relative; }
.project-cover-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.project-cover-link:focus-visible {
  outline: 2px solid var(--gold, #c9a227);
  outline-offset: 3px;
}

/* Ic sayfa basligi */
.page-head { padding-top: 180px; }
.page-head .eyebrow { display: block; margin-bottom: 14px; }
.page-head .back-link { display: inline-block; margin-bottom: 22px; }

/* Proje detay */
.detail-hero { margin-bottom: 46px; }
.detail-hero img { width: 100%; height: auto; display: block; }

.detail-text {
  max-width: 68ch;
  margin: 0 0 40px;
  font-size: 1.02rem;
  line-height: 1.85;
  opacity: .88;
}
.detail-text p { margin: 0 0 18px; }

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.detail-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  line-height: 0;
}
.detail-gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .5s ease;
}
.detail-gallery-item:hover img { transform: scale(1.04); }

.detail-cta { text-align: center; }

@media (max-width: 780px) {
  .page-head { padding-top: 140px; }
  .detail-gallery-item img { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .detail-gallery-item img { transition: none; }
}

/* Referanslar sayfasi - logo izgarasi */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.refs-grid-item {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .03);
  transition: var(--tr, .35s ease);
}
a.refs-grid-item:hover { transform: translateY(-4px); border-color: rgba(183, 147, 99, .55); }
.refs-grid-item img { width: 100%; max-width: 220px; height: auto; object-fit: contain; border-radius: 20px; }

/* Ic sayfa hero'su (Views/Home/_PageHero.cshtml): arka plan gorseli + sayfa adi */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 170px 0 64px;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 6, .72), rgba(6, 6, 6, .35) 55%, rgba(6, 6, 6, .25)),
    linear-gradient(0deg, rgba(6, 6, 6, .75), transparent 55%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .eyebrow { color: #d5c9bb; }
.page-hero h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  color: #fff;
}

@media (max-width: 1200px) { .refs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .refs-grid { grid-template-columns: repeat(2, 1fr); } .page-hero { min-height: 320px; padding: 130px 0 44px; } }
