/* ===================================================
   MENU.CSS — AKINSOFT Navigasyon Stilleri
   Yeni header.php yapısına tam uyumlu
   Tüm ikonlar inline SVG — dışa bağımlılık yok
   =================================================== */

:root {
    --accent-blue:   #0071e3;
    --accent-green:  #00ac48;
    --nav-bg:        rgba(255, 255, 255, 0.98);
    --ease-apple:    cubic-bezier(0.4, 0, 0.2, 1);
    --text-main:     #1d1d1f;
    --bs-link-color: #0071e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    color: #161618;
    overflow-x: hidden;
    padding-top: 54px;
}

/* ── OVERLAY ── */

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-apple);
    z-index: 8000;
}

body.menu-open #overlay {
    opacity: 1;
    visibility: visible;
}

/* ── NAVIGATION ── */

nav[role="navigation"] {
    position: fixed !important;
    top: 0;
    width: 100%;
    height: 52px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 9000 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    position: relative;
    z-index: 9001;
    background-color: transparent;
}

/* ── LOGO ── */

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-svg {
    height: 40px;
    width: auto;
    cursor: pointer;
}

.nav-logo-svg .akinsoft-renk1 { fill: #084f9e; }
.nav-logo-svg .akinsoft-renk2 { fill: #00ac48; }

/* ── DESKTOP MENU LINKS ── */

.nav-links-desktop {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-left: 20px;
    flex: 1;
}

.nav-item {
    font-size: 12px;
    color: #333;
    font-weight: 400;
    opacity: .9;
    transition: color .3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5px;
    white-space: nowrap;
}

.nav-item a {
    text-decoration: none;
    color: inherit;
}

.nav-item:hover {
    color: var(--accent-blue);
    opacity: 1;
}

/* ── RIGHT SIDE ── */

.nav-right-side {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.nav-icons-desktop {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    color: #333;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: opacity .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: #1d1d1f;
}

.icon-btn:hover {
    opacity: .7;
}

/* ── LANGUAGE DROPDOWN ── */

.lang-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.lang-dropdown {
    position: absolute;
    top: 40px;
    right: -50px;
    width: 170px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    border: 1px solid #e5e5e5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .2s var(--ease-apple);
    z-index: 9100;
}

@media (min-width: 769px) {
    .lang-container:hover .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 58px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
}

@media (max-width: 768px) {
    .lang-dropdown {
        right: auto;
        left: 0;
        top: 50px;
    }
    .lang-dropdown::before {
        right: auto;
        left: 10px;
    }
}

.lang-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lang-options {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 5px;
    justify-content: space-around;
}

.lang-opt {
    cursor: pointer;
    color: #1d1d1f;
    font-weight: 500;
}

.lang-opt a {
    color: inherit;
    text-decoration: none;
}

.lang-opt:hover,
.lang-opt a:hover {
    text-decoration: underline;
}

.lang-sep {
    margin: 0 5px;
    color: #d2d2d7;
}

/* ── AUTH LINKS ── */

.auth-separator {
    width: 1px;
    height: 20px;
    background: #d2d2d7;
    margin: 0 5px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-link {
    font-size: 11px;
    font-weight: 600;
    color: #424245;
    text-decoration: none;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color .2s;
}

.auth-link:hover {
    color: var(--accent-blue);
}

.auth-pipe {
    color: #d2d2d7;
    font-size: 12px;
}

/* ── MOBILE NAV RIGHT ── */

.mobile-nav-right {
    display: none;
    align-items: center;
    gap: 0;
}

/* Tüm mobil nav ikonları */

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #1d1d1f;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s;
    position: relative;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    color: #1d1d1f;
    fill: currentColor;
}

.nav-icon:active {
    opacity: .5;
}

/* ── HAMBURGER BUTTON (2 çizgi → X) ── */

.hamburger-btn .ham-icon {
    transition: none;
}

.ham-top,
.ham-bot {
    transition: transform .3s var(--ease-apple), opacity .2s;
    transform-origin: center;
}

.hamburger-btn.is-active .ham-top {
    transform: translateY(4px) rotate(45deg);
}

.hamburger-btn.is-active .ham-bot {
    transform: translateY(-4px) rotate(-45deg);
}

@media (min-width: 1024px) {
    .hamburger-btn {
        display: none !important;
    }
}

/* ── ARAMA DROPDOWN (Apple tarzı) ── */

.new-hover-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: height .35s var(--ease-apple), opacity .25s var(--ease-apple);
    z-index: 9002;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.new-hover-search-dropdown.active {
    height: 310px;
    opacity: 1;
    visibility: visible;
}

.search-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 24px 24px;
}

.search-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    /* border-bottom: 1px solid #d2d2d7; */
    margin-bottom: 20px;
    border: 1px solid #d2d2d7;
    border-radius: 30px;
    padding: 10px 7px;
}

.search-form-icon {
    flex-shrink: 0;
    color: #6e6e73;
    fill: #6e6e73;
}

.search-main-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 19px;
    font-weight: 400;
    color: #1d1d1f;
    letter-spacing: -.3px;
    padding: 0;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

.search-main-input::placeholder {
    color: #6e6e73;
}

.search-cancel-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    white-space: nowrap;
    transition: opacity .2s;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    padding: 0 10px;
}

.search-cancel-btn:hover {
    opacity: .7;
}

.search-quick-title {
    font-size: 12px;
    color: #6e6e73;
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Masaüstü: 2 sütun, 2 satır görünsün; taşarsa kaydırma, scroll çubuğu gizli */
.search-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 20px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.search-quick-list::-webkit-scrollbar {
    display: none;
}

.search-quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #1d1d1f;
    text-decoration: none;
    padding: 5px 0;
    transition: color .15s;
}

.search-quick-item svg {
    color: #6e6e73;
    flex-shrink: 0;
    transition: transform .2s var(--ease-apple), color .15s;
}

.search-quick-item:hover {
    color: var(--accent-blue);
}

.search-quick-item:hover svg {
    transform: translateX(3px);
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .new-hover-search-dropdown.active {
        height: auto;
    }
    .search-main-input {
        font-size: 16px;
    }
    /* Mobil: tek sütun, aşağıya doğru kaydırılabilir */
    .search-quick-list {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
}

/* ── MEGA MENU ── */

.mega-overlay {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    background: #fff;
    border-top: 1px solid #f1f1f1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    height: 0;
    overflow: hidden;
    transition: height .3s cubic-bezier(0.25, 1, .5, 1);
    z-index: 8999 !important;
}

.mega-overlay.active {
    height: 380px;
    z-index: 9003; /* Arama açıkken menüye gelince mega üstte görünsün (arama 9002) */
}

.mega-content {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px;
}

.mega-content .menu-container {
    max-width: 1000px;
    margin: 40px auto;
    display: none;
    gap: 10px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .3s ease;
    transition-delay: .1s;
}

.mega-content .menu-container.active {
    opacity: 1;
    transform: translateY(0);
    display: flex;
    justify-content: space-between;
}

.mega-overlay.active .mega-content {
    opacity: 1;
    transform: translateY(0);
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mega-group a {
    display: block;
    font-size: 18px;
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 2px;
    text-decoration: none;
    transition: color .2s;
}

.mega-group a:hover,
.mega-group a.active-sub {
    color: var(--accent-blue);
}

.mega-group h4 {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 10px;
    letter-spacing: .5px;
    font-weight: 600;
    text-transform: uppercase;
}

.mega-group.cozumler a i {
    margin-left: auto;
    padding-right: 0;
    margin-right: -20px;
}

.mega-sub-menu {
    min-width: 180px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .3s ease, transform .3s ease;
    transition-delay: .1s;
    display: none;
}

.mega-sub-menu.active {
    opacity: 1;
    transform: translateX(0);
    display: flex;
}

.mega-sub-menu a {
    font-size: 14px !important;
}

.side-col h4 {
    font-size: 10px;
    color: #86868b;
    margin-bottom: 10px;
    letter-spacing: .5px;
    font-weight: 600;
    text-transform: uppercase;
}

.side-col ul > li a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 12px !important;
    font-weight: 600;
    transition: color .2s;
}

.side-col ul > li a:hover {
    color: var(--accent-blue);
}

ul {
    padding-left: 0 !important;
    list-style: none;
}

.sub-menu-btn {
    display: flex !important;
    align-items: center;
}

/* chevron ok ikonları (inline SVG .sag-ok) */

.sag-ok {
    width: 12px;
    height: 12px;
    padding: 0 5px;
    box-sizing: content-box;
    transition: transform .5s linear;
    vertical-align: middle;
    fill: currentColor;
}

.sub-menu-btn:hover .sag-ok {
    transform: translateX(10px);
    fill: var(--bs-link-color);
}

/* ── MOBILE MENU WRAPPER ── */

.mobile-menu-wrapper {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 52px) !important;
    background: #f5f5f7 !important;
    z-index: 99999 !important;
    transform: translateY(-15px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: transform .3s var(--ease-apple), opacity .3s var(--ease-apple), visibility .3s var(--ease-apple) !important;
    display: block !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    border-top: 1px solid #f1f1f1;
    overflow: hidden !important;
}

.mobile-menu-wrapper.is-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (min-width: 1024px) {
    .mobile-menu-wrapper {
        display: none !important;
    }
}

/* ── MOBILE MENU TOP BAR ── */

.menu-top-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 0 !important;
    background: #fff !important;
    z-index: 100 !important;
    overflow: hidden !important;
    transition: height .2s ease !important;
}

.mobile-menu-wrapper.has-submenu .menu-top-bar {
    height: 44px !important;
    border-bottom: 1px solid #eee !important;
}

.menu-back-btn {
    position: absolute !important;
    top: 10px !important;
    left: 15px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center;
    gap: 4px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.menu-back-btn svg {
    width: 22px;
    height: 22px;
    fill: #333;
}

/* ── MENU LAYERS (slide animasyonu) ── */

.menu-layer {
    position: absolute !important;
    top: 44px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 44px) !important;
    overflow-y: auto !important;
    background: #fff !important;
    transition: transform .3s ease !important;
    padding: 16px 24px 60px !important;
    visibility: hidden;
}

/* Ana menüde top-bar gizliyken layer top:0 */

.mobile-menu-wrapper:not(.has-submenu) .menu-layer {
    top: 0 !important;
    height: 100% !important;
}

.menu-layer.active {
    transform: translateX(0) !important;
    visibility: visible;
}

.menu-layer.waiting-right {
    transform: translateX(100%) !important;
    visibility: hidden;
}

.menu-layer.waiting-left {
    transform: translateX(-100%) !important;
    visibility: hidden;
}

/* ── MOBILE LINK STYLES ── */

.mobile-cat-link {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: color .2s;
    letter-spacing: -.2px;
    font-family: 'Inter', sans-serif;
}

.mobile-cat-link:hover {
    color: var(--accent-blue);
}

.mobile-cat-link .arrow-icon {
    width: 28px;
    height: 28px;
    fill: #999;
    flex-shrink: 0;
    opacity: 0.9;
    transform: translateX(-4px);
    transition: opacity .2s, transform .2s;
}

.mobile-cat-link:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

.mobile-sub-item-link {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    padding: 10px 0;
    transition: color .2s;
    letter-spacing: -.2px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.mobile-sub-item-link.mobile-cat-link {
    display: flex;
}

.mobile-sub-item-link:hover {
    color: var(--accent-blue);
}

.mobile-group-header {
    font-size: 12px;
    color: #86868b;
    letter-spacing: .3px;
    margin: 20px 0 4px;
    font-weight: 400;
}

.mobile-small-link {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    display: block;
    padding: 7px 0;
    font-weight: 400;
    transition: color .2s;
}

.mobile-small-link:hover {
    color: var(--accent-blue);
}

.menu-spacer {
    height: 0;
    margin: 16px 0;
    border-top: 1px solid #e8e8e8;
}

.mobile-promo-img {
    display: block;
    margin: 8px 0 4px;
}

.mobile-promo-img img {
    max-width: 160px;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ── RESPONSIVE ── */

@media (max-width: 1050px) {
    .nav-links-desktop {
        display: none;
    }
    .nav-icons-desktop {
        display: none;
    }
    .mobile-nav-right {
        display: flex;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}
#sag-size-ulasalim-v2{z-index: 90; position: absolute;}