/* Otomatik üretildi: assets/css/hero.css aynası — elle düzenlemeyin */
/* ==========================================================================
   İç sayfa hero'su (views/site/partials/page-hero.php)
   Tam genişlik fotoğraf + koyu perde, her iki temada da koyu zemin.
   Görselsiz sayfalarda amber ışıklı koyu zemin ve ince rota deseni.
   ========================================================================== */
.ph {
  --ph-ink: 7, 8, 8;
  position: relative; isolation: isolate; display: flex; overflow: hidden;
  min-height: clamp(380px, 50vh, 520px);
  color: #fff; background: #0b0c0c;
}
.ph--facts { min-height: clamp(420px, 56vh, 580px) }
.ph::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(-90deg, var(--amber) 0%, rgba(255, 188, 64, .35) 38%, transparent 70%); pointer-events: none }

/* --- arka plan ----------------------------------------------------------- */
.ph__bg { position: absolute; inset: 0; z-index: -1 }
.ph__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--ph-pos, center); transform-origin: 60% 50%; animation: ph-zoom 2.4s var(--out) both }
@keyframes ph-zoom { from { transform: scale(1.09) } to { transform: scale(1) } }
.ph__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(-90deg, rgba(var(--ph-ink), .9) 0%, rgba(var(--ph-ink), .78) 30%, rgba(var(--ph-ink), .4) 62%, rgba(var(--ph-ink), .06) 100%),
    linear-gradient(0deg, rgba(var(--ph-ink), .82) 0%, rgba(var(--ph-ink), .2) 38%, rgba(var(--ph-ink), 0) 55%),
    linear-gradient(-180deg, rgba(var(--ph-ink), .55) 0%, rgba(var(--ph-ink), 0) 24%);
}
/* amber ışık + film greni: her fotoğrafa aynı sıcak, kurumsal tonu verir */
.ph__fx {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 8% 108%, rgba(255, 188, 64, .2), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light; opacity: .55;
}
/* görselsiz sürüm */
.ph--plain .ph__bg {
  background:
    radial-gradient(1100px 520px at 88% -18%, rgba(255, 188, 64, .2), transparent 60%),
    radial-gradient(700px 400px at -6% 120%, rgba(255, 188, 64, .1), transparent 62%),
    linear-gradient(-160deg, #151716 0%, #0b0c0c 60%);
}
.ph--plain .ph__bg::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' fill='none' stroke='%23ffbc40' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M-20 520 C 220 470 300 300 520 320 S 820 520 1000 380 S 1180 160 1240 120' stroke-dasharray='2 9' stroke-linecap='round'/%3E%3Cpath d='M-20 580 C 260 560 420 420 640 450 S 980 600 1240 470' stroke-opacity='.08'/%3E%3C/svg%3E") right bottom / 1200px 600px no-repeat,
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(-90deg, transparent 0%, #000 45%); mask-image: linear-gradient(-90deg, transparent 0%, #000 45%);
}

/* --- içerik -------------------------------------------------------------- */
.ph__in { display: flex; flex-direction: column; width: 100%; padding-block: 24px clamp(30px, 4vw, 46px) }
.ph__nav { display: flex; align-items: center; gap: 14px; min-width: 0 }
.ph__back {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 9px 8px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 650; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .25s, transform .35s var(--out);
}
.ph__back:hover { background: rgba(255, 255, 255, .15); transform: translateX(2px) }
.ph__back-i { width: 15px; height: 15px; transform: rotate(-90deg) }
.ph__crumbs { min-width: 0 }
.ph__crumbs ol { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden }
.ph__crumbs li { display: flex; align-items: center; min-width: 0 }
.ph__crumbs li + li::before { content: ""; width: 4px; height: 4px; margin-left: 7px; border-radius: 50%; background: currentColor; opacity: .55; flex: none }
.ph__crumbs a { transition: color .2s }
.ph__crumbs a:hover { color: #fff }
.ph__crumbs .i { width: 14px; height: 14px }
.ph__crumbs [aria-current] { color: rgba(255, 255, 255, .9); font-weight: 600; overflow: hidden; text-overflow: ellipsis }

.ph__body { margin-top: auto; padding-top: clamp(44px, 7vh, 84px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end }
.ph--product .ph__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; padding-top: clamp(30px, 5vh, 60px) }
.ph__copy { max-width: 760px }
.ph__kick { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 750 .72rem/1.4 var(--f); letter-spacing: .2em; text-transform: uppercase; color: var(--amber) }
.ph__kick::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(-90deg, var(--amber), rgba(255, 188, 64, .2)) }
.ph__h { color: #fff; font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -.045em; max-width: 17ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .3) }
.ph__lead { margin-top: 18px; max-width: 54ch; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.65; color: rgba(255, 255, 255, .8) }
.ph__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px }

/* bilgi şeridi */
.ph__facts {
  display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-top: clamp(30px, 4vw, 46px); padding: 6px; border-radius: 18px;
  background: rgba(12, 13, 13, .46); border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .8);
}
.ph__facts li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; font-size: .84rem; font-weight: 650; color: #fff; white-space: nowrap }
.ph__facts li + li { border-right: 1px solid rgba(255, 255, 255, .11) }
.ph__fi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 188, 64, .15); color: var(--amber); flex: none }
.ph__fi .i { width: 17px; height: 17px }

/* araç sahnesi (arka planı temizlenmiş PNG) */
.ph--product .ph__bg img { filter: blur(3px) saturate(.8) brightness(.62) }
.ph__stage { position: relative; display: grid; place-items: center }
.ph__stage::after { content: ""; position: absolute; right: 12%; left: 12%; bottom: 6%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); z-index: -1; filter: blur(6px) }
.ph__stage img { width: 100%; max-height: 360px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)) }

/* --- tablet ---------------------------------------------------------------- */
@media (max-width: 999px) {
  .ph--product .ph__body { grid-template-columns: 1fr }
  .ph__stage { order: -1; max-width: 560px; justify-self: center; width: 100% }
  .ph__stage img { max-height: 260px }
}

/* --- mobil: kompakt, içeriğe göre yükseklik — başlığın üstünde boş fotoğraf alanı yok.
   Fotoğraf sağ üstte görünür kalır, metin tam genişlikte okunaklı perdenin üstünde. ---- */
@media (max-width: 760px) {
  .ph, .ph--img, .ph--facts { min-height: 0 }
  .ph__bg img { object-position: var(--ph-pos, center) }
  .ph__bg::after {
    background:
      linear-gradient(-180deg, rgba(var(--ph-ink), .38) 0%, rgba(var(--ph-ink), .5) 24%, rgba(var(--ph-ink), .82) 54%, rgba(var(--ph-ink), .95) 100%),
      linear-gradient(-90deg, rgba(var(--ph-ink), .35) 0%, rgba(var(--ph-ink), 0) 70%);
  }
  .ph__fx { background: radial-gradient(420px 260px at 0% 100%, rgba(255, 188, 64, .16), transparent 62%) }
  .ph__in { padding-block: 14px 22px }
  .ph__back { display: none }
  .ph__nav { min-height: 28px }
  .ph__crumbs ol { font-size: .72rem; gap: 6px }
  .ph__crumbs li + li::before { margin-left: 6px }
  .ph__body, .ph--plain .ph__body { margin-top: 0; padding-top: 30px; gap: 20px }
  .ph--product .ph__body { padding-top: 14px }
  .ph__kick {
    margin-bottom: 12px; padding: 6px 9px 6px 11px; gap: 7px; border-radius: 999px;
    font-size: .6rem; letter-spacing: .16em;
    background: rgba(255, 188, 64, .12); border: 1px solid rgba(255, 188, 64, .28);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .ph__kick::before { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 188, 64, .2) }
  .ph__h { font-size: clamp(1.85rem, 8.4vw, 2.4rem); line-height: 1.06; letter-spacing: -.04em; max-width: none }
  .ph__lead { margin-top: 10px; font-size: .92rem; line-height: 1.55; color: rgba(255, 255, 255, .78); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
  .ph__acts { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
  .ph__acts .btn { min-height: 46px; padding-inline: 12px; font-size: .82rem }
  .ph__acts .btn:only-child { grid-column: 1 / -1 }
  .ph__facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 20px; padding: 4px; border-radius: 14px; gap: 0 }
  .ph__facts li { padding: 7px 8px; font-size: .75rem; gap: 8px; white-space: normal; line-height: 1.25 }
  .ph__facts li + li { border-right: 0 }
  .ph__facts li:nth-child(even) { border-right: 1px solid rgba(255, 255, 255, .1) }
  .ph__facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1) }
  .ph__facts li:last-child:nth-child(odd) { grid-column: 1 / -1 }
  .ph__fi { width: 28px; height: 28px; border-radius: 9px }
  .ph__fi .i { width: 15px; height: 15px }
  .ph__stage img { max-height: 180px }
}

@media (prefers-reduced-motion: reduce) {
  .ph__bg img { animation: none }
}
.no-motion .ph__bg img { animation: none }
