/* ==================================================
   Atakan Makina – Profesyonel Navbar
================================================== */

:root {
    --atakan-blue: #0b4f8a;
    --atakan-blue-dark: #07365f;
    --atakan-blue-soft: #edf5fb;
}

/* Genel yapı */
.atakan-pro-header,
.atakan-pro-header * {
    box-sizing: border-box;
}

.atakan-pro-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;

    background: rgba(255, 255, 255, 0.97);
    border-top: 0;
    border-bottom: 1px solid rgba(21, 25, 34, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    isolation: isolate;
    overflow: visible !important;

    transition:
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.atakan-pro-header.is-scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
}

/* ==================================================
   Navbar yerleşimi
================================================== */

.atakan-pro-nav {
    display: flex;
    align-items: center;

    width: min(1240px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
}

/* Logo */
.atakan-pro-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;

    margin-right: auto;
    padding: 8px 0;
}

.atakan-pro-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    height: 52px;
    object-fit: contain;
}

/* Menü */
.atakan-pro-menu {
    display: flex;
    align-items: center;
    gap: 4px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.atakan-pro-item {
    position: relative;
}

/* Ürünlerimiz: yazı bağlantı, ok ayrı açılır menü düğmesi */
.atakan-pro-split-trigger {
    display: inline-flex;
    align-items: stretch;
    min-height: 46px;
    border-radius: 8px;
    overflow: hidden;
}

.atakan-pro-split-trigger .atakan-pro-link {
    min-height: 46px;
    padding-right: 11px;
    border-radius: 8px 0 0 8px;
}

.atakan-pro-split-trigger .atakan-pro-link::after {
    right: 11px;
}

.atakan-pro-split-trigger .atakan-pro-trigger {
    justify-content: center;
    width: 38px;
    min-width: 38px;
    min-height: 46px;
    padding: 0;
    border-left: 1px solid rgba(11, 79, 138, 0.13);
    border-radius: 0 8px 8px 0;
}

.atakan-pro-split-trigger .atakan-pro-trigger::after {
    right: 8px;
    left: 8px;
}

/* Ana menü bağlantıları */
.atakan-pro-link,
.atakan-pro-trigger {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 46px;
    padding: 0 14px;

    color: #252a33;
    background: transparent;
    border: 0;
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.015em;
    line-height: 1;

    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

/* Bağlantı altındaki mavi çizgi */
.atakan-pro-link::after,
.atakan-pro-trigger::after {
    content: "";

    position: absolute;
    right: 14px;
    bottom: 5px;
    left: 14px;

    height: 2px;

    background: var(--atakan-blue);
    border-radius: 999px;

    transform: scaleX(0);
    transition: transform 0.2s ease;
}

/* Hover ve aktif menü */
.atakan-pro-link:hover,
.atakan-pro-trigger:hover,
.atakan-pro-link.is-active,
.atakan-pro-trigger.is-active,
.atakan-pro-item.is-open .atakan-pro-trigger {
    color: var(--atakan-blue);
    background: var(--atakan-blue-soft);
}

.atakan-pro-link:hover::after,
.atakan-pro-trigger:hover::after,
.atakan-pro-link.is-active::after,
.atakan-pro-trigger.is-active::after,
.atakan-pro-item.is-open .atakan-pro-trigger::after {
    transform: scaleX(1);
}

/* Menü oku */
.atakan-pro-chevron {
    width: 8px;
    height: 8px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.atakan-pro-item.is-open
.atakan-pro-trigger
.atakan-pro-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

/* ==================================================
   Açılır menüler
================================================== */

.atakan-pro-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    min-width: 245px;
    padding: 10px;

    background: #ffffff;
    border: 1px solid rgba(21, 25, 34, 0.09);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.atakan-pro-item.is-open > .atakan-pro-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

/* Geniş ürün menüsü */
.atakan-pro-mega {
    right: auto;
    left: 50%;

    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 12px;

    width: min(720px, calc(100vw - 40px));
    padding: 18px;

    transform: translate(-50%, 8px);
}

.atakan-pro-item.is-open > .atakan-pro-mega {
    transform: translate(-50%, 0);
}

.atakan-mega-section {
    padding: 12px;

    background: #f7f8fa;
    border-radius: 12px;
}

.atakan-mega-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 0 0 8px;
    padding: 0 8px 9px;

    color: #161a22;
    border-bottom: 1px solid #e5e7eb;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

/* Mega menü listesi */
.atakan-mega-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.atakan-mega-list.is-single {
    grid-template-columns: 1fr;
}

/* Alt menü bağlantıları */
.atakan-mega-link,
.atakan-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 12px;

    color: #464c57;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    text-decoration: none !important;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.atakan-mega-link::before,
.atakan-dropdown-link::before {
    content: "";

    flex: 0 0 auto;
    width: 6px;
    height: 6px;

    background: #c9cdd4;
    border-radius: 50%;

    transition: background 0.18s ease;
}

.atakan-mega-link:hover,
.atakan-dropdown-link:hover,
.atakan-mega-link.is-active,
.atakan-dropdown-link.is-active {
    color: var(--atakan-blue);
    background: #e7f1f9;
    box-shadow: inset 3px 0 0 var(--atakan-blue);

    transform: translateX(3px);
}

.atakan-mega-link:hover::before,
.atakan-dropdown-link:hover::before,
.atakan-mega-link.is-active::before,
.atakan-dropdown-link.is-active::before {
    background: var(--atakan-blue);
}

/* ==================================================
   Fırsat makineleri bağlantısı
================================================== */

.atakan-pro-sale-link {
    display: block;

    margin-top: 8px;
    padding: 17px 16px;

    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        var(--atakan-blue),
        var(--atakan-blue-dark)
    );

    border-radius: 10px;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.atakan-pro-sale-link small {
    display: block;

    margin-top: 4px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 12px;
    font-weight: 500;
}

.atakan-pro-sale-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 79, 138, 0.27);
}

.atakan-pro-badge {
    display: inline-flex;
    padding: 4px 7px;

    color: #ffffff;
    background: var(--atakan-blue);
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* ==================================================
   İletişim butonu
================================================== */

.atakan-pro-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    margin-left: 12px;
    padding: 0 20px;

    color: #ffffff !important;
    background: var(--atakan-blue);
    border: 2px solid var(--atakan-blue);
    border-radius: 9px;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none !important;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.atakan-pro-contact:hover {
    color: var(--atakan-blue) !important;
    background: #ffffff;

    transform: translateY(-2px);
}

/* ==================================================
   Mobil menü butonu
================================================== */

.atakan-pro-toggle {
    display: none;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 0;

    background: var(--atakan-blue-soft);
    border: 1px solid rgba(11, 79, 138, 0.16);
    border-radius: 10px;

    cursor: pointer;
}

.atakan-pro-toggle-lines,
.atakan-pro-toggle-lines::before,
.atakan-pro-toggle-lines::after {
    display: block;

    width: 22px;
    height: 2px;

    background: var(--atakan-blue);
    border-radius: 999px;

    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}

.atakan-pro-toggle-lines {
    position: relative;
}

.atakan-pro-toggle-lines::before,
.atakan-pro-toggle-lines::after {
    content: "";

    position: absolute;
    left: 0;
}

.atakan-pro-toggle-lines::before {
    top: -7px;
}

.atakan-pro-toggle-lines::after {
    top: 7px;
}

/* Açık mobil menü simgesi */
.atakan-pro-header.mobile-open .atakan-pro-toggle-lines {
    background: transparent;
}

.atakan-pro-header.mobile-open
.atakan-pro-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
}

.atakan-pro-header.mobile-open
.atakan-pro-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ==================================================
   Tablet ve telefon
================================================== */

@media (max-width: 1049px) {
    .atakan-pro-nav {
        width: min(calc(100% - 28px), 1240px);
        min-height: 72px;
    }

    .atakan-pro-logo img {
        max-width: 170px;
        height: 46px;
    }

    .atakan-pro-toggle {
        display: inline-flex;
    }

    .atakan-pro-menu-wrap {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;

        max-height: 0;
        overflow: hidden auto;

        background: #ffffff;
        border-top: 1px solid #eceef1;
        box-shadow: 0 18px 35px rgba(15, 23, 42, 0.13);

        opacity: 0;
        visibility: hidden;

        transition:
            max-height 0.3s ease,
            opacity 0.2s ease,
            visibility 0.2s ease;
    }

    .atakan-pro-header.mobile-open
    .atakan-pro-menu-wrap {
        max-height: calc(100dvh - 72px);
        opacity: 1;
        visibility: visible;
    }

    .atakan-pro-menu {
        display: block;

        width: min(calc(100% - 28px), 720px);
        margin: 0 auto;
        padding: 14px 0 22px;
    }

    .atakan-pro-link,
    .atakan-pro-trigger {
        display: flex;
        justify-content: space-between;

        width: 100%;
        min-height: 50px;
        padding: 0 14px;
    }

    .atakan-pro-split-trigger {
        display: flex;
        width: 100%;
        min-height: 50px;
    }

    .atakan-pro-split-trigger .atakan-pro-link {
        flex: 1 1 auto;
        width: auto;
        min-height: 50px;
        padding-right: 14px;
    }

    .atakan-pro-split-trigger .atakan-pro-trigger {
        flex: 0 0 48px;
        width: 48px;
        min-width: 48px;
        min-height: 50px;
        padding: 0;
    }

    .atakan-pro-link::after,
    .atakan-pro-trigger::after {
        display: none;
    }

    .atakan-pro-dropdown,
    .atakan-pro-mega {
        position: static;

        display: block;

        width: 100%;
        min-width: 0;
        max-height: 0;

        margin: 0;
        padding: 0 7px;
        overflow: hidden;

        border: 0;
        border-radius: 0;
        box-shadow: none;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: none;

        transition:
            max-height 0.3s ease,
            padding 0.3s ease;
    }

    .atakan-pro-item.is-open > .atakan-pro-dropdown,
    .atakan-pro-item.is-open > .atakan-pro-mega {
        max-height: 850px;
        padding: 7px;

        transform: none;
    }

    .atakan-mega-section {
        margin-bottom: 8px;
    }

    .atakan-pro-contact {
        margin: 10px 14px 0;
    }
}

@media (max-width: 560px) {
    .atakan-mega-list {
        grid-template-columns: 1fr;
    }

    .atakan-pro-logo img {
        max-width: 145px;
        height: 42px;
    }
}

/* ==================================================
   Masaüstü açılır menü portal sistemi
================================================== */

@media (min-width: 1050px) {
    .atakan-pro-nav,
    .atakan-pro-menu-wrap,
    .atakan-pro-menu,
    .atakan-pro-item {
        overflow: visible !important;
    }

    .atakan-pro-menu-wrap {
        position: relative;
        z-index: 10001;
    }

    .atakan-pro-dropdown {
        z-index: 10020;
    }

    .atakan-pro-mega,
    .atakan-mega-section {
        pointer-events: auto !important;
    }

    .atakan-mega-section {
        position: relative;
        z-index: 1;
    }

    .atakan-mega-link,
    .atakan-dropdown-link,
    .atakan-pro-sale-link {
        position: relative;
        z-index: 3;
        pointer-events: auto !important;
    }

    .atakan-pro-dropdown.atakan-nav-portal {
        position: fixed !important;
        right: auto !important;
        z-index: 2147483000 !important;

        display: block !important;
        margin: 0 !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: none !important;
    }

    .atakan-pro-mega.atakan-nav-portal {
        display: grid !important;
    }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    .atakan-pro-header,
    .atakan-pro-menu-wrap,
    .atakan-pro-dropdown,
    .atakan-pro-toggle-lines,
    .atakan-pro-toggle-lines::before,
    .atakan-pro-toggle-lines::after {
        transition: none;
    }
}
