/* =============================================
   MOBİL STICKY HEADER — scroll sonrası
   ============================================= */

.mobile-sticky-header {
    display: none;
}

@media (max-width: 1199.98px) {
    .mobile-sticky-header {
        display: block;
        position: fixed;
        top: calc(0.75rem + env(safe-area-inset-top, 0px));
        left: 0.85rem;
        right: 0.85rem;
        z-index: 1040;
        padding: 0.65rem 0.9rem;
        border-radius: 14px;
        background: rgba(5, 12, 28, 0.42);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 10px 30px rgba(3, 10, 28, 0.22);
        transform: translateY(calc(-120% - env(safe-area-inset-top, 0px)));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.28s ease,
            visibility 0.28s ease;
    }

    .mobile-sticky-header.is-visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.menu-open .mobile-sticky-header,
    body.menu-open .mobile-sticky-header.is-visible {
        transform: translateY(calc(-120% - env(safe-area-inset-top, 0px)));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-sticky-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .mobile-sticky-header__logo {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        min-width: 0;
    }

    .mobile-sticky-header__logo img {
        display: block;
        height: clamp(36px, 9vw, 42px);
        width: auto;
        max-width: min(42vw, 9.5rem);
        object-fit: contain;
    }

    .mobile-sticky-header__toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 8px;
        flex-shrink: 0;
        border: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .mobile-sticky-header__toggle:hover {
        background: rgba(255, 255, 255, 0.14);
    }

    .mobile-sticky-header__toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        border-radius: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-sticky-header {
        transition: none;
    }
}
