/* Proje detay sayfaları — style.css'in üzerine */

.p-hero { padding: 8.5rem var(--gutter) 3rem; max-width: 80rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; font-size: .82rem; color: var(--muted); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); }
.p-hero__title {
  margin: 0 0 1.8rem; font-family: var(--font-display); font-weight: 820; font-stretch: 112%;
  font-size: clamp(2.8rem, 1rem + 7vw, 8rem); line-height: .9; letter-spacing: -.05em;
}
.p-hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.p-hero__title .word { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.2s var(--ease); }
.is-ready .p-hero__title .word { transform: none; }
.is-ready .p-hero__title .line:nth-child(2) .word { transition-delay: .1s; }
.p-hero__lead { max-width: 44rem; margin: 0; color: var(--muted); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); }
.p-hero__lead strong { color: var(--text); font-weight: 600; }

/* ---------- tur ---------- */
.p-viewer { padding: 0 var(--gutter); }
.p-viewer__frame {
  position: relative; height: min(78svh, 820px); min-height: 420px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  clip-path: inset(8% 4% 8% 4% round var(--radius)); transition: clip-path 1.4s var(--ease-in-out) .3s;
}
.is-ready .p-viewer__frame { clip-path: inset(0 0 0 0 round var(--radius)); }
/* tour.js çerçeveye .tv360 ekleyince tour.css'teki `height:100%` buradaki yüksekliği eziyordu (tablette 420px'e, telefonda 2px'e çöküyordu): daha özgül seçiciyle yükseklik geri verilir */
.p-viewer__frame.tv360 { height: min(78svh, 820px); }
.p-viewer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-viewer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 1rem .2rem; font-size: .85rem; color: var(--muted); }
.p-viewer__bar a { color: var(--text); font-weight: 600; transition: color .3s; }
.p-viewer__bar a:hover { color: var(--accent); }

/* ---------- künye ---------- */
.p-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 3rem var(--gutter) 0; padding: 0;
  border-block: 1px solid var(--line);
}
.p-facts div { padding: 1.6rem 1.4rem 1.6rem 0; border-right: 1px solid var(--line); }
.p-facts div:not(:first-child) { padding-left: 1.4rem; }
.p-facts div:last-child { border-right: 0; }
.p-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: .5rem; }
.p-facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.35; }

/* ---------- metin ---------- */
.p-article { padding: var(--space-section) var(--gutter) 0; display: grid; gap: clamp(4rem, 8vw, 7rem); }
.p-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.p-block > h2 {
  margin: 0; font-family: var(--font-display); font-weight: 750; font-stretch: 108%;
  font-size: clamp(1.7rem, 1rem + 2vw, 2.8rem); line-height: 1; letter-spacing: -.03em;
  position: sticky; top: 6rem; align-self: start;
}
.p-block > :not(h2) { grid-column: 2; }
.p-block p { margin: 0 0 1.2rem; color: var(--muted); font-size: 1.05rem; max-width: 42rem; }
.p-block strong { color: var(--text); font-weight: 600; }

.p-scenes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.p-scenes li {
  position: relative; display: grid; grid-template-columns: 3.5rem 1fr; gap: .2rem 1rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--line); isolation: isolate;
}
.p-scenes li::before {
  content: ""; position: absolute; inset: 0 -1rem; z-index: -1; border-radius: 12px; background: var(--accent-soft);
  opacity: 0; transform: scaleX(.96); transition: opacity .4s, transform .6s var(--ease);
}
.p-scenes li:hover::before { opacity: 1; transform: none; }
.p-scenes span { grid-row: span 2; font: 300 2.2rem/1 var(--font-display); font-stretch: 70%; color: var(--accent); transition: transform .6s var(--ease); }
.p-scenes li:hover span { transform: translateX(6px); }
.p-scenes h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.p-scenes p { margin: 0; font-size: .96rem; }

.p-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.p-points li { position: relative; padding-left: 1.8rem; color: var(--muted); max-width: 42rem; }
.p-points li::before { content: "◎"; position: absolute; left: 0; color: var(--accent); }


/* ---------- cta ---------- */
.p-cta { margin: var(--space-section) var(--gutter); padding: clamp(2.5rem, 6vw, 5rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.p-cta h2 {
  margin: 0 0 1rem; font-family: var(--font-display); font-weight: 820; font-stretch: 112%;
  font-size: clamp(2.2rem, 1rem + 4.5vw, 5rem); line-height: .95; letter-spacing: -.045em;
}
.p-cta h2:hover .outline { color: var(--accent); }
.p-cta p { color: var(--muted); margin: 0 0 2rem; }
.p-cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 900px) {
  .p-facts { grid-template-columns: 1fr 1fr; }
  .p-facts div:nth-child(2) { border-right: 0; }
  .p-facts div:nth-child(3) { padding-left: 0; }
  .p-facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .p-block { grid-template-columns: 1fr; }
  .p-block > h2 { position: static; }
  .p-block > :not(h2) { grid-column: 1; }
}
@media (max-width: 560px) {
  /* min-height şart: tour.js çerçeveye .tv360 ekleyince `height:100%` (tour.css) bu yüksekliği eziyor; min-height yoksa çerçeve 2px'e çöküyordu */
  .p-viewer__frame, .p-viewer__frame.tv360 { height: 70svh; min-height: 70svh; }
  .p-facts { grid-template-columns: 1fr; }
  .p-facts div, .p-facts div:not(:first-child) { padding: 1.2rem 0; border-right: 0; }
  .p-facts div + div { border-top: 1px solid var(--line); }
}
