/**
 * Mobil site menüsü — body seviyesinde panel (hero katmanlarından bağımsız)
 */

.mobile-nav {
    display: none !important;
}

@media (max-width: 1023px) {
    .navbar .nav-menu {
        display: none !important;
    }

    .mobile-nav.is-open {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 99990;
    }

    /* Açılış anında backdrop aynı dokunuşu yakalamasın */
    .mobile-nav.is-opening .mobile-nav__backdrop {
        pointer-events: none !important;
    }

    .mobile-nav__backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(15, 23, 42, 0.55);
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .mobile-nav.is-open .mobile-nav__backdrop {
        opacity: 1;
    }

    .mobile-nav__panel {
        position: absolute;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100%;
        height: 100dvh;
        background: #fff;
        box-shadow: -10px 0 40px rgba(15, 23, 42, 0.18);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mobile-nav.is-open .mobile-nav__panel,
    .mobile-nav.is-opening .mobile-nav__panel {
        transform: translateX(0);
    }

    .mobile-nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.15rem;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
        flex-shrink: 0;
    }

    .mobile-nav__title {
        font-size: 1rem;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.02em;
    }

    .mobile-nav__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(15, 23, 42, 0.1);
        border-radius: 10px;
        background: #fff;
        color: #475569;
        font-size: 1.1rem;
        cursor: pointer;
        touch-action: manipulation;
    }

    .mobile-nav__list {
        list-style: none;
        margin: 0;
        padding: 0.5rem 0 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
    }

    .mobile-nav__list li {
        margin: 0;
    }

    .mobile-nav__list a {
        display: block;
        padding: 1rem 1.25rem;
        color: #0f172a;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        line-height: 1.35;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.12);
    }

    .mobile-nav__list a.active {
        color: #4f46e5;
        background: rgba(99, 102, 241, 0.08);
    }

    .mobile-nav__list a:active {
        background: rgba(15, 23, 42, 0.04);
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        cursor: pointer;
        touch-action: manipulation;
        position: relative;
        z-index: 1001;
    }
}
