/* MODERN HEADER */
.site-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    padding: 12px 20px;
    color: var(--header-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 40px rgba(59, 130, 246, 0.1);
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-title a {
    font-size: 24px;
    font-weight: 700;
    color: var(--header-text);
}
.site-title a:hover { text-decoration: none; }

/* Header Menüleri - Sade Stil */
.header-menus {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-menu-list li {
    position: relative;
    margin: 0;
}

.header-menu-list > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--header-text);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.header-menu-list > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.header-menu-list > li > a:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    color: var(--header-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}

.header-menu-list > li > a:hover::before {
    left: 100%;
}

/* Alt menüsü olan ana menü linklerine ok işareti ekle */
.header-menu-list > li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.header-menu-list > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Alt menü (dropdown) stilleri */
.header-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    border: 1px solid var(--border-color);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.header-menu-list li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-menu-list .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-menu-list .sub-menu a:hover {
    background-color: #f8fafc;
    color: var(--primary-hover);
    padding-left: 25px;
}

/* Header sağ kısmı - kullanıcı menüsü */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Kullanıcı Menüsü ve Bildirimler */
.header-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-icon-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--header-text);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notification-bell-container,
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-avatar-link {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-avatar-link:hover {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.user-avatar-link img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.unread-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Dropdown Menüler */
.notifications-dropdown,
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.notification-bell-container:hover .notifications-dropdown,
.user-menu-container:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notifications-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-color);
    font-size: 16px;
}

.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.notification-list li {
    border-bottom: 1px solid var(--border-color);
}

.notification-list li:last-child {
    border-bottom: none;
}

.notification-list a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.notification-list a:hover {
    background-color: var(--background-color);
}

.notification-list .unread {
    background-color: #f0f9ff;
    border-left: 3px solid var(--primary-color);
}

.notification-time {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.no-notifications {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Kullanıcı Dropdown Menüsü */
.user-info {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.user-info strong {
    display: block;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.user-info span {
    color: var(--text-light);
    font-size: 14px;
}

.user-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.user-dropdown-menu li {
    margin: 0;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.user-dropdown-menu a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.user-dropdown-menu i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.user-dropdown-menu hr {
    margin: 10px 20px;
    border: none;
    border-top: 1px solid var(--border-color);
}

.unread-count-pill {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

/* Mobil Hamburger Menü */
.mobile-menu-toggle {
    display: none; /* Desktop'ta gizli */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--header-text);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10000;
    
    /* Button element için varsayılan stilleri sıfırla */
    padding: 0;
    margin: 0;
    font-family: inherit;
    outline: none;
}

/* Mobilde hamburger menüyü görünür yap */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobil menü dropdown - SOLDAN SLIDING */
.mobile-menu {
    position: fixed;
    top: 110px; /* Daha aşağıda açılsın */
    left: -230px; /* Genişliğe göre ayarlandı */
    width: 220px; /* 3cm genişlik (yaklaşık) */
    height: 450px; /* 12cm yükseklik (yaklaşık) */
    max-height: 450px;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 9999;
    padding: 15px 0;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0 !important; /* Zorla açılmasını sağla */
    display: block !important;
}

/* Mobil menü overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.mobile-menu li {
    margin: 0;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding-left: 24px;
    transform: translateX(6px);
}

.mobile-menu a i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    opacity: 0.8;
}

.mobile-menu a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.mobile-menu li:last-child a {
    border-bottom: none;
}
