:root {
    --slh-bg: #0a0a0a;
    --slh-text: #ffffff;
    --slh-muted: #b7b7b7;
    --slh-accent: #d71920;
    --slh-height: 98px;
    --slh-height-compact: 72px;
    --slh-max-width: 1680px;
}

.sosyolab-header-mount,
.lsh-header-mount,
.slh-header-system,
.slh-header-system * {
    box-sizing: border-box;
}

.slh-header-system {
    width: 100%;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.slh-header-spacer {
    width: 100%;
    height: var(--slh-height);
}

.slh-header {
    position: fixed;
    z-index: 2147482000;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--slh-height);
    margin: 0;
    padding: 0;
    background: rgba(10, 10, 10, .985);
    color: var(--slh-text);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .025);
    transition: height .28s ease, background .28s ease, box-shadow .28s ease;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .slh-header {
    top: 32px;
}

.slh-header.is-condensed {
    height: var(--slh-height-compact);
    background: rgba(7, 7, 7, .965);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .28);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
}

.slh-header-inner {
    width: min(calc(100% - 7vw), var(--slh-max-width));
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

.slh-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: min(285px, 22vw);
    max-height: 62px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    transform-origin: left center;
    transition: transform .22s ease, width .28s ease, opacity .22s ease;
}

.slh-logo:hover {
    transform: scale(1.045);
}

.slh-header.is-condensed .slh-logo {
    width: min(235px, 19vw);
}

.slh-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 62px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: left center;
}

.slh-header.is-condensed .slh-logo img {
    max-height: 50px;
}

.slh-site-title {
    color: #fff;
    font-size: clamp(25px, 2vw, 39px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
}

.slh-desktop-nav {
    min-width: 0;
    margin-left: auto;
}

.slh-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.slh-desktop-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(23px, 2.15vw, 43px);
}

.slh-desktop-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.slh-desktop-menu > li:empty {
    display: none !important;
}

.slh-desktop-menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--slh-text);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: clamp(14px, .95vw, 17px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .015em;
    transition: color .2s ease, transform .2s ease;
}

.slh-desktop-menu > li > a::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    background: var(--slh-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.slh-desktop-menu > li:hover > a,
.slh-desktop-menu > li.is-current > a,
.slh-desktop-menu > li.is-current-ancestor > a,
.slh-desktop-menu > li.current-menu-item > a,
.slh-desktop-menu > li.current-menu-ancestor > a {
    color: #fff;
    transform: translateY(-1px);
}

.slh-desktop-menu > li:hover > a::before,
.slh-desktop-menu > li.is-current > a::before,
.slh-desktop-menu > li.is-current-ancestor > a::before,
.slh-desktop-menu > li.current-menu-item > a::before,
.slh-desktop-menu > li.current-menu-ancestor > a::before {
    transform: scaleX(1);
}

.slh-desktop-menu .menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.slh-desktop-menu .sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 220px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: #111;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .42);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.slh-desktop-menu li:hover > .sub-menu,
.slh-desktop-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.slh-desktop-menu .sub-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

.slh-desktop-menu .sub-menu a:hover {
    background: rgba(215, 25, 32, .14);
}

/* Elementor ve tema kaynaklı genel button stillerini sıfırlar. Açıklamasız kırmızı blok oluşmaz. */
.slh-header .slh-hamburger,
.slh-header .slh-mobile-close {
    appearance: none !important;
    -webkit-appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background: transparent !important;
    background-image: none !important;
    color: #fff !important;
}

.slh-hamburger,
.slh-mobile-drawer,
.slh-mobile-backdrop {
    display: none !important;
}

.slh-menu-warning {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

body.slh-menu-open {
    overflow: hidden;
}

@media (max-width: 1050px) {
    :root {
        --slh-height: 78px;
        --slh-height-compact: 66px;
    }

    .slh-header-inner {
        width: calc(100% - 32px);
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 16px;
    }

    .slh-desktop-nav {
        display: none !important;
    }

    .slh-hamburger {
        grid-column: 1;
        justify-self: start;
        width: 48px !important;
        height: 48px !important;
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid rgba(255, 255, 255, .15) !important;
        border-radius: 8px !important;
        cursor: pointer;
        transition: background .2s ease, border-color .2s ease;
    }

    .slh-hamburger:hover,
    .slh-hamburger:focus-visible {
        background: rgba(255, 255, 255, .07) !important;
        border-color: rgba(255, 255, 255, .3) !important;
    }

    .slh-logo,
    .slh-header.is-condensed .slh-logo {
        grid-column: 2;
        justify-self: end;
        justify-content: flex-end;
        width: min(205px, 56vw);
        max-height: 50px;
        transform-origin: right center;
    }

    .slh-logo img,
    .slh-header.is-condensed .slh-logo img {
        max-height: 50px;
        object-position: right center;
    }

    .slh-site-title {
        font-size: clamp(25px, 5vw, 36px);
        text-align: right;
    }

    .slh-hamburger-line {
        width: 24px;
        height: 2px;
        flex: 0 0 auto;
        border-radius: 999px;
        background: currentColor;
        transition: transform .24s ease, opacity .2s ease;
    }

    .slh-header.is-mobile-open .slh-hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .slh-header.is-mobile-open .slh-hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .slh-header.is-mobile-open .slh-hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .slh-mobile-backdrop {
        position: fixed;
        z-index: 1;
        inset: var(--slh-height) 0 0;
        display: block !important;
        background: rgba(0, 0, 0, .7);
        opacity: 0;
        visibility: hidden;
        transition: opacity .24s ease, visibility .24s ease;
    }

    .slh-header.is-condensed .slh-mobile-backdrop {
        inset-block-start: var(--slh-height-compact);
    }

    .slh-mobile-drawer {
        position: fixed;
        z-index: 2;
        top: var(--slh-height);
        left: 0;
        bottom: 0;
        width: min(410px, 88vw);
        display: flex !important;
        flex-direction: column;
        background: #0d0d0d;
        border-right: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 25px 0 60px rgba(0, 0, 0, .38);
        transform: translateX(-102%);
        transition: transform .28s cubic-bezier(.22, .61, .36, 1), top .28s ease;
        overflow-y: auto;
    }

    .slh-header.is-condensed .slh-mobile-drawer {
        top: var(--slh-height-compact);
    }

    .slh-header.is-mobile-open .slh-mobile-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .slh-header.is-mobile-open .slh-mobile-drawer {
        transform: translateX(0);
    }

    .slh-mobile-drawer-head {
        min-height: 68px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 22px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .slh-mobile-title {
        color: #fff;
        font-size: 18px;
        font-weight: 800;
        letter-spacing: .12em;
    }

    .slh-mobile-close {
        width: 42px !important;
        height: 42px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font: inherit !important;
        font-size: 34px !important;
        line-height: 1 !important;
        cursor: pointer;
    }

    .slh-mobile-nav {
        padding: 18px 22px 40px;
    }

    .slh-mobile-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .slh-mobile-menu li {
        position: relative;
    }

    .slh-mobile-menu a {
        display: block;
        padding: 17px 44px 17px 2px;
        background: transparent;
        color: #fff;
        text-decoration: none;
        text-transform: uppercase;
        font-size: 18px;
        font-weight: 800;
        letter-spacing: .025em;
    }

    .slh-mobile-menu .is-current > a,
    .slh-mobile-menu .is-current-ancestor > a,
    .slh-mobile-menu .current-menu-item > a,
    .slh-mobile-menu .current-menu-ancestor > a {
        color: var(--slh-accent);
    }

    .slh-submenu-toggle {
        appearance: none;
        position: absolute;
        top: 9px;
        right: 0;
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        cursor: pointer;
    }

    .slh-submenu-toggle::before {
        content: "";
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-3px) rotate(45deg);
        transition: transform .2s ease;
    }

    .slh-submenu-toggle[aria-expanded="true"]::before {
        transform: translateY(3px) rotate(225deg);
    }

    .slh-mobile-menu .sub-menu {
        display: none;
        margin: 0 0 10px;
        padding: 4px 0 8px 14px;
        list-style: none;
        border-left: 2px solid rgba(215, 25, 32, .75);
    }

    .slh-mobile-menu .sub-menu.is-open {
        display: block;
    }

    .slh-mobile-menu .sub-menu a {
        padding: 11px 42px 11px 12px;
        color: #d1d1d1;
        font-size: 15px;
        font-weight: 700;
    }
}

@media (max-width: 782px) {
    body.admin-bar .slh-header {
        top: 46px;
    }
}

@media (max-width: 480px) {
    :root {
        --slh-height: 72px;
        --slh-height-compact: 62px;
    }

    .slh-header-inner {
        width: calc(100% - 24px);
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }

    .slh-hamburger {
        width: 44px !important;
        height: 44px !important;
    }

    .slh-logo,
    .slh-header.is-condensed .slh-logo {
        width: min(190px, 62vw);
    }

    .slh-mobile-menu a {
        font-size: 17px;
    }
}
