/* Proje / haber detay sayfaları, haber kartları, galeri ve lightbox. Ana tokenlar style.css'te. */

.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.section--tight { padding-top: 40px; }

/* ---------- Proje kartı ek bilgileri ---------- */
.project__summary {
  margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: #d8d8d8;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s;
}
.project__more { display: block; margin-top: 12px; font: 600 10px/1 var(--font-body); letter-spacing: .25em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.project:hover .project__summary, .project:focus-visible .project__summary { max-height: 120px; opacity: 1; }
.project:hover .project__more, .project:focus-visible .project__more { opacity: 1; transform: none; }
@media (hover: none) { .project__more { opacity: 1; transform: none; } }

/* ---------- Haber kartları ---------- */
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease); }
.news-card:hover { border-color: var(--gold-dim); transform: translateY(-6px); }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #2f2f2f, #222); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: transform 1s var(--ease), filter .6s; }
.news-card:hover .news-card__img img { transform: scale(1.06); filter: none; }
.news-card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.news-card time { font: 500 11px/1 var(--font-body); letter-spacing: .25em; text-transform: uppercase; color: var(--gold-dim); }
.news-card h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; margin: 16px 0 12px; transition: color .3s; }
.news-card:hover h3 { color: var(--gold); }
.news-card p { font-size: 14px; margin: 0 0 24px; flex: 1; }

/* ---------- Detay sayfası başlığı ---------- */
.page .header { background: rgba(30, 30, 30, .94); }
.detail-hero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: 140px 0 70px; overflow: hidden;
  background: var(--img, none) center / cover no-repeat, var(--bg-deep);
}
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,20,20,.95) 0%, rgba(20,20,20,.45) 55%, rgba(20,20,20,.3) 100%); }
.detail-hero--plain { min-height: 0; padding-top: 170px; padding-bottom: 40px; }
.detail-hero__inner { position: relative; z-index: 1; }
.detail-hero__title { font-size: clamp(38px, 6.5vw, 92px); line-height: 1; text-transform: uppercase; font-weight: 500; margin: 6px 0 0; max-width: 16ch; }
.detail-hero__title--sm { font-size: clamp(32px, 4.8vw, 64px); max-width: 22ch; }
.back-link { display: inline-block; margin-bottom: 30px; font: 600 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: #d0d0d0; transition: color .3s; }
.back-link:hover { color: var(--gold); }
.page-head { padding: 170px 0 20px; }
.page-empty { padding: 180px var(--pad-x) 120px; text-align: center; }
.page-empty .btn { margin-top: 20px; }

.status-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 16px; border: 1px solid rgba(255,255,255,.25); font: 600 10px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.status-pill--devam::before { background: #e0b25c; box-shadow: 0 0 0 4px rgba(224,178,92,.2); }
.status-pill--proje::before { background: #8fb0c9; }

/* ---------- Proje bilgileri + açıklama ---------- */
.detail { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 7vw, 110px); padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(40px, 6vw, 80px); }
.detail__aside { align-self: start; position: sticky; top: 110px; }
.facts { margin: 0; border-top: 1px solid var(--gold-dim); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 10px/1.8 var(--font-body); letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 0; color: #e4e4e4; }
.prose p { font-size: 16px; line-height: 1.9; margin: 0 0 1.4em; }
.detail__body .lead, .article .lead { font-size: clamp(18px, 1.6vw, 21px); margin-top: 0; margin-bottom: 1.6em; }
.article { max-width: 820px; padding-top: clamp(50px, 7vw, 90px); padding-bottom: 40px; }

/* ---------- Galeri ---------- */
.gallery { padding-bottom: clamp(60px, 8vw, 110px); }
.gallery__title { font-size: 28px; text-transform: uppercase; margin-bottom: 30px; }
.gallery__title span { font: 500 13px/1 var(--font-body); color: var(--gold); vertical-align: super; margin-left: 6px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-raise); }
.gallery__grid--featured .gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: grayscale(.25); }
.gallery__item:hover img { transform: scale(1.05); filter: none; }

.related { background: var(--bg-deep); }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related__grid .project { aspect-ratio: 4 / 3; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,12,.96); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox__figure img { max-width: 100%; max-height: 84vh; object-fit: contain; }
.lightbox__figure figcaption { font: 500 12px/1 var(--font-body); letter-spacing: .2em; color: var(--muted); }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; transition: color .3s; }
.lightbox button:hover { color: var(--gold); }
.lightbox__nav { font-size: 54px; font-weight: 200; height: 100%; }
.lightbox__close { position: absolute; top: 18px; right: 22px; font-size: 26px; z-index: 1; }

@media (max-width: 1024px) {
  .news-cards, .related__grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
}
@media (max-width: 640px) {
  .news-cards, .related__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .detail-hero { min-height: 70vh; padding-bottom: 46px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lightbox__nav { font-size: 40px; }
  .facts div { grid-template-columns: 90px 1fr; }
}
