/* Header, logo, menü, profil paneli ve mobil/masaüstü düzeltmeleri.
 * style.css dosyasından taşınmıştır; mevcut kurallar korunur.
 */

/* YOURTOURKEY NEO HEADER - CLEAN */

.ytk-neo-header,
.ytk-neo-header * {
    box-sizing: border-box;
}

.ytk-neo-header {
    position: sticky;
    top: 0;
    z-index: 99990;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(var(--ytk-ink-rgb),0.08);
    font-family: var(--ytk-font-family);
    isolation: isolate;
}

.ytk-neo-top {
    position: relative;
    z-index: 30;
    width: 100%;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(var(--ytk-ink-rgb),0.06);
}

.ytk-neo-inner {
    width: calc(100% - var(--ytk-layout-cut));
    max-width: var(--ytk-layout-max);
    min-height: 96px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 225px minmax(360px, 1fr) auto;
    align-items: center;
    gap: 20px;
}

/* LOGO */

.ytk-neo-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

.ytk-neo-logo img,
.ytk-neo-logo svg {
    display: block;
    width: auto;
    height: 50px;
    max-width: 225px;
    object-fit: contain;
}

.ytk-neo-logo span {
    color: var(--ytk-ink);
    font-size: 29px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.4px;
}

/* MENU */

.ytk-neo-menu {
    position: relative;
    right: -16px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ytk-neo-menu-item {
    position: relative;
    min-width: 68px;
    height: 54px;
    padding: 3px 4px;
    border-radius: 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #63687a;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.08px;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ytk-neo-menu-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--ytk-ink);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.ytk-neo-menu-item:hover {
    background: transparent;
    color: var(--ytk-ink);
    transform: none;
}

.ytk-neo-menu-item:hover .ytk-neo-menu-label::after,
.ytk-neo-menu-item:focus-visible .ytk-neo-menu-label::after {
    transform: scaleX(1);
}

.ytk-neo-menu-item > .ytk-neo-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    font-size: 23px;
    line-height: 1;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.ytk-neo-menu-item:hover .ytk-neo-menu-icon,
.ytk-neo-menu-item:focus-visible .ytk-neo-menu-icon {
    background-color: #ebeef1;
    transform: none;
}

.ytk-neo-menu-label {
    position: relative;
    display: block;
}

.ytk-neo-menu-item > .ytk-neo-menu-icon {
    color: #40516b;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Homepage offer link uses the shared scroll state; mobile access stays in the menu. */
.ytk-neo-menu-item.ytk-neo-early-bird { color: #c72a3d; white-space: nowrap; }
.ytk-neo-early-bird > .ytk-neo-menu-icon { color: #c72a3d; }
.ytk-neo-early-bird .ytk-neo-menu-label::after { background: #c72a3d; }
.ytk-neo-menu-item.ytk-neo-early-bird:hover,
.ytk-neo-menu-item.ytk-neo-early-bird:focus-visible { color: #d45f6f; }
.home.ytk-clean-scrolled .ytk-neo-early-bird { display: none; }

.ytk-neo-cart em {
    position: absolute;
    top: 6px;
    right: 14px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #024f4d;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
}

/* PROFILE PANEL */

.ytk-neo-profile {
    position: relative;
    z-index: 120;
}

.ytk-neo-profile::after {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    top: 100%;
    height: 16px;
    background: transparent;
}

.ytk-neo-profile-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 410px;
    padding: 18px 20px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(var(--ytk-ink-rgb),0.12);
    box-shadow: 0 20px 55px rgba(var(--ytk-ink-rgb),0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.985);
    transform-origin: top right;
    z-index: 100050;
    transition:
        opacity 0.2s ease 0.06s,
        visibility 0.2s ease 0.06s,
        transform 0.2s ease 0.06s;
}

.ytk-neo-profile:hover .ytk-neo-profile-panel,
.ytk-neo-profile:focus-within .ytk-neo-profile-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ytk-neo-profile-head {
    min-height: 54px;
    padding: 0 2px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 16px;
}

.ytk-neo-profile-head strong {
    display: block;
    color: var(--ytk-ink);
    font-size: 21px;
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: -0.35px;
}

.ytk-neo-profile-head span {
    display: block;
    margin-top: 4px;
    color: rgba(var(--ytk-ink-rgb),0.58);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 520;
}

.ytk-neo-profile-alert {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f1f3f4;
    color: var(--ytk-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.ytk-neo-profile-alert:hover {
    background: rgba(2,79,77,0.10);
    color: #024f4d;
}

.ytk-neo-profile-alert .ytk-icon {
    font-size: 22px;
}

.ytk-neo-profile-grid {
    display: grid;
    gap: 2px;
}

.ytk-neo-profile-link {
    position: relative;
    min-height: 62px;
    padding: 9px 6px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 11px;
    color: var(--ytk-ink);
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.ytk-neo-profile-link--section-start {
    min-height: 73px;
    margin-top: 7px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--ytk-ink-rgb),0.13);
    border-radius: 0 0 12px 12px;
}

.ytk-neo-profile-link:hover {
    background: #f4f7f7;
    color: #024f4d;
}

.ytk-neo-profile-link-icon {
    width: 36px;
    height: 36px;
    color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
}

.ytk-neo-profile-link strong {
    display: block;
    color: currentColor;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 650;
}

.ytk-neo-profile-link small {
    display: block;
    margin-top: 4px;
    color: rgba(var(--ytk-ink-rgb),0.56);
    font-size: 11.5px;
    line-height: 1.25;
    font-weight: 500;
}

.ytk-neo-profile-chevron {
    color: #1a2b49;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(26,43,73,0.18);
}

/* MOBILE */

.ytk-neo-mobile-button {
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.ytk-neo-mobile-button span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--ytk-ink);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

body.ytk-neo-mobile-open .ytk-neo-mobile-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.ytk-neo-mobile-open .ytk-neo-mobile-button span:nth-child(2) {
    opacity: 0;
}

body.ytk-neo-mobile-open .ytk-neo-mobile-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.ytk-neo-mobile-panel {
    display: none;
    padding: 18px;
    background: #ffffff;
    border-top: 1px solid rgba(var(--ytk-ink-rgb),0.08);
}

.ytk-neo-mobile-search {
    display: grid;
    margin-bottom: 14px;
}

.ytk-neo-mobile-nav {
    display: grid;
    gap: 8px;
}

.ytk-neo-mobile-nav a {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 15px;
    background: #f6f8fb;
    color: var(--ytk-ink);
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.ytk-neo-mobile-link > .ytk-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex: 0 0 24px;
    font-size: 24px;
}

.ytk-neo-mobile-nav .ytk-neo-mobile-early-bird { color: #c72a3d; }
.ytk-neo-mobile-nav .ytk-neo-mobile-early-bird:hover,
.ytk-neo-mobile-nav .ytk-neo-mobile-early-bird:focus-visible { color: #d45f6f; }

.ytk-neo-mobile-line {
    height: 1px;
    margin: 6px 0;
    background: rgba(var(--ytk-ink-rgb),0.08);
}

/* RESPONSIVE */

@media (max-width: 1380px) {
    .ytk-neo-inner {
        grid-template-columns: 225px minmax(360px, 1fr) auto;
        gap: 18px;
    }

    .ytk-neo-logo img,
    .ytk-neo-logo svg {
        height: 50px;
        max-width: 225px;
    }

    .ytk-neo-menu {
        right: -14px;
        gap: 8px;
    }

    .ytk-neo-menu-item {
        min-width: 64px;
        height: 50px;
        font-size: 11.5px;
    }

    .ytk-neo-menu-item > .ytk-neo-menu-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 21px;
    }
}

@media (max-width: 1160px) {
    .ytk-neo-inner {
        grid-template-columns: 225px minmax(360px, 1fr) 50px;
    }

    .ytk-neo-menu {
        display: none;
    }

    .ytk-neo-mobile-button {
        display: inline-flex;
    }

    body.ytk-neo-mobile-open .ytk-neo-mobile-panel {
        display: block;
    }
}

@media (max-width: 820px) {
    .ytk-neo-inner {
        width: calc(100% - var(--ytk-layout-cut));
        min-height: 66px;
        grid-template-columns: auto 50px;
        gap: 18px;
    }

    .ytk-neo-inner > .ytk-neo-search-wrap {
        display: none;
    }

    .ytk-neo-logo img,
    .ytk-neo-logo svg {
        height: 50px;
        max-width: 225px;
    }
}

@media (max-width: 480px) {
    .ytk-neo-inner {
        width: calc(100% - var(--ytk-layout-cut));
    }

    .ytk-neo-logo img,
    .ytk-neo-logo svg {
        height: 44px;
        max-width: 200px;
    }
}





/* MOBILE HEADER TOGGLE - FINAL */
@media (max-width: 1160px) {
    .ytk-neo-mobile-button {
        width: 50px;
        height: 50px;
        padding: 0;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .ytk-neo-mobile-button .ytk-neo-mobile-button-icon,
    body.ytk-neo-mobile-open .ytk-neo-mobile-button .ytk-neo-mobile-button-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: none !important;
        color: #1a2b49 !important;
        font-size: 28px !important;
        line-height: 1 !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .ytk-neo-mobile-button .ytk-neo-mobile-button-icon::before,
    .ytk-neo-mobile-button .ytk-neo-mobile-button-icon::after {
        display: none !important;
        content: none !important;
    }

    .ytk-neo-mobile-panel,
    body.ytk-neo-mobile-open .ytk-neo-mobile-panel {
        top: 0 !important;
        width: 100%;
        margin-top: 0 !important;
        transform: none !important;
    }
}




/* Desktop header: compact, centered, softly separated */
@media (min-width: 1161px) {
    .ytk-neo-header {
        border-bottom: 0;
        box-shadow: 0 5px 16px rgba(26, 43, 73, 0.10);
    }
    .ytk-neo-top { border-bottom: 0; }
    .ytk-neo-inner { min-height: 80px; }
}
