/* =========================================================
   Proje detay sayfası — App Store ürün sayfası düzeni.
   Renkler ve yazı tipleri styles.css'teki tema
   değişkenlerinden gelir; --accent her projenin rengidir.
   ========================================================= */

.pd-body { --accent: 61,116,255; }

/* ---------- Üst çubuk ---------- */
.pd-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.pd-nav__inner { max-width: 1020px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.pd-back { display: inline-flex; align-items: center; gap: 4px; color: rgb(var(--accent)); font-weight: 600; font-size: .95rem; }
.pd-back:hover { opacity: .8; }
.pd-nav__title { flex: 1; text-align: center; font-family: var(--font-display); font-weight: 600; opacity: 0; transition: opacity .25s; }
.pd-nav__title.is-visible { opacity: 1; }

.pd { max-width: 1020px; margin: 0 auto; padding: 36px 20px 80px; position: relative; isolation: isolate; overflow-x: clip; }
.pd-loading { color: var(--text-dim); text-align: center; padding: 120px 0; }
.pd-section { padding: 28px 0; border-top: 1px solid var(--border); }
.pd-section h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0 0 16px; letter-spacing: -.01em; }

/* ---------- Başlık ---------- */
.pd-head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding-bottom: 28px; }
.pd-head::before {
  content: ""; position: absolute; left: -140px; top: -120px; width: 560px; height: 440px; z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--accent), .26), transparent);
  pointer-events: none;
}
.pd-icon { width: 152px; height: 152px; border-radius: 34px; box-shadow: 0 24px 50px -18px rgba(var(--accent), .55), 0 0 0 1px rgba(255, 255, 255, .06); object-fit: cover; }
.pd-icon--fallback { display: grid; place-items: center; font: 700 3.4rem var(--font-display); color: #fff; background: rgb(var(--accent)); }
.pd-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.pd-subtitle { margin: 6px 0 0; font-size: 1.15rem; color: var(--text-dim); }
.pd-dev { margin: 6px 0 0; font-size: .95rem; color: rgb(var(--accent)); font-weight: 600; }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.pd-get {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 26px; border-radius: 999px;
  background: rgb(var(--accent)); color: #fff;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  box-shadow: 0 10px 24px -10px rgba(var(--accent), .8);
  transition: transform var(--dur-s) var(--ease), filter var(--dur-s);
}
a.pd-get:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pd-get--muted { background: var(--surface); color: var(--text-dim); box-shadow: none; border: 1px solid var(--border); cursor: default; }
.pd-get small { font-weight: 600; opacity: .8; }
.pd-link { color: rgb(var(--accent)); font-weight: 600; font-size: .93rem; }
.pd-link:hover { text-decoration: underline; }

/* ---------- Bilgi şeridi (App Store'daki gibi) ---------- */
.pd-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); overflow-x: auto; border-top: 1px solid var(--border); padding: 18px 0; scrollbar-width: none; }
.pd-strip::-webkit-scrollbar { display: none; }
.pd-strip > div { padding: 0 16px; text-align: center; border-left: 1px solid var(--border); }
.pd-strip > div:first-child { border-left: 0; }
.pd-strip small { display: block; font: 600 .68rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.pd-strip b { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 1.15rem; color: var(--text); white-space: nowrap; }
.pd-strip span { display: block; margin-top: 2px; font-size: .8rem; color: var(--text-dim); white-space: nowrap; }
.pd-status { display: inline-flex; align-items: center; gap: 6px; }
.pd-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pd-strip b.pd-status--published { color: #22c55e; }
.pd-strip b.pd-status--review { color: #f59e0b; }
.pd-strip b.pd-status--soon, .pd-strip b.pd-status--dev { color: var(--text-dim); }

/* ---------- Ekran görüntüleri ---------- */
.pd-shots { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.pd-shots--mac { grid-auto-columns: min(82%, 620px); }
.pd-shots--web { grid-auto-columns: min(82%, 620px); }
.pd-shots--phone { grid-auto-columns: 230px; }
.pd-shot { scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; }
.pd-shot img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: transform var(--dur-s) var(--ease); }
/* Telefon görüntüleri genelde cihaz çerçevesiyle gelir; ikinci bir çerçeve eklenmez. */
.pd-shots--phone .pd-shot img { border: 0; border-radius: 0; background: none; }
.pd-shot:hover img { transform: translateY(-3px); }
.pd-shot:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 3px; }
.pd-shots-empty {
  display: grid; place-items: center; gap: 10px; text-align: center;
  min-height: 220px; border-radius: 20px; border: 1px dashed var(--border);
  background: linear-gradient(135deg, rgba(var(--accent), .10), transparent 60%);
  color: var(--text-dim);
}
.pd-shots-empty img { width: 64px; height: 64px; border-radius: 16px; opacity: .9; }

/* ---------- Açıklama ---------- */
.pd-desc { position: relative; color: var(--text); line-height: 1.7; max-width: 72ch; }
.pd-desc p { margin: 0 0 12px; }
.pd-desc.is-clamped { max-height: 7.2em; overflow: hidden; }
.pd-desc.is-clamped::after { content: ""; position: absolute; inset: auto 0 0; height: 3em; background: linear-gradient(transparent, var(--bg)); }
.pd-more { margin-top: 4px; padding: 0; border: 0; background: none; color: rgb(var(--accent)); font-weight: 600; cursor: pointer; }
.pd-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pd-platforms span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: .82rem; color: var(--text-dim); }

/* ---------- Yenilikler ---------- */
.pd-new__meta { display: flex; justify-content: space-between; color: var(--text-dim); font-size: .9rem; margin-bottom: 10px; }
.pd-new ul { margin: 0; padding-left: 18px; color: var(--text); line-height: 1.7; }

/* ---------- Özellikler ---------- */
.pd-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pd-feature { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.pd-feature i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-style: normal; font-size: 1.1rem; background: rgba(var(--accent), .14); color: rgb(var(--accent)); }
.pd-feature b { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 1.02rem; }
.pd-feature p { margin: 4px 0 0; font-size: .9rem; color: var(--text-dim); line-height: 1.55; }

/* ---------- Teknolojiler ---------- */
.pd-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tech span { padding: 7px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font: 500 .85rem var(--font-mono); }

/* ---------- Bilgi tablosu ---------- */
.pd-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0; }
.pd-info > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pd-info dt { color: var(--text-dim); }
.pd-info dd { margin: 0; text-align: right; color: var(--text); }
@media (min-width: 640px) { .pd-info { column-gap: 40px; } }

/* ---------- Diğer projeler ---------- */
.pd-others { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.pd-other { display: grid; justify-items: center; gap: 8px; padding: 18px 12px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); text-align: center; transition: transform var(--dur-s) var(--ease), border-color var(--dur-s); }
.pd-other:hover { transform: translateY(-3px); border-color: rgba(var(--accent), .5); }
.pd-other img { width: 64px; height: 64px; border-radius: 16px; }
.pd-other b { font-family: var(--font-display); font-size: .98rem; }
.pd-other small { font-size: .8rem; color: var(--text-dim); }

/* ---------- Büyük görüntü ---------- */
.pd-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 48px 64px; background: rgba(5, 7, 12, .9); }
.pd-lightbox[hidden] { display: none; }
.pd-lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.pd-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pd-lightbox button:hover { background: rgba(255, 255, 255, .2); }
.pd-lightbox__close { top: 16px; right: 16px; }
.pd-lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.pd-lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Telefon ---------- */
@media (max-width: 640px) {
  .pd { padding-top: 24px; }
  .pd-head { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .pd-icon { width: 108px; height: 108px; border-radius: 24px; }
  .pd-shots--phone { grid-auto-columns: 62%; }
  .pd-lightbox { padding: 56px 12px; }
  .pd-lightbox__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-shot img, .pd-other, .pd-get { transition: none; }
}

/* API'den gelen ve ikonu olmayan proje */
.pd-other__fallback { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font: 700 1.6rem var(--font-display); color: #fff; background: rgba(var(--accent), .85); }
