/* =========================================================
   HEADER
   Temiz, tek sıra, beyaz zemin, desktop + mobil uyumlu
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e9e9e9;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 0;
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 0 0 auto;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    text-decoration: none;
}

.site-brand__text {
    display: block;
    color: #111111;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.site-header__desktop-nav {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

/* =========================================================
   DESKTOP NAV
   ========================================================= */

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    flex-wrap: nowrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.site-nav a:hover {
    color: #111111;
    background: #f7f7f7;
    border-color: #ebebeb;
}

/* =========================================================
   LANGUAGE DROPDOWN
   ========================================================= */

.site-language-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.site-language-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #ffffff;
    color: #222222;
    cursor: pointer;
    transition: all 0.2s ease;
}

.site-language-dropdown__toggle:hover {
    background: #f7f7f7;
    border-color: #dcdcdc;
}

.site-language-dropdown__current {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.site-language-dropdown__icon {
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1;
}

.site-language-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.site-language-dropdown:hover .site-language-dropdown__menu,
.site-language-dropdown:focus-within .site-language-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-language-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.site-language-dropdown__item:hover,
.site-language-dropdown__item.is-active {
    background: #f6f6f6;
}

.site-language-dropdown__item-code {
    min-width: 36px;
    flex-shrink: 0;
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.site-language-dropdown__item-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #222222;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   MOBILE TOGGLE
   ========================================================= */

.site-menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    flex: 0 0 auto;
}

.site-menu-toggle:hover {
    background: #f7f7f7;
}

.site-menu-toggle span {
    position: absolute;
    left: 10px;
    width: 18px;
    height: 2px;
    background: #111111;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.site-menu-toggle span:nth-child(1) {
    top: 12px;
}

.site-menu-toggle span:nth-child(2) {
    top: 19px;
}

.site-menu-toggle span:nth-child(3) {
    top: 26px;
}

/* =========================================================
   MOBILE DRAWER
   ========================================================= */

.site-drawer {
    display: none;
}

.site-drawer__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.site-drawer__panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 92vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: -14px 0 40px rgba(0, 0, 0, 0.10);
    transform: translateX(100%);
    transition: transform 0.28s ease;
}

.site-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 0 16px;
    border-bottom: 1px solid #ededed;
}

.site-drawer__title {
    color: #111111;
    font-size: 17px;
    font-weight: 800;
}

.site-drawer__close {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #ffffff;
    color: #111111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.site-drawer__close:hover {
    background: #f7f7f7;
}

.site-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.site-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-drawer__nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ececec;
    border-radius: 10px;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-drawer__nav a:hover {
    background: #f7f7f7;
    border-color: #e3e3e3;
}

.site-drawer__languages {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ededed;
}

.site-drawer__languages-title {
    margin-bottom: 10px;
    color: #111111;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-drawer__language-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-drawer__language-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ececec;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-drawer__language-item:hover,
.site-drawer__language-item.is-active {
    background: #f7f7f7;
    border-color: #e3e3e3;
}

.site-drawer__language-code {
    min-width: 36px;
    flex-shrink: 0;
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.site-drawer__language-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #222222;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   OPEN STATE
   ========================================================= */

body.site-drawer-open {
    overflow: hidden;
}

body.site-drawer-open .site-drawer__overlay {
    opacity: 1;
    visibility: visible;
}

body.site-drawer-open .site-drawer__panel {
    transform: translateX(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 993px) {
    .site-header__actions--desktop {
        display: flex;
    }

    .site-header__desktop-nav {
        display: block;
    }
}

@media (max-width: 992px) {
    .site-header__inner {
        min-height: 60px;
        gap: 12px;
    }

    .site-header__desktop-nav {
        display: none;
    }

    .site-language-dropdown {
        display: none;
    }

    .site-menu-toggle {
        display: inline-block;
    }

    .site-drawer {
        display: block;
    }

    .site-brand__text {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        min-height: 56px;
    }

    .site-brand {
        max-width: calc(100% - 56px);
    }

    .site-brand__text {
        font-size: 18px;
    }

    .site-drawer__panel {
        width: min(320px, 100vw);
    }
}