/**
 * Mobil Menü — Header altından açılan sade dropdown.
 * Tek CSS dosyası; desktop menüyü etkilemez.
 */

@media (max-width: 768px) {

    /* ---------- Eski çakışmaları temizle ---------- */
    html body .awwwards-style .nav-menu .sub-menu:empty { display: none !important; }
    html body .awwwards-style .nav-menu .menu-item-has-children > a::after,
    html body .awwwards-style .nav-menu .has-dropdown > a::after {
        content: none !important;
        display: none !important;
    }
    html body .awwwards-style .nav-menu .sub-menu .menu-item {
        border-left: 0 !important;
        margin-left: 0 !important;
    }

    /* Menü açıkken header overlay'in üstünde kalsın (style.css 2270 specificity override) */
    html body.menu-open header.site-header,
    html body.menu-open header.site-header.awwwards-style {
        z-index: 10001 !important;
    }
    html body.menu-open header.site-header .container,
    html body.menu-open header.site-header .header-container {
        overflow: visible !important;
    }

    /* ---------- Dropdown paneli ---------- */
    html body .awwwards-style .main-navigation {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border: 0 !important;
        border-top: 1px solid #eef0f3 !important;
        border-radius: 0 !important;
        box-shadow: 0 18px 32px -14px rgba(15, 23, 42, .18) !important;
        max-height: calc(100vh - 64px) !important;
        max-height: calc(100dvh - 64px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
        z-index: 10000 !important;
        display: block !important;
    }
    html body .awwwards-style .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* ---------- Menü listesi ---------- */
    html body .awwwards-style .nav-menu {
        list-style: none !important;
        margin: 0 !important;
        padding: 14px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        background: #ffffff !important;
    }
    html body .awwwards-style .nav-menu .menu-item {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
        background: transparent !important;
        border: 0 !important;
    }

    /* Üst seviye link — modern liste satırı, chevron ile */
    html body header.site-header.awwwards-style .nav-menu > .menu-item > a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        padding: 16px 20px !important;
        font-size: 19px !important;
        font-weight: 600 !important;
        color: #0f172a !important;
        text-transform: none !important;
        letter-spacing: -0.005em !important;
        line-height: 1.3 !important;
        min-height: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        position: relative;
        transition: background .22s ease, color .22s ease, transform .15s ease !important;
    }
    /* Sol mini kırmızı noktacık — ince aksan */
    html body header.site-header.awwwards-style .nav-menu > .menu-item > a::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: #dc2626;
        box-shadow: 0 0 0 3px rgba(220,38,38,.12);
        flex-shrink: 0;
        transition: transform .25s cubic-bezier(.4,0,.2,1);
    }
    /* Sağ chevron — ok işareti */
    html body header.site-header.awwwards-style .nav-menu > .menu-item > a::after {
        content: "";
        margin-left: auto;
        width: 8px;
        height: 8px;
        border-right: 2px solid #cbd5e1;
        border-top: 2px solid #cbd5e1;
        transform: rotate(45deg);
        flex-shrink: 0;
        transition: border-color .2s ease, transform .25s ease;
    }
    html body .awwwards-style .nav-menu > .menu-item > a:hover,
    html body .awwwards-style .nav-menu > .menu-item > a:active,
    html body .awwwards-style .nav-menu > .current-menu-item > a,
    html body .awwwards-style .nav-menu > .current_page_item > a {
        background: #f6f7f9 !important;
        color: #dc2626 !important;
    }
    html body .awwwards-style .nav-menu > .menu-item > a:hover::before,
    html body .awwwards-style .nav-menu > .current-menu-item > a::before {
        transform: scale(1.3);
    }
    html body .awwwards-style .nav-menu > .menu-item > a:hover::after,
    html body .awwwards-style .nav-menu > .current-menu-item > a::after {
        border-color: #dc2626;
        transform: rotate(45deg) translate(2px, -2px);
    }
    /* Alt menüsü olan öğede chevron aşağı baksın */
    html body .awwwards-style .nav-menu > .menu-item-has-children > a::after,
    html body .awwwards-style .nav-menu > .has-dropdown > a::after {
        transform: rotate(135deg);
        margin-top: -4px;
    }
    html body .awwwards-style .nav-menu > .menu-item-has-children > a:hover::after,
    html body .awwwards-style .nav-menu > .has-dropdown > a:hover::after {
        transform: rotate(135deg) translate(2px, -2px);
    }

    /* WP menü içindeki eski SVG oku gizle */
    html body .awwwards-style .nav-menu > .menu-item > a svg {
        display: none !important;
    }

    /* Alt menü — indent + sol rail + kart görünüm */
    html body .awwwards-style .nav-menu .sub-menu,
    html body .awwwards-style .nav-menu .has-dropdown .sub-menu,
    html body .awwwards-style .nav-menu .menu-item-has-children .sub-menu {
        list-style: none !important;
        margin: 4px 6px 6px 16px !important;
        padding: 4px 0 4px 12px !important;
        background: transparent !important;
        border: 0 !important;
        border-left: 2px solid #fee2e2 !important;
        box-shadow: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        transform: none !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    html body .awwwards-style .nav-menu .sub-menu .menu-item {
        border: 0 !important;
        background: transparent !important;
    }
    html body .awwwards-style .nav-menu .sub-menu a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 10px !important;
        padding: 10px 14px !important;
        font-size: 15.5px !important;
        font-weight: 500 !important;
        color: #475569 !important;
        background: transparent !important;
        line-height: 1.4 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        border: 0 !important;
        border-radius: 8px !important;
        transition: color .2s ease, background .2s ease, transform .18s ease !important;
    }
    html body .awwwards-style .nav-menu .sub-menu a::before {
        content: "" !important;
        display: inline-block !important;
        width: 4px !important;
        height: 4px !important;
        border-radius: 999px !important;
        background: #cbd5e1 !important;
        flex-shrink: 0 !important;
        transition: background .2s ease, transform .2s ease !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
    }
    html body .awwwards-style .nav-menu .sub-menu a:hover,
    html body .awwwards-style .nav-menu .sub-menu .current-menu-item > a {
        color: #dc2626 !important;
        background: #fff5f5 !important;
    }
    html body .awwwards-style .nav-menu .sub-menu a:hover::before,
    html body .awwwards-style .nav-menu .sub-menu .current-menu-item > a::before {
        background: #dc2626 !important;
        transform: scale(1.4);
    }

    /* ---------- Alt aksiyon bölgesi ---------- */
    html body .awwwards-style .main-navigation .mobile-menu-actions {
        padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid #eef0f3 !important;
    }
    html body .awwwards-style .main-navigation .mobile-menu-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    html body .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 13px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: .02em !important;
        text-transform: none !important;
        border-radius: 10px !important;
        border: 1px solid transparent !important;
        box-shadow: none !important;
        transition: background .2s ease, color .2s ease, border-color .2s ease !important;
    }
    html body .mobile-menu-btn.button-primary {
        background: #0f172a !important;
        color: #ffffff !important;
        border-color: #0f172a !important;
    }
    html body .mobile-menu-btn.button-primary:hover,
    html body .mobile-menu-btn.button-primary:active {
        background: #dc2626 !important;
        border-color: #dc2626 !important;
    }
    html body .mobile-menu-btn.button-outline {
        background: #ffffff !important;
        color: #0f172a !important;
        border-color: #e2e6eb !important;
    }
    html body .mobile-menu-btn.button-outline:hover,
    html body .mobile-menu-btn.button-outline:active {
        background: #f6f7f9 !important;
        border-color: #0f172a !important;
    }

    /* ---------- Overlay (arka plan karartma) ---------- */
    html body .menu-overlay {
        position: fixed !important;
        inset: 0 !important;
        top: 64px !important;
        background: rgba(15, 23, 42, 0) !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease, background-color .25s ease !important;
        z-index: 9998 !important;
        pointer-events: none;
    }
    html body .menu-overlay.active {
        background: rgba(15, 23, 42, .4) !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* ---------- Hamburger / X toggle ---------- */
    html body .site-header .menu-toggle {
        position: relative !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
    html body .site-header .menu-toggle .menu-toggle-icon,
    html body .site-header .menu-toggle .menu-toggle-icon::before,
    html body .site-header .menu-toggle .menu-toggle-icon::after {
        display: block;
        position: absolute;
        left: 50%;
        width: 22px;
        height: 2px;
        background: #0f172a;
        border-radius: 2px;
        transition: transform .3s ease, top .25s ease, opacity .2s ease, background .2s ease;
    }
    html body .site-header .menu-toggle .menu-toggle-icon {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    html body .site-header .menu-toggle .menu-toggle-icon::before {
        content: "";
        top: -7px;
        left: 0;
        transform: none;
    }
    html body .site-header .menu-toggle .menu-toggle-icon::after {
        content: "";
        top: 7px;
        left: 0;
        transform: none;
    }
    html body .site-header .menu-toggle.active .menu-toggle-icon {
        background: transparent !important;
    }
    html body .site-header .menu-toggle.active .menu-toggle-icon::before {
        top: 0;
        transform: rotate(45deg);
    }
    html body .site-header .menu-toggle.active .menu-toggle-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Menü açıkken body scroll kilidi */
    html body.menu-open {
        overflow: hidden !important;
    }
}

/* Desktop */
@media (min-width: 769px) {
    html body .site-header .menu-toggle { display: none !important; }
    html body .menu-overlay { display: none !important; }
}
