﻿/* =====================================================
   _Header.css  —  Site Header Stilleri
   Bağlantı: <link rel="stylesheet" href="~/css/layout/header.css" />
   ===================================================== */

/* ─── Temel değişkenler ─── */
:root {
    --sh-height: 56px;
    --sh-bg: #ffffff;
    --sh-bg2: #f9fafb;
    --sh-border: rgba(0, 0, 0, 0.07);
    --sh-text: #111827;
    --sh-muted: #6b7280;
    --sh-hover-bg: rgba(0, 0, 0, 0.04);
    --sh-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --sh-panel-shadow: 0 8px 20px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
    --sh-radius: 12px;
    --sh-radius-sm: 8px;
    --sh-accent: #2563eb;
    --sh-accent-bg: #eff6ff;
    --sh-accent-text: #1d4ed8;
    --sh-danger: #dc2626;
    --sh-danger-bg: #fef2f2;
    --sh-badge: #ef4444;
    --sh-transition: 0.15s ease;
    --sh-font: -apple-system, 'Segoe UI', system-ui, sans-serif;
}

/* ─── Bootstrap 5 dark mode uyumu ─── */
[data-bs-theme="dark"] {
    --sh-bg: #080e1a;
    --sh-bg2: #111827;
    --sh-border: rgba(255, 255, 255, 0.08);
    --sh-text: #f5f5f5;
    --sh-muted: #9ca3af;
    --sh-hover-bg: rgba(255, 255, 255, 0.06);
    --sh-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --sh-panel-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    --sh-accent-bg: #1e3a5f;
    --sh-accent-text: #93c5fd;
    --sh-danger-bg: #3b1212;
}

/* ─── HEADER - FIXED + GLASS ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    font-family: var(--sh-font);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ─── Navbar - Glassmorphism (başlangıçta saydam) ─── */
.sh-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--sh-height);
    padding: 0 1.25rem;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    position: relative;
    gap: 12px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* ─── Scroll olduğunda Glass Efekt ─── */
.site-header.scrolled .sh-navbar {
    background-color: rgba(0, 62, 82, 0.75) !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06) !important;
}

/* Dark mode scroll */
[data-bs-theme="dark"] .site-header.scrolled .sh-navbar {
    background-color: rgba(8, 14, 26, 0.75) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ─── Saydam modda tüm text'ler beyaz ─── */
.site-header:not(.scrolled) .sh-brand {
    color: #ffffff !important;
}

    .site-header:not(.scrolled) .sh-brand:hover {
        color: rgba(255, 255, 255, 0.8) !important;
    }

.site-header:not(.scrolled) .sh-nav__link {
    color: rgba(255, 255, 255, 0.8) !important;
}

    .site-header:not(.scrolled) .sh-nav__link:hover,
    .site-header:not(.scrolled) .sh-nav__link.active {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
    }

.site-header:not(.scrolled) .sh-icon-btn {
    color: rgba(255, 255, 255, 0.8) !important;
}

    .site-header:not(.scrolled) .sh-icon-btn:hover,
    .site-header:not(.scrolled) .sh-icon-btn[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }

.site-header:not(.scrolled) .sh-user-btn {
    color: #ffffff !important;
}

    .site-header:not(.scrolled) .sh-user-btn:hover,
    .site-header:not(.scrolled) .sh-user-btn[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

.site-header:not(.scrolled) .sh-username {
    color: #ffffff !important;
}

.site-header:not(.scrolled) .sh-chevron {
    stroke: rgba(255, 255, 255, 0.6) !important;
}

.site-header:not(.scrolled) .sh-avatar {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.site-header:not(.scrolled) .sh-auth-btn--ghost {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

    .site-header:not(.scrolled) .sh-auth-btn--ghost:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #ffffff !important;
    }

.site-header:not(.scrolled) .sh-auth-btn--solid {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

    .site-header:not(.scrolled) .sh-auth-btn--solid:hover {
        background: rgba(255, 255, 255, 0.25) !important;
    }

.site-header:not(.scrolled) .sh-hamburger__bar {
    background: #ffffff !important;
}

.site-header:not(.scrolled) .sh-badge {
    border-color: transparent !important;
}

/* ─── Scroll olduğunda text renkleri DEĞİŞMEZ ─── */
/* Scroll öncesindeki görünüm aynen korunur */

.site-header.scrolled .sh-brand {
    color: #ffffff !important;
}

    .site-header.scrolled .sh-brand:hover {
        color: rgba(255, 255, 255, 0.8) !important;
    }

.site-header.scrolled .sh-nav__link {
    color: rgba(255, 255, 255, 0.8) !important;
}

    .site-header.scrolled .sh-nav__link:hover,
    .site-header.scrolled .sh-nav__link.active {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
    }

.site-header.scrolled .sh-icon-btn {
    color: rgba(255, 255, 255, 0.8) !important;
}

    .site-header.scrolled .sh-icon-btn:hover,
    .site-header.scrolled .sh-icon-btn[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }

.site-header.scrolled .sh-user-btn {
    color: #ffffff !important;
}

    .site-header.scrolled .sh-user-btn:hover,
    .site-header.scrolled .sh-user-btn[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

.site-header.scrolled .sh-username {
    color: #ffffff !important;
}

.site-header.scrolled .sh-chevron {
    stroke: rgba(255, 255, 255, 0.6) !important;
}

.site-header.scrolled .sh-avatar {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.site-header.scrolled .sh-auth-btn--ghost {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

    .site-header.scrolled .sh-auth-btn--ghost:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #ffffff !important;
    }

.site-header.scrolled .sh-auth-btn--solid {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

    .site-header.scrolled .sh-auth-btn--solid:hover {
        background: rgba(255, 255, 255, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #ffffff !important;
    }

.site-header.scrolled .sh-hamburger__bar {
    background: #ffffff !important;
}

.site-header.scrolled .sh-badge {
    border-color: transparent !important;
}

/* ─── Marka ─── */
.sh-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--sh-text);
    text-decoration: none;
    letter-spacing: -0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

    .sh-brand:hover {
        color: var(--sh-accent);
    }

/* Resim kabı — sabit kare, yuvarlak köşeli */
.sh-logo-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sh-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sh-brand:hover .sh-logo-wrap {
    transform: scale(1.07);
    opacity: 0.88;
}

/* ─── Desktop nav linkleri (orta) ─── */
.sh-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.sh-nav__link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sh-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--sh-radius-sm);
    transition: background var(--sh-transition), color var(--sh-transition);
    white-space: nowrap;
}

    .sh-nav__link:hover,
    .sh-nav__link.active {
        background: var(--sh-hover-bg);
        color: var(--sh-text);
    }

/* ─── Sağ küme ─── */
.sh-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ─── Ortak ikon butonu ─── */
.sh-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--sh-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    transition: background var(--sh-transition), border-color var(--sh-transition), color var(--sh-transition);
    color: var(--sh-muted);
}

    .sh-icon-btn:hover,
    .sh-icon-btn[aria-expanded="true"] {
        background: var(--sh-hover-bg);
        border-color: var(--sh-border);
        color: var(--sh-text);
    }

    .sh-icon-btn svg {
        width: 17px;
        height: 17px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ─── Bildirim rozeti ─── */
.sh-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--sh-badge);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 1.5px solid var(--sh-bg);
    transition: border-color 0.3s ease;
}

/* ─── Kullanıcı butonu ─── */
.sh-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px 0 5px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--sh-radius-sm);
    cursor: pointer;
    transition: background var(--sh-transition), border-color var(--sh-transition), color var(--sh-transition);
    color: var(--sh-text);
}

    .sh-user-btn:hover,
    .sh-user-btn[aria-expanded="true"] {
        background: var(--sh-hover-bg);
        border-color: var(--sh-border);
    }

.sh-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sh-accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--sh-accent-text);
    flex-shrink: 0;
    user-select: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.sh-username {
    font-size: 13px;
    font-weight: 500;
    color: var(--sh-text);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.sh-chevron {
    width: 13px;
    height: 13px;
    stroke: var(--sh-muted);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--sh-transition), stroke 0.3s ease;
    flex-shrink: 0;
}

.sh-user-btn[aria-expanded="true"] .sh-chevron {
    transform: rotate(180deg);
}

/* ─── Auth butonları ─── */
.sh-auth-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: var(--sh-radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--sh-transition), border-color var(--sh-transition), color var(--sh-transition);
    white-space: nowrap;
}

.sh-auth-btn--ghost {
    background: transparent;
    border: 1px solid var(--sh-border);
    color: var(--sh-muted);
}

    .sh-auth-btn--ghost:hover {
        background: var(--sh-hover-bg);
        color: var(--sh-text);
        border-color: var(--sh-border);
    }

.sh-auth-btn--solid {
    background: var(--sh-accent);
    border: 1px solid var(--sh-accent);
    color: #fff;
}

    .sh-auth-btn--solid:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
    }

/* ─── Hamburger ─── */
.sh-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--sh-radius-sm);
    cursor: pointer;
    padding: 0;
    transition: background var(--sh-transition), border-color var(--sh-transition);
}

    .sh-hamburger:hover {
        background: var(--sh-hover-bg);
        border-color: var(--sh-border);
    }

.sh-hamburger__bar {
    display: block;
    width: 17px;
    height: 1.5px;
    background: var(--sh-muted);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease, background 0.3s ease;
    transform-origin: center;
}

.sh-hamburger[aria-expanded="true"] .sh-hamburger__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.sh-hamburger[aria-expanded="true"] .sh-hamburger__bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.sh-hamburger[aria-expanded="true"] .sh-hamburger__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Dropdown panel (bildirim / kullanıcı) ─── */
.sh-dropdown {
    position: relative;
}

.sh-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: var(--sh-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-panel-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1100;
}

    .sh-panel.sh--open {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0) scale(1);
    }

/* ─── Bildirim paneli ─── */
.sh-notif-panel {
    width: 310px;
}

.sh-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px 9px;
}

    .sh-panel__header span {
        font-size: 13px;
        font-weight: 600;
        color: var(--sh-text);
    }

.sh-panel__see-all {
    font-size: 12px;
    color: var(--sh-muted);
    text-decoration: none;
    transition: color var(--sh-transition);
}

    .sh-panel__see-all:hover {
        color: var(--sh-accent);
    }

.sh-divider {
    height: 1px;
    background: var(--sh-border);
    margin: 0;
}

.sh-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.sh-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--sh-transition);
    border-bottom: 1px solid var(--sh-border);
}

    .sh-notif-item:last-child {
        border-bottom: none;
    }

    .sh-notif-item:hover {
        background: var(--sh-hover-bg);
    }

.sh-notif-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sh-accent);
    flex-shrink: 0;
    margin-top: 5px;
}

.sh-notif-item__dot--read {
    background: var(--sh-border);
}

.sh-notif-item__text p {
    font-size: 13px;
    color: var(--sh-text);
    line-height: 1.45;
    margin: 0 0 3px;
}

.sh-notif-item__text span {
    font-size: 11px;
    color: var(--sh-muted);
}

.sh-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 14px;
    font-size: 13px;
    color: var(--sh-muted);
    text-align: center;
}

    .sh-notif-empty svg {
        width: 28px;
        height: 28px;
        stroke: var(--sh-border);
        fill: none;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.sh-panel__footer {
    padding: 8px 14px;
    text-align: center;
}

/* ─── Kullanıcı paneli ─── */
.sh-user-panel {
    width: 220px;
}

.sh-user-info {
    padding: 13px 14px 11px;
}

.sh-user-info__name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sh-text);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-user-info__role {
    font-size: 11.5px;
    color: var(--sh-muted);
    margin: 0;
}

/* ─── Menü öğeleri ─── */
.sh-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sh-text);
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background var(--sh-transition);
    font-family: var(--sh-font);
}

    .sh-menu-item:hover {
        background: var(--sh-hover-bg);
    }

    .sh-menu-item svg {
        width: 15px;
        height: 15px;
        stroke: var(--sh-muted);
        fill: none;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
    }

.sh-menu-item--danger {
    color: var(--sh-danger);
}

    .sh-menu-item--danger:hover {
        background: var(--sh-danger-bg);
    }

    .sh-menu-item--danger svg {
        stroke: var(--sh-danger);
    }

/* ─── Mobil Drawer ─── */
.sh-drawer {
    display: none;
    flex-direction: column;
    background-color: var(--sh-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sh-border);
    padding: 6px 10px 10px;
    gap: 1px;
}

    .sh-drawer.sh--open {
        display: flex;
    }

.sh-drawer__link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sh-text);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: var(--sh-radius-sm);
    transition: background var(--sh-transition);
}

    .sh-drawer__link:hover {
        background: var(--sh-hover-bg);
    }

    .sh-drawer__link svg {
        width: 16px;
        height: 16px;
        stroke: var(--sh-muted);
        fill: none;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
    }

/* ─── Saydam modda drawer ─── */
.site-header:not(.scrolled) .sh-drawer {
    background-color: rgba(8, 14, 26, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-header:not(.scrolled) .sh-drawer__link {
    color: #ffffff !important;
}

    .site-header:not(.scrolled) .sh-drawer__link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .site-header:not(.scrolled) .sh-drawer__link svg {
        stroke: rgba(255, 255, 255, 0.6) !important;
    }

/* =====================================================
   System Dropdown (Navbar üzerinde hover ile açılan menü)
   NOT: Bu blok bilinçli olarak media query DIŞINDA tutulur;
   masaüstünde her zaman, mobilde ise .sh-nav zaten gizli
   olduğu için otomatik devre dışı kalır.
   ===================================================== */
/*.sh-dropdown-system {
    position: relative;
}

.sh-dropdown-system__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sh-dropdown-system__chevron {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.sh-dropdown-system__toggle[aria-expanded="true"] .sh-dropdown-system__chevron {
    transform: rotate(180deg);
}

.sh-dropdown-system__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px) scale(0.98);
    min-width: 280px;
    list-style: none;
    margin: 0;
    padding: 6px;
    background-color: var(--sh-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-panel-shadow);
    opacity: 0;
    pointer-events: none;
    transform-origin: top center;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1100;
}*/

/* Masaüstünde hover ile aç */
/*@media (min-width: 641px) {
    .sh-dropdown-system:hover .sh-dropdown-system__menu,
    .sh-dropdown-system__menu.sh--open {
        opacity: 1;
        pointer-events: all;
        transform: translateX(-50%) translateY(0) scale(1);
    }*/

    /* Fare menüye giderken aradaki boşlukta kapanmasın diye köprü alan */
    /*.sh-dropdown-system::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 8px;
    }
}

.sh-dropdown-system__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sh-text);
    text-decoration: none;
    border-radius: var(--sh-radius-sm);
    transition: background var(--sh-transition);
    white-space: normal;
}

    .sh-dropdown-system__item:hover {
        background: var(--sh-hover-bg);
    }

.sh-dropdown-system__item-icon {
    font-size: 15px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}*/

/* =====================================================
   SYSTEM DROPDOWN
   Desktop hover + technical drawing preview
   ===================================================== */

.sh-dropdown-system {
    position: relative;
}


/* =====================================================
   SYSTEM TOGGLE
   ===================================================== */

.sh-dropdown-system__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


.sh-dropdown-system__chevron {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}


.sh-dropdown-system__toggle[aria-expanded="true"]
.sh-dropdown-system__chevron {
    transform: rotate(180deg);
}


/* =====================================================
   DESKTOP SYSTEM MENU
   ===================================================== */

@media (min-width: 641px) {

    .sh-dropdown-system__menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        width: 650px;
        max-width: calc(100vw - 24px);
        display: grid;
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 6px;
        list-style: none;
        margin: 0;
        padding: 7px;
        background-color: rgba(8, 14, 26, 0.94);
        backdrop-filter: blur(20px) saturate(140%);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: var(--sh-radius);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.12);
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(-6px) scale(0.985);
        transform-origin: top center;
        transition: opacity 0.16s ease, transform 0.16s ease;
        z-index: 1100;
    }


        /* =================================================
       DROPDOWN AÇILMA
       ================================================= */

        .sh-dropdown-system:hover
        .sh-dropdown-system__menu,
        .sh-dropdown-system:focus-within
        .sh-dropdown-system__menu,
        .sh-dropdown-system__menu.sh--open {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(-50%) translateY(0) scale(1);
        }


    /* =================================================
       HOVER KÖPRÜSÜ
       ================================================= */

    .sh-dropdown-system::after {
        content: "";
        position: absolute;
        top: 100%;
        left: -12px;
        right: -12px;
        height: 10px;
    }


    /* =================================================
       SOL KATEGORİ LİSTESİ
       ================================================= */

    .sh-dropdown-system__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }


        .sh-dropdown-system__list > li {
            margin: 0;
            padding: 0;
        }


    /* =================================================
       CATEGORY ITEM
       ================================================= */

    .sh-dropdown-system__item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 38px;
        padding: 9px 10px;
        box-sizing: border-box;
        font-size: 13px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        border-radius: var(--sh-radius-sm);
        background: transparent;
        outline: none;
        cursor: pointer;
        transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
    }


        .sh-dropdown-system__item:hover,
        .sh-dropdown-system__item:focus-visible,
        .sh-dropdown-system__item.sh--active {
            background: rgba(255, 255, 255, 0.095);
            color: #ffffff;
        }


        .sh-dropdown-system__item:hover {
            transform: translateX(2px);
        }


        .sh-dropdown-system__item:focus-visible {
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
        }


    /* =================================================
       CATEGORY ICON
       ================================================= */

    .sh-dropdown-system__item-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        min-width: 20px;
        font-size: 15px;
        color: rgba(255, 255, 255, 0.55);
        transition: color 0.14s ease, transform 0.14s ease;
    }


    .sh-dropdown-system__item:hover
    .sh-dropdown-system__item-icon,
    .sh-dropdown-system__item:focus-visible
    .sh-dropdown-system__item-icon,
    .sh-dropdown-system__item.sh--active
    .sh-dropdown-system__item-icon {
        color: #ffffff;
        transform: translateX(2px);
    }


    .sh-dropdown-system__item-text {
        min-width: 0;
        line-height: 1.35;
    }


    /* =================================================
       SAĞ PREVIEW
       ================================================= */

    .sh-dropdown-system__preview {
        position: relative;
        min-width: 0;
        min-height: 0;
        display: flex;
        padding-left: 5px;
    }


    /* =================================================
       PREVIEW FRAME
       ================================================= */

    .sh-dropdown-system__preview-frame {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 248px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: linear-gradient( 135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015) );
        border: 1px solid rgba(255, 255, 255, 0.075);
    }


    /* =================================================
       TECHNICAL GRID
       ================================================= */

    .sh-dropdown-system__preview-grid {
        position: absolute;
        inset: 0;
        opacity: 0.18;
        background-image: linear-gradient( rgba(255, 255, 255, 0.06) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px );
        background-size: 22px 22px;
        mask-image: linear-gradient( to bottom, black 0%, rgba(0, 0, 0, 0.5) 65%, transparent 100% );
        -webkit-mask-image: linear-gradient( to bottom, black 0%, rgba(0, 0, 0, 0.5) 65%, transparent 100% );
        pointer-events: none;
    }


    /* =================================================
       CENTER GLOW
       ================================================= */

    .sh-dropdown-system__preview-frame::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
        background: radial-gradient( circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 42%, transparent 72% );
        pointer-events: none;
    }


    /* =================================================
       SVG TECHNICAL DRAWING
       ================================================= */

    .sh-dropdown-system__preview-image {
        position: relative;
        z-index: 2;
        display: block;
        width: 100%;
        max-width: 300px;
        height: 190px;
        max-height: 190px;
        object-fit: contain;
        padding: 10px;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transform: translateY(5px) scale(0.985);
        transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
        /*
         * SVG çizimleri için tarayıcı render optimizasyonu.
         */
        will-change: opacity, transform;
    }


        .sh-dropdown-system__preview-image.sh--visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }


    /* =================================================
       PREVIEW LABEL
       ================================================= */

    .sh-dropdown-system__preview-label {
        position: absolute;
        left: 13px;
        right: 13px;
        bottom: 11px;
        z-index: 3;
        display: flex;
        flex-direction: column;
        gap: 2px;
        pointer-events: none;
    }


    .sh-dropdown-system__preview-kicker {
        font-size: 8px;
        font-weight: 600;
        letter-spacing: 1.4px;
        color: rgba(255, 255, 255, 0.38);
    }


    .sh-dropdown-system__preview-title {
        font-size: 11px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.78);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* =================================================
       HEADER STATES
       ================================================= */

    .site-header:not(.scrolled)
    .sh-dropdown-system__menu,
    .site-header.scrolled
    .sh-dropdown-system__menu {
        background-color: rgba(8, 14, 26, 0.94);
        border-color: rgba(255, 255, 255, 0.10);
    }


    /* =================================================
       REDUCED MOTION
       ================================================= */

    @media (prefers-reduced-motion: reduce) {

        .sh-dropdown-system__menu {
            transition: opacity 0.01ms linear;
        }


        .sh-dropdown-system__item {
            transition: background 0.01ms linear, color 0.01ms linear;
        }


        .sh-dropdown-system__preview-image {
            transition: none;
            transform: none;
        }
    }
}


/* =====================================================
   SYSTEM DROPDOWN — FORCE DARK THEME
   ===================================================== */

.site-header:not(.scrolled)
.sh-dropdown-system__menu,
.site-header.scrolled
.sh-dropdown-system__menu {
    background-color: rgba(8, 14, 26, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}


.site-header:not(.scrolled)
.sh-dropdown-system__item,
.site-header.scrolled
.sh-dropdown-system__item {
    color: #ffffff !important;
}


    .site-header:not(.scrolled)
    .sh-dropdown-system__item:hover,
    .site-header.scrolled
    .sh-dropdown-system__item:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }


.site-header:not(.scrolled)
.sh-dropdown-system__toggle
.sh-dropdown-system__chevron,
.site-header.scrolled
.sh-dropdown-system__toggle
.sh-dropdown-system__chevron {
    stroke: rgba(255, 255, 255, 0.8) !important;
}


/* =====================================================
   MOBİLDE SYSTEM PREVIEW TAMAMEN KAPALI
   ===================================================== */

@media (max-width: 640px) {

    .sh-dropdown-system__menu {
        display: none !important;
    }

    .sh-dropdown-system__preview {
        display: none !important;
    }
}













/* Saydam / scroll header modunda dropdown panel her zaman koyu ve okunur kalsın */
.site-header:not(.scrolled) .sh-dropdown-system__menu,
.site-header.scrolled .sh-dropdown-system__menu {
    background-color: rgba(8, 14, 26, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.site-header:not(.scrolled) .sh-dropdown-system__item,
.site-header.scrolled .sh-dropdown-system__item {
    color: #ffffff !important;
}

    .site-header:not(.scrolled) .sh-dropdown-system__item:hover,
    .site-header.scrolled .sh-dropdown-system__item:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

.site-header:not(.scrolled) .sh-dropdown-system__toggle .sh-dropdown-system__chevron,
.site-header.scrolled .sh-dropdown-system__toggle .sh-dropdown-system__chevron {
    stroke: rgba(255, 255, 255, 0.8) !important;
}

/* =====================================================
   Mobil Drawer — System Accordion
   ===================================================== */
.sh-drawer-system {
    display: flex;
    flex-direction: column;
}

.sh-drawer-system__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--sh-font);
}

.sh-drawer-system__label {
    flex: 1;
    text-align: left;
}

.sh-drawer-system__chevron {
    width: 14px;
    height: 14px;
    stroke: var(--sh-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.sh-drawer-system.sh--open .sh-drawer-system__chevron {
    transform: rotate(180deg);
}

.sh-drawer-system__menu {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.2s ease;
}

    .sh-drawer-system__menu > * {
        min-height: 0;
    }

.sh-drawer-system.sh--open .sh-drawer-system__menu {
    grid-template-rows: 1fr;
}

.sh-drawer-system__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sh-text);
    text-decoration: none;
    padding: 9px 12px 9px 30px;
    border-radius: var(--sh-radius-sm);
    transition: background var(--sh-transition);
    overflow: hidden;
}

    .sh-drawer-system__item:hover {
        background: var(--sh-hover-bg);
    }

/* Saydam modda drawer accordion */
.site-header:not(.scrolled) .sh-drawer-system__toggle {
    color: #ffffff !important;
}

    .site-header:not(.scrolled) .sh-drawer-system__toggle:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .site-header:not(.scrolled) .sh-drawer-system__toggle svg {
        stroke: rgba(255, 255, 255, 0.6) !important;
    }

.site-header:not(.scrolled) .sh-drawer-system__item {
    color: rgba(255, 255, 255, 0.85) !important;
}

    .site-header:not(.scrolled) .sh-drawer-system__item:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .sh-nav {
        display: none;
    }

    .sh-hamburger {
        display: flex;
    }

    .sh-username,
    .sh-chevron {
        display: none;
    }

    .sh-panel {
        position: fixed;
        top: var(--sh-height);
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        transform-origin: top center;
        transform: translateY(-6px) scale(0.98);
    }

        .sh-panel.sh--open {
            transform: translateY(0) scale(1);
        }

    .sh-notif-list {
        max-height: 60vh;
    }
}


