/* Main page hero — home-only extension of the shared pillar hero contract. */

/* ⛔ DOKUNULMAZLIK — min-height: 100dvh: mobil URL bar açık/kapalı dinamik tam ekran. Değiştirme, onay gerektir. */
.yo-hero--home {
    min-height: 100dvh; /* ⛔ değiştirme */
    grid-template-columns: minmax(0, 1fr);
    /* padding-block-end: yo-core 175px override — ana sayfa alignItems:end ile zaten alta yapışık */
    padding-block-end: clamp(48px, 6svh, 72px);
}

.yo-hero--home .yo-hero__content {
    width: 100%;
    padding: 0 4px clamp(32px, 5svh, 52px);
    grid-template-columns: minmax(0, 1fr);
}

.yo-hero--home .yo-hero__title-sub {
    margin-bottom: 6px;
}

.yo-hero--home .yo-hero__eyebrow {
    margin-bottom: 6px;
}

.yo-hero--home .yo-hero__strip-wrap {
    margin-top: clamp(12px, 1.6svh, 18px);
}

.yo-hero--home .yo-hero__copy {
    /* transform kaldırıldı — search/actions ile birlikte alt alana iner */
    width: 100%;
    min-width: 0;
    justify-items: stretch;
    padding-top: 10px;
    display: grid;
    gap: 0;
    row-gap: 4px;
}

.yo-hero--home .yo-hero__image {
    object-position: center 72%;
}

.yo-hero--home .yo-hero__title {
    font-size: clamp(3.2rem, 5vw, 4.2rem);
    line-height: .98;
}















/* CTA Buttons */

/* === Hero search bar — header altı sabit === */
.yo-hero__search-bar {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding: 10px 16px;
    z-index: 12;
    pointer-events: none;
    overflow: visible;
}

.yo-hero__search-bar .yo-hero__search {
    pointer-events: auto;
}

/* === Hero içi search === */
.yo-hero__search {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    width: min(350px, 100%);
    height: 40px;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 26px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.yo-hero__search input,
.yo-hero__search input[type="search"] {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 12px 0 20px;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    outline: none;
    box-shadow: none;
}

.yo-hero__search input::placeholder {
    color: rgba(255, 255, 255, .5);
    font-style: italic;
}

.yo-hero__search button {
    flex-shrink: 0;
    height: 28px;
    min-height: 0;
    margin-right: 7px;
    padding: 0 18px;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: #C4622D;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.yo-hero__search-results[hidden] {
    display: none;
}

.yo-hero__search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: grid;
    gap: 8px;
    width: min(350px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid rgba(26, 82, 82, .14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
    transform: translateX(-50%);
    z-index: 20;
}

.yo-hero__search-item {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 5px;
    border: 1px solid rgba(26, 82, 82, .08);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
}

.yo-hero__search-item:hover { background: #f7f9f9; }

.yo-hero__search-media {
    position: relative;
    display: block;
    min-width: 50px;
    max-width: 50px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f5f6;
}

.yo-hero__search-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yo-hero__search-body { display: grid; gap: 3px; min-width: 0; }
.yo-hero__search-tag { color: rgba(26,82,82,.58); font-size: 11px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.yo-hero__search-title { color: #3a3a3a; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* === Hero actions (CTA — search altı) === */
.yo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 14px;
}

.yo-hero--home .yo-hero__actions {
    margin-top: clamp(22px, 2.8svh, 32px);
}

.yo-hero__action-btn {
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: rgba(255, 255, 255, .88);
}

.yo-hero__action-btn:hover {
    border-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.yo-hero__action-btn--primary {
    border-color: #a14d1c;
    background: #a14d1c;
    color: #fff;
}

.yo-hero__action-btn--primary:hover {
    border-color: #d97845;
    background: #a7501f;
}

/* Mobil search trigger butonu — desktop'ta gizli */
.yo-hero__search-trigger {
    display: none;
}


@media (max-width: 720px) {
    /* Search bar konumu: header altı, logo hizası */
    .yo-hero--home .yo-hero__search-bar {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        box-sizing: border-box;
        pointer-events: none;
        overflow: visible;
    }
    .yo-hero--home .yo-hero__search-bar .yo-hero__search-trigger,
    .yo-hero--home .yo-hero__search-bar .yo-hero__search {
        pointer-events: auto;
    }
    /* Trigger: yuvarlak, glass, turuncu */
    .yo-hero__search-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(196, 98, 45, .5);
        border-radius: 50%;
        background: rgba(196, 98, 45, .55);
        backdrop-filter: blur(12px) saturate(1.6);
        -webkit-backdrop-filter: blur(12px) saturate(1.6);
        color: #fff;
        cursor: pointer;
        flex-shrink: 0;
    }
    .yo-hero__search-trigger svg {
        width: 18px;
        height: 18px;
    }
    .yo-hero__search-trigger span {
        display: none;
    }
    /* Form: trigger açılana kadar gizli — opacity+scale transition, layout paint yok */
    .yo-hero__search-bar .yo-hero__search {
        opacity: 0;
        transform: scale(.92) translateX(8px);
        pointer-events: none;
        transition: opacity 200ms ease, transform 200ms ease;
        width: 100%;
        max-width: 100%;
        height: 40px;
    }
    .yo-hero__search-bar:not(.yo-search-open) .yo-hero__search-trigger {
        opacity: 1;
        transform: scale(1);
        transition: opacity 180ms ease, transform 180ms ease;
    }
    .yo-hero__search-bar.yo-search-open .yo-hero__search-trigger {
        opacity: 0;
        transform: scale(.8);
        pointer-events: none;
        position: absolute;
        transition: opacity 160ms ease, transform 160ms ease;
    }
    .yo-hero__search-bar.yo-search-open .yo-hero__search {
        opacity: 1;
        transform: scale(1) translateX(0);
        pointer-events: auto;
    }
}

@media (max-width: 720px) {
    .yo-hero--home .yo-hero__title br {
        display: none;
    }
    .yo-hero--home .yo-hero__title {
        font-size: clamp(3.2rem, 10vw, 3.8rem);
        max-width: 100%;
    }
    .yo-hero--home .yo-hero__title,
    .yo-hero--home .yo-hero__subtitle,
    .yo-hero--home .yo-hero__text {
        width: 100%;
        max-width: 100%;
    }
    .yo-hero--home .yo-hero__actions {
        margin-top: 14px;
        justify-content: center;
    }
    .yo-hero--home .yo-hero__strip-wrap {
        display: none;
    }
    .yo-hero__search input {
        font-size: 13px;
    }
    .yo-hero__actions {
        gap: 7px;
    }
    /* Mobil scroll yapışma fix: GPU layer açan filter+scale kaldır */
    .yo-hero--home .yo-hero__image {
        filter: none;
        transform: none;
    }
}

/* H1 alt italik vurgu */
.yo-hero__title-sub {
    margin-top: 10px;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, .82);
    line-height: 1.4;
}

.yo-hero__subtitle-dot {
    color: #C4622D;
    font-weight: 700;
}

/* Arrow: hero alt ortası */
.yo-hero--home .yo-hero__arrow {
    top: auto;
    bottom: 24px;
}

/* === Sticky header search === */
.yo-sticky-search {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 34px;
    height: 34px;
}

.yo-sticky-search-active .yo-sticky-search {
    display: flex;
}

.yo-sticky-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.yo-sticky-search__btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.yo-sticky-search__btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.yo-sticky-search__form {
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: hidden;
    height: 34px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    transition: width 240ms ease, opacity 200ms ease;
    pointer-events: none;
}

.yo-sticky-search--open .yo-sticky-search__form {
    width: min(400px, calc(100vw - 80px));
    opacity: 1;
    pointer-events: auto;
}

.yo-sticky-search__form input[type="search"],
.yo-sticky-search__form input {
    width: 100%;
    height: 100%;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.yo-sticky-search__form input::placeholder {
    color: rgba(255, 255, 255, .7);
    font-style: italic;
}

.yo-sticky-search__form input:focus,
.yo-sticky-search__form input:focus-visible {
    outline: 0;
    box-shadow: none;
}

/* Sticky search canlı sonuçlar — hero search results ile aynı stil */
.yo-sticky-search__results {
    position: fixed;
    top: 60px;
    right: 36px;
    display: grid;
    gap: 8px;
    width: min(420px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid rgba(26, 82, 82, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
    z-index: 9999;
}

.yo-sticky-search__results[hidden] {
    display: none;
}

/* Sticky results içindeki item'lar — hero search ile aynı */
.yo-sticky-search__results .yo-hero__search-item {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 5px;
    border: 1px solid rgba(26, 82, 82, .08);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
}

.yo-sticky-search__results .yo-hero__search-item:hover {
    background: #f7f9f9;
}

.yo-sticky-search__results .yo-hero__search-media {
    position: relative;
    display: block;
    min-width: 50px;
    max-width: 50px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f5f6;
}

.yo-sticky-search__results .yo-hero__search-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yo-sticky-search__results .yo-hero__search-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.yo-sticky-search__results .yo-hero__search-tag {
    color: rgba(26, 82, 82, .58);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.yo-sticky-search__results .yo-hero__search-title {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 720px) {
    .yo-sticky-search {
        display: none;
    }
}
