/*
  OrvaPro Neo — Hero v4 "foto kart-slider" (nxh namespace)
  bayigram-tarzı: her slide KENDİ full-bleed fotoğrafını taşır + sol koyu scrim + beyaz yazı.
  Renk atmosferi fotoğraftan gelir → her slide farklı hisseder. Metin her zaman beyaz.
  Eski .orvix-hero__* kurallarıyla çakışmaması için tüm iç yapı .nxh-* kullanır.
*/

section.orvix-hero.orvix-hero--neo.nxh-on {
    position: relative;
    padding: clamp(0.9rem, 1.8vw, 1.6rem) 0 0;
}

.nxh-stage {
    position: relative;
    z-index: 1;
}

/* ---------- Kart (foto konteyneri) ---------- */

.nxh-card {
    position: relative;
    overflow: hidden;
    border-radius: clamp(1.1rem, 2vw, 1.6rem);
    min-height: clamp(24rem, 40vw, 28rem);
    background: #0b1633;
    box-shadow: 0 24px 60px -28px rgba(11, 33, 102, 0.55);
    isolation: isolate;
}

/* alt vinyet: alt bardaki yazı/oklar her fotoğrafta okunur kalsın */
.nxh-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 10, 28, 0.5) 100%);
    pointer-events: none;
}

/* ---------- Slide'lar ---------- */

.nxh-slides {
    position: relative;
    min-height: inherit;
}

.nxh-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(1.7rem, 3.4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3.4rem, 5vw, 4rem);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    visibility: hidden;
}

.nxh-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 1;
}

/* full-bleed fotoğraf */
.nxh-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transform: scale(1.02);
}

.nxh-slide__bg--right {
    object-position: right center;
}

/* okunabilirlik scrim'i — her slide kendi rengini taşır (sol koyu → sağ saydam) */
.nxh-slide__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.nxh-slide__scrim--1 {
    background: linear-gradient(100deg, rgba(7, 16, 40, 0.95) 0%, rgba(11, 33, 102, 0.80) 38%, rgba(11, 33, 102, 0.34) 68%, rgba(37, 99, 235, 0.14) 100%);
}

.nxh-slide__scrim--2 {
    background: linear-gradient(100deg, rgba(22, 10, 42, 0.94) 0%, rgba(59, 20, 93, 0.74) 42%, rgba(124, 58, 237, 0.26) 78%, rgba(236, 120, 60, 0.12) 100%);
}

.nxh-slide__scrim--3 {
    background: linear-gradient(100deg, rgba(5, 20, 38, 0.95) 0%, rgba(9, 46, 68, 0.82) 40%, rgba(6, 95, 70, 0.40) 74%, rgba(16, 201, 143, 0.16) 100%);
}

.nxh-slide__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.8rem, 1.5vw, 1.05rem);
    max-width: min(58%, 34rem);
    min-width: 0;
}

/* ---------- Tipografi (hep beyaz) ---------- */

.nxh-chip,
.nxh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nxh-chip > i,
.nxh-eyebrow > i {
    font-size: 0.95rem;
    line-height: 1;
}

.nxh-eyebrow--gold > i {
    color: #fcd34d;
}

.nxh-eyebrow--mint > i {
    color: #6ee7b7;
}

.nxh-title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.95rem, 4vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.018em;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(4, 10, 28, 0.35);
}

.nxh-rotor {
    display: inline-grid;
    vertical-align: baseline;
    text-align: left;
}

.nxh-rotor__word {
    grid-area: 1 / 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0.55em);
    transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
    color: #a7f3d0;
    background: linear-gradient(92deg, #7dd3fc 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}

.nxh-rotor__word.is-active {
    opacity: 1;
    transform: translateY(0);
}

.nxh-rotor__word.is-leaving {
    opacity: 0;
    transform: translateY(-0.55em);
}

.nxh-sub {
    margin: 0;
    max-width: 30rem;
    font-size: clamp(0.93rem, 1.35vw, 1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 12px rgba(4, 10, 28, 0.4);
}

/* ---------- CTA satırı ---------- */

.nxh-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.7rem;
    width: 100%;
}

.nxh-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.74rem 1.4rem;
    border: 0;
    border-radius: 0.85rem;
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0b2166;
    background: #fff;
    box-shadow: 0 12px 26px -12px rgba(4, 16, 48, 0.55);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nxh-btn-light:hover,
.nxh-btn-light:focus-visible {
    color: #0b2166;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -12px rgba(4, 16, 48, 0.65);
}

.nxh-btn-light > i {
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nxh-btn-light:hover > i {
    transform: translateX(3px);
}

/* Sipariş takip: cam hap form (mevcut id/name korunur) */
.nxh-order {
    flex: 1 1 15rem;
    max-width: 22rem;
    min-width: 0;
}

.nxh-order__field {
    display: flex;
    align-items: stretch;
    height: 100%;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nxh-order__field:focus-within {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.2);
}

.nxh-order__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.68rem 0.95rem;
    border: 0;
    background: transparent;
    font-size: 0.87rem;
    font-weight: 500;
    color: #fff;
    outline: none;
}

.nxh-order__input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.nxh-order__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.nxh-order__btn:hover,
.nxh-order__btn:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}

/* ---------- Platform mini ikonları (slide 1 alt) ---------- */

.nxh-plats {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nxh-plats__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: #fff;
    color: var(--tone, #2563eb);
    font-size: 1.05rem;
    box-shadow: 0 8px 18px -8px rgba(4, 16, 48, 0.55);
}

.nxh-plats__dot + .nxh-plats__dot {
    margin-left: -0.55rem;
}

.nxh-plats__hint {
    margin-left: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(4, 10, 28, 0.5);
}

/* ---------- Foto üstü floating rozetler (sağ) ---------- */

.nxh-slide__float {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    right: clamp(1.4rem, 4vw, 3.4rem);
    left: 56%;
    pointer-events: none;
}

.nxh-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border-radius: 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    color: #0f1b33;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px -14px rgba(4, 16, 48, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nxh-float > i {
    font-size: 1rem;
    line-height: 1;
}

.nxh-float--a {
    top: 15%;
    right: 9%;
    left: auto;
}

.nxh-float--a > i {
    color: #10c98f;
}

.nxh-float--b {
    bottom: 24%;
    right: 9%;
}

.nxh-float--b > i {
    color: #2563eb;
}

.nxh-float--flag {
    top: 30%;
    right: 14%;
    padding: 0;
    background: none;
    box-shadow: none;
    font-size: clamp(3rem, 5vw, 4.6rem);
    filter: drop-shadow(0 16px 28px rgba(4, 16, 48, 0.5));
}

.nxh-float--apps {
    top: 24%;
    left: 8%;
    gap: 0.5rem;
    padding: 0;
    background: none;
    box-shadow: none;
}

.nxh-float__app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.85rem;
    background: #fff;
    color: var(--tone, #2563eb);
    font-size: 1.45rem;
    box-shadow: 0 14px 30px -12px rgba(4, 16, 48, 0.58);
}

/* ---------- Alt bar (sol ok · ad+noktalar · sağ ok) ---------- */

.nxh-card__bar {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: clamp(0.7rem, 1.5vw, 1rem) clamp(1rem, 2.4vw, 1.7rem);
}

.nxh-card__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.nxh-card__name {
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.nxh-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nxh-card__arrow:hover,
.nxh-card__arrow:focus-visible {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.nxh-card__dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nxh-card__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.nxh-card__dot.is-active {
    width: 1.5rem;
    background: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .nxh-card {
        min-height: 17.5rem;
    }

    .nxh-slides {
        min-height: 17.5rem;
    }

    .nxh-slide {
        align-items: flex-end;
        padding: 1.15rem 1.25rem 3.9rem;
    }

    .nxh-slide__content {
        max-width: 100%;
        gap: 0.6rem;
    }

    /* bayigram-kompakt: mobilde sadece eyebrow + başlık + ana buton */
    .nxh-slide__float,
    .nxh-slide .nxh-sub,
    .nxh-slide .nxh-order,
    .nxh-slide__content .nxh-plats {
        display: none;
    }

    .nxh-title {
        font-size: 1.62rem;
        line-height: 1.12;
    }

    .nxh-chip,
    .nxh-eyebrow {
        font-size: 0.72rem;
        padding: 0.34rem 0.72rem;
    }

    .nxh-btn-light {
        padding: 0.62rem 1.15rem;
        font-size: 0.86rem;
    }

    .nxh-card__bar {
        padding: 0.6rem 0.9rem;
    }

    .nxh-card__arrow {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.2rem;
    }

    /* mobilde scrim dikey: foto üstte görünür, yazı altta okunur (renk foto'dan gelir) */
    .nxh-slide__scrim--1,
    .nxh-slide__scrim--2,
    .nxh-slide__scrim--3 {
        background: linear-gradient(178deg, rgba(6, 14, 36, 0.28) 0%, rgba(6, 14, 36, 0.34) 40%, rgba(6, 14, 36, 0.72) 74%, rgba(4, 10, 28, 0.92) 100%);
    }

    .nxh-slide__scrim--2 {
        background: linear-gradient(178deg, rgba(22, 10, 42, 0.28) 0%, rgba(30, 14, 54, 0.36) 40%, rgba(24, 12, 48, 0.74) 74%, rgba(14, 8, 32, 0.92) 100%);
    }

    .nxh-slide__scrim--3 {
        background: linear-gradient(178deg, rgba(5, 20, 38, 0.30) 0%, rgba(6, 30, 46, 0.38) 40%, rgba(5, 26, 40, 0.76) 74%, rgba(3, 14, 26, 0.93) 100%);
    }

    .nxh-card::after {
        height: 55%;
    }
}

@media (max-width: 575.98px) {
    .nxh-title {
        font-size: 1.5rem;
    }

    .nxh-card__name {
        display: none;
    }
}

/* ---------- Animasyonlar ---------- */

@media (prefers-reduced-motion: no-preference) {
    .nxh-anim {
        opacity: 0;
        animation: nxhUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
        animation-delay: var(--nxh-d, 0s);
    }

    /* aktif slide fotoğrafına yumuşak ken-burns zoom */
    .nxh-slide.is-active .nxh-slide__bg {
        animation: nxhKen 8s ease-out both;
    }

    .nxh-float--a {
        animation: nxhFloat 6s ease-in-out infinite;
    }

    .nxh-float--b {
        animation: nxhFloat 7s ease-in-out 0.8s infinite;
    }

    .nxh-float--flag {
        animation: nxhFloat 6.5s ease-in-out infinite;
    }

    .nxh-float--apps {
        animation: nxhFloat 6.5s ease-in-out 0.4s infinite;
    }
}

@keyframes nxhUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nxhKen {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1.02);
    }
}

@keyframes nxhFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nxh-rotor__word,
    .nxh-slide {
        transition: none;
    }

    .nxh-slide__bg {
        transform: scale(1.02);
        animation: none;
    }
}
