/* Site menü — koyu (varsayılan) + ana sayfa açık tema */

.site-navbar {
    background-color: #1d2938;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.logo-link {
    color: #fafbfd;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    font-size: 1.55rem;
    line-height: 1;
    flex: 0 0 auto;
}

.logo-link:hover { color: #fff; }

.logo-link .logo-accent { color: #d03792; }

.site-navbar .navbar-collapse { flex: 0 0 auto; }

@media (min-width: 992px) {
    .site-navbar .navbar-collapse {
        display: flex !important;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        margin-right: 8px;
    }

    .site-navbar .navbar-toggler { display: none !important; }

    .site-nav-actions { margin-left: 0; }
}

/* ---- Üst menü linkleri: düz ikonlu ---- */
.site-nav-links {
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    flex-wrap: nowrap;
}

.site-nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(250, 251, 253, 0.88) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #f58529, #dd2a7b 55%, #8134af);
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.22s ease;
}

.site-nav-ico {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    opacity: 0.92;
    color: currentColor;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* style.css .nav-link path { fill: #fafbfd } eski koyu header için — menü ikonlarını bozmasın */
.site-nav-link.nav-link path,
.site-nav-link path,
.site-nav-ico path {
    fill: currentColor !important;
}

.site-nav-link.is-active,
.site-nav-link:hover,
.site-nav-link:focus,
.hover-nav-item:hover > .site-nav-link {
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.site-nav-link.is-active::after,
.site-nav-link:hover::after,
.site-nav-link:focus::after,
.hover-nav-item:hover > .site-nav-link::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-nav-link.is-active .site-nav-ico,
.site-nav-link:hover .site-nav-ico,
.hover-nav-item:hover > .site-nav-link .site-nav-ico {
    opacity: 1;
    transform: translateY(-0.5px);
}

.site-nav-caret {
    width: 6px;
    height: 6px;
    margin-left: 1px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hover-nav-item:hover .site-nav-caret {
    transform: rotate(225deg) translateY(-1px);
    opacity: 1;
}

/* ---- Mega menü ---- */
.hover-nav-item {
    position: relative;
}

/* Link ile panel arasındaki boşlukta hover kopmasın */
.hover-nav-item::after {
    content: "";
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    width: min(720px, 86vw);
    height: 22px;
    z-index: 1190;
    display: none;
}

.hover-nav-item:has(.mega-menu--tools)::after {
    left: 50%;
    right: auto;
    width: min(380px, 86vw);
    transform: translateX(-50%);
}

.hover-nav-item:hover::after,
.hover-nav-item:focus-within::after {
    display: block;
}

.mega-menu {
    visibility: hidden;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    z-index: 1200;
    width: min(720px, 86vw);
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(23, 21, 26, 0.08);
    box-shadow: 0 24px 50px rgba(20, 16, 30, 0.16);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.12s;
}

.mega-menu--services {
    left: 0;
    right: auto;
}

.mega-menu--tools {
    width: min(380px, 86vw);
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, 8px);
}

.hover-nav-item:hover .mega-menu,
.hover-nav-item:focus-within .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.hover-nav-item:hover .mega-menu--tools,
.hover-nav-item:focus-within .mega-menu--tools {
    transform: translate(-50%, 0);
}

.mega-menu-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    padding: 0 4px 12px;
    border-bottom: 1px solid rgba(23, 21, 26, 0.06);
}

.mega-menu-head strong {
    color: #17151a;
    font-size: 14px;
    font-weight: 750;
}

.mega-menu-head span {
    color: #7a7380;
    font-size: 12px;
    font-weight: 500;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mega-card {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    background: #faf7f9;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mega-card:hover {
    background: #fff;
    border-color: rgba(221, 42, 123, 0.22);
    transform: translateY(-1px);
}

.mega-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #fff, #f6eef5);
    border: 1px solid rgba(221, 42, 123, 0.1);
}

.mega-card-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.mega-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mega-card-title {
    color: #17151a;
    font-size: 14px;
    font-weight: 720;
    line-height: 1.2;
}

.mega-card-desc {
    color: #7a7380;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.mega-card-arrow {
    color: #dd2a7b;
    font-size: 16px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mega-card:hover .mega-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.mega-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-list-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    background: #faf7f9;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mega-list-item:hover {
    background: #fff;
    border-color: rgba(221, 42, 123, 0.22);
}

.mega-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(221, 42, 123, 0.1);
}

.mega-list-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-list-title {
    color: #17151a;
    font-size: 14px;
    font-weight: 700;
}

.mega-list-desc {
    color: #7a7380;
    font-size: 12px;
}

/* Eski hover-section gizle (kalan yerler için) */
.hover-section { display: none !important; }

/* ---- Aksiyonlar ---- */
.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.site-nav-actions .navbar-toggler {
    margin: 0;
    padding: 8px 10px;
    border-radius: 12px;
}

.site-nav-cart,
.site-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-nav-cart {
    position: relative;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    min-width: 42px;
}

.site-nav-cart:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: translateY(-1px);
}

.site-nav-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d03792;
    border: 2px solid #1d2938;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.site-nav-cta {
    color: #fff !important;
    background: #d03792;
    border: 1px solid transparent;
    box-shadow: 0 10px 20px rgba(208, 55, 146, 0.28);
}

.site-nav-cta:hover {
    color: #fff !important;
    background: #b82f7f;
    transform: translateY(-1px);
}

/* ---- Ana sayfa: floating capsule menü ---- */
.site-nav-capsule {
    display: contents;
}

.site-nav-sep {
    width: 1px;
    align-self: stretch;
    margin: 8px 4px;
    background: rgba(250, 251, 253, 0.18);
    list-style: none;
    pointer-events: none;
}

.header-home .site-nav-sep {
    background: rgba(23, 21, 26, 0.1);
}

@media (max-width: 991.98px) {
    .site-nav-sep {
        width: 100%;
        height: 1px;
        margin: 6px 0;
        align-self: stretch;
    }
}

.header-home .site-navbar { background: transparent !important; }

.header-home .logo-link {
    color: #0e0c12 !important;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.header-home .logo-link .logo-accent {
    color: #dd2a7b !important;
    background-image: linear-gradient(115deg, #ff8a1f 0%, #f31278 48%, #9b22d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

@media (min-width: 992px) {
    .header-home.navbar > .container.site-nav-inner,
    .header-home .site-nav-inner {
        display: grid !important;
        grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
        align-items: center;
        gap: 16px;
        flex-wrap: nowrap;
    }

    .header-home .logo-link {
        grid-column: 1;
        justify-self: start;
        z-index: 2;
    }

    .header-home .navbar-collapse {
        grid-column: 2;
        flex: 0 0 auto !important;
        justify-content: center !important;
        margin: 0 !important;
        width: auto !important;
    }

    .header-home .site-nav-actions {
        grid-column: 3;
        justify-self: end;
        margin-left: 0 !important;
        z-index: 2;
    }

    .header-home .site-nav-capsule {
        display: inline-flex;
        align-items: center;
        padding: 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.58);
        border: 1px solid rgba(255, 255, 255, 0.78);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.85) inset,
            0 14px 36px rgba(40, 16, 40, 0.1);
        backdrop-filter: blur(16px) saturate(1.2);
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
    }

    .header-home.is-scrolled .site-nav-capsule {
        background: rgba(255, 255, 255, 0.82);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.9) inset,
            0 10px 24px rgba(40, 16, 40, 0.08);
    }

    .header-home .site-nav-links {
        gap: 2px;
        margin: 0 !important;
    }

    .header-home .site-nav-links.ms-auto {
        margin-left: 0 !important;
    }

    .header-home .site-nav-sep {
        width: 1px;
        min-height: 18px;
        margin: 0 6px;
        align-self: center;
        background: rgba(23, 21, 26, 0.12);
    }
}

@media (min-width: 992px) and (max-width: 1299.98px) {
    .header-home .site-nav-link {
        padding: 8px 11px !important;
        font-size: 12.5px !important;
        gap: 5px;
    }

    .header-home .site-nav-link .site-nav-ico {
        width: 14px;
        height: 14px;
    }
}

.header-home .site-nav-link {
    color: #3a3340 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 38px;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    letter-spacing: 0.01em;
}

.header-home .site-nav-link::after {
    display: none !important;
}

.header-home .site-nav-link.is-active,
.header-home .site-nav-link:hover,
.header-home .site-nav-link:focus,
.header-home .hover-nav-item:hover > .site-nav-link {
    color: #fff !important;
    background: #17151a !important;
    border: 0 !important;
    box-shadow: 0 8px 18px rgba(23, 21, 26, 0.18) !important;
}

.header-home .site-nav-link.is-active {
    background: linear-gradient(115deg, #f58529 0%, #dd2a7b 55%, #8134af 100%) !important;
    box-shadow: 0 10px 22px rgba(221, 42, 123, 0.28) !important;
}

.header-home .site-nav-ico {
    color: currentColor !important;
    width: 15px;
    height: 15px;
    opacity: 1;
}

.header-home .site-nav-link span:not(.site-nav-caret) {
    line-height: 1;
}

.header-home .site-nav-caret {
    opacity: 0.55;
    border-width: 1.4px;
}

.header-home .site-nav-cart {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    color: #17151a;
    background: transparent;
    border: 1px solid rgba(23, 21, 26, 0.1);
    box-shadow: none;
}

.header-home .site-nav-cart-label {
    display: none;
}

.header-home .site-nav-cart:hover {
    color: #dd2a7b;
    background: transparent;
    border-color: rgba(221, 42, 123, 0.28);
    box-shadow: none;
    transform: translateY(-1px);
    filter: none;
}

.header-home .site-nav-cart-count {
    top: -2px;
    right: -2px;
    background: #dd2a7b;
    border-color: #fff;
}

.header-home .site-nav-cta {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: transparent !important;
    color: #17151a !important;
    border: 1px solid rgba(23, 21, 26, 0.1) !important;
    box-shadow: none !important;
    font-weight: 650;
}

.header-home .site-nav-cta:hover {
    background: transparent !important;
    color: #dd2a7b !important;
    border-color: rgba(221, 42, 123, 0.28) !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

.header-home .site-nav-actions {
    gap: 10px;
}

/* Mega menü: kapsülün altına yumuşak iniş */
.header-home .mega-menu {
    top: calc(100% + 12px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px 60px rgba(30, 16, 40, 0.16);
}

.header-home .hover-nav-item::after {
    height: 24px;
}

.header-home .site-nav-actions .navbar-toggler {
    border-color: rgba(221, 42, 123, 0.22) !important;
    background: rgba(255, 255, 255, 0.75);
}

.header-home .navbar-toggler-icon {
    filter: invert(1) brightness(0.18);
}

@media (max-width: 1199.98px) {
    .site-nav-cart-label { display: none; }
    .site-nav-cart { width: 42px; padding: 0; }
    .mega-menu { width: min(560px, 90vw); }
}

@media (max-width: 991.98px) {
    .site-nav-cart-label { display: none; }
    .site-nav-cart { width: 42px; padding: 0; }
    .mega-grid { grid-template-columns: 1fr; }
}
