/* Ana sayfa 3D karşılama alanı (template-parts/hero-3d.php). Kütüphane kullanılmaz; yalnızca CSS 3D dönüşümleri. */
.hero-3d { --h3d-ink: #30291f; --h3d-gold: #b8924a; --h3d-paper: #f4ede2; --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px; position: relative; overflow: hidden; min-height: clamp(560px, 46vw, 720px); background: radial-gradient(120% 90% at 72% 45%, #fbf6ee 0%, #f1e6d6 46%, #e4d3bb 100%); color: var(--h3d-ink); isolation: isolate; }
.hero-3d__backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-3d__word { position: absolute; top: 50%; left: 58%; transform: translate(calc(-50% + var(--px) * -0.6), calc(-54% + var(--py) * -0.6)); font: 600 clamp(140px, 19vw, 300px)/1 var(--font-display); letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1px #b8924a38; white-space: nowrap; user-select: none; }
.hero-3d__glow { position: absolute; top: 50%; left: 70%; width: min(62vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fff9ef 0%, #fff4e100 62%); }

.hero-3d__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; min-height: inherit; padding-block: 56px 72px; }
.hero-3d__copy { position: relative; z-index: 2; max-width: 520px; }
.hero-3d__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; font-size: 12px; line-height: 1.8; letter-spacing: .15em; font-weight: 600; }
.hero-3d__eyebrow > span:first-child { display: inline-block; width: 24px; height: 1px; background: currentColor; }
.hero-3d__edition { letter-spacing: .06em; font-weight: 400; }
.hero-3d__title { margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(50px, 5.4vw, 86px); line-height: 1.01; letter-spacing: -.015em; font-weight: 500; color: inherit; text-wrap: balance; }
.hero-3d__text { max-width: 360px; margin: 0 0 34px; font-size: 13px; line-height: 1.9; }
.hero-3d__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.hero-3d__button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 49px; padding: 12px 20px; border: 1px solid var(--h3d-ink); background: var(--h3d-ink); color: #fffaf1; font-size: 12px; font-weight: 600; letter-spacing: .025em; text-decoration: none; transition: background .2s, transform .2s; }
.hero-3d__button:hover { background: #574936; color: #fff; transform: translateY(-2px); }
.hero-3d__button span { font-size: 19px; font-weight: 400; }
.hero-3d__link { position: relative; padding-block: 6px; color: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.hero-3d__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--h3d-gold); transform-origin: left; transition: transform .25s; }
.hero-3d__link:hover::after { transform: scaleX(.4); }
.hero-3d a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

/* Sahne */
.hero-3d__stage { position: relative; height: clamp(360px, 36vw, 560px); perspective: 1300px; perspective-origin: 50% 38%; }
.hero-3d__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: translate3d(var(--px), var(--py), 0) rotateX(var(--rx)) rotateY(var(--ry)); }
.hero-3d__podium { position: absolute; left: 50%; bottom: 9%; width: 78%; aspect-ratio: 1; transform: translate(-50%, 50%) rotateX(78deg); transform-style: preserve-3d; }
.hero-3d__disc { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, #fffaf2 0%, #f1e4cf 55%, #e2cfb1 70%, #e2cfb100 72%); box-shadow: 0 0 0 1px #b8924a2e; }
.hero-3d__ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed #b8924a8c; animation: h3d-spin 38s linear infinite; }
.hero-3d__ring--outer { inset: 0; border: 1px solid #b8924a33; border-top-color: #b8924ab3; animation-duration: 16s; animation-direction: reverse; }
.hero-3d__shadow { position: absolute; left: 50%; top: 50%; width: 60%; height: 46%; transform: translate(-50%, -50%) translateZ(1px); border-radius: 50%; background: radial-gradient(closest-side, #3a2414b3, #3a241400); filter: blur(6px); animation: h3d-shadow 6s ease-in-out infinite; }
.hero-3d__orbit { position: absolute; left: 50%; bottom: 9%; width: 70%; aspect-ratio: 1; transform: translate(-50%, 50%) rotateX(78deg); transform-style: preserve-3d; container-type: inline-size; }
.hero-3d__spark { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #d9b56f; box-shadow: 0 0 12px 3px #e9c98a99; animation: h3d-orbit 14s linear infinite; animation-delay: calc(var(--i) * -2.333s); }
.hero-3d__float { position: absolute; left: 50%; bottom: 15%; width: 84%; transform: translateX(-50%); transform-style: preserve-3d; animation: h3d-float 6s ease-in-out infinite; }
.hero-3d__shoe { position: relative; transform-style: preserve-3d; animation: h3d-step 12s cubic-bezier(.45, .05, .35, 1) infinite; }
.hero-3d__img, .hero-3d__layer { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.hero-3d__img { position: relative; transform: translateZ(1px); filter: drop-shadow(0 18px 18px #3a24142e); }
.hero-3d__layer { position: absolute; inset: 0; transform: translateZ(calc(var(--z) * -3.2px)); filter: brightness(.42) saturate(1.2); }
.hero-3d__shine { position: absolute; inset: 0; transform: translateZ(2px); background: linear-gradient(105deg, transparent 38%, #fff7e670 48%, #ffffff00 58%); background-size: 260% 100%; -webkit-mask: var(--shoe-mask) center / 100% 100% no-repeat; mask: var(--shoe-mask) center / 100% 100% no-repeat; mix-blend-mode: soft-light; animation: h3d-shine 6s ease-in-out infinite; pointer-events: none; }

/* Açılış: ayakkabı yukarıdan dönerek iner, yazı aşağıdan gelir */
.hero-3d.is-ready .hero-3d__copy > * { animation: h3d-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-3d.is-ready .hero-3d__copy > :nth-child(2) { animation-delay: .08s; }
.hero-3d.is-ready .hero-3d__copy > :nth-child(3) { animation-delay: .16s; }
.hero-3d.is-ready .hero-3d__copy > :nth-child(4) { animation-delay: .24s; }
.hero-3d.is-ready .hero-3d__stage { animation: h3d-enter 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.hero-3d.is-paused *, .hero-3d.is-paused *::before { animation-play-state: paused !important; }

@keyframes h3d-spin { to { transform: rotate(360deg); } }
@keyframes h3d-orbit { from { transform: rotate(0deg) translateX(50cqw) rotate(0deg); } to { transform: rotate(360deg) translateX(50cqw) rotate(-360deg); } }
@keyframes h3d-float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-26px); } }
@keyframes h3d-shadow { 0%, 100% { transform: translate(-50%, -50%) translateZ(1px) scale(1); opacity: 1; } 50% { transform: translate(-50%, -50%) translateZ(1px) scale(.76); opacity: .55; } }
@keyframes h3d-step {
    0%, 100% { transform: rotateY(-24deg) rotateX(8deg) rotateZ(-1deg); }
    18% { transform: rotateY(-8deg) rotateX(10deg) rotateZ(-7deg); }
    36% { transform: rotateY(14deg) rotateX(6deg) rotateZ(1deg); }
    50% { transform: rotateY(28deg) rotateX(9deg) rotateZ(0deg); }
    68% { transform: rotateY(10deg) rotateX(7deg) rotateZ(6deg); }
    84% { transform: rotateY(-14deg) rotateX(9deg) rotateZ(1deg); }
}
@keyframes h3d-shine { 0%, 20% { background-position: 120% 0; } 70%, 100% { background-position: -40% 0; } }
@keyframes h3d-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes h3d-enter { from { opacity: 0; transform: translateY(-70px) rotateY(-70deg) scale(.86); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .hero-3d { min-height: auto; }
    .hero-3d__inner { grid-template-columns: 1fr; gap: 0; padding-block: 16px 48px; }
    .hero-3d__stage { order: -1; height: 310px; margin-bottom: 24px; }
    .hero-3d__podium { bottom: 22%; width: 80%; }
    .hero-3d__orbit { bottom: 22%; width: 72%; }
    .hero-3d__float { bottom: 30%; width: 78%; }
    .hero-3d__copy { max-width: 560px; text-align: left; }
    .hero-3d__title { font-size: clamp(38px, 8.5vw, 54px); }
    .hero-3d__word { left: 50%; top: 22%; font-size: 26vw; }
    .hero-3d__glow { left: 50%; top: 22%; width: 85vw; }
}
@media (max-width: 600px) {
    .hero-3d__inner { padding: 12px 20px 40px; }
    .hero-3d__stage { height: 270px; margin-bottom: 20px; }
    .hero-3d__float { width: 82%; bottom: 28%; }
    .hero-3d__podium { width: 84%; bottom: 20%; }
    .hero-3d__orbit { width: 76%; bottom: 20%; }
    .hero-3d__eyebrow { margin-bottom: 14px; }
    .hero-3d__text { margin-bottom: 22px; }
}
/* Under the 3D hero: a slim trust strip, then the collection cards, then the campaign carousel. */
.trust.trust--strip { margin-block: 0; padding-block: 14px; border-top: 0; }
.trust--strip .trust__icon { width: 40px; height: 40px; }
.home-cards + .campaign-carousel { margin-top: clamp(48px, 6vw, 88px); }
@media (max-width: 900px) {
    .trust.trust--strip { grid-template-columns: 1fr 1fr; padding-block: 6px; }
    .trust--strip .trust__item { gap: 10px; padding: 12px 8px; }
    .trust--strip .trust__item + .trust__item { border-top: 0; }
    .trust--strip .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .trust--strip .trust__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
    .trust--strip .trust__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .trust--strip .trust__icon { width: 34px; height: 34px; }
    .trust--strip .trust__text strong { font-size: 12px; }
    .trust--strip .trust__text > span { font-size: 11px; }
}
/* Phones: one row of icon + short label; the long descriptions stay on wider screens. */
.trust__short { display: none; }
@media (max-width: 640px) {
    .trust.trust--strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-block: 2px; }
    .trust--strip .trust__item, .trust--strip .trust__item:nth-child(even) { flex-direction: column; gap: 6px; padding: 10px 2px; text-align: center; }
    .trust--strip .trust__item:nth-child(n+3) { border-top: 0; }
    .trust--strip .trust__item + .trust__item { border-left: 1px solid var(--line); }
    .trust--strip .trust__item:last-child:nth-child(odd) { grid-column: auto; }
    .trust--strip .trust__icon { width: 30px; height: 30px; }
    .trust--strip .trust__text { display: none; }
    .trust--strip .trust__item .trust__short { display: block; color: var(--ink); font-size: 10.5px; font-weight: 600; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-3d *, .hero-3d *::before { animation: none !important; }
    .hero-3d__shoe { transform: rotateY(-18deg) rotateX(8deg); }
    .hero-3d__scene { transform: none; }
}
