
header.main-nav {
    background-color: var(--nav-bg); padding: 0 10%; display: flex;
    justify-content: space-between; align-items: center; height: 80px;
    border-bottom: 3px solid var(--neon-mor); position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000; transition: transform 0.4s ease-in-out;
}
header.main-nav.nav-hidden { transform: translateY(-110%); }

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 24px; 
    font-weight: 800; 
    color: white; 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}
.header-logo {
    height: 45px; 
    width: auto;
    object-fit: contain;
}
.logo span { color: var(--neon-mor); }

nav ul { list-style: none; display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; }
nav ul li a { color: white; text-decoration: none; font-size: 14px; font-weight: bold; transition: 0.3s; }
nav ul li a:hover, nav ul li a.active-tab { color: var(--neon-mor); }

.user-dropdown { position: relative; display: inline-block; }
.dropdown-trigger {
    background: rgba(96, 29, 194, 0.1); border: 1px solid var(--neon-mor);
    padding: 8px 18px; border-radius: 50px; color: white; cursor: pointer;
    display: flex; align-items: center; gap: 10px; transition: 0.3s;
    font-family: 'Poppins', sans-serif; z-index: 1001;
}
.dropdown-trigger:hover { box-shadow: 0 0 15px rgba(96, 29, 194, 0.4); background: rgba(96, 29, 194, 0.2); }
.user-name-text { font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.arrow-icon { font-size: 10px; color: var(--neon-mor); transition: 0.3s; }

.dropdown-content {
    display: none; position: absolute; right: 0; top: 100%; background: #0d0d0d;
    min-width: 200px; border: 1px solid var(--neon-mor); border-radius: 12px;
    padding: 5px 0; z-index: 9999; box-shadow: 0 15px 35px rgba(0,0,0,0.9);
    animation: menuFadeIn 0.2s ease-out;
}
.dropdown-content::before { content: ""; position: absolute; top: -20px; left: 0; width: 100%; height: 20px; background: transparent; }
.dropdown-content a { color: #fff; padding: 12px 20px; text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; transition: 0.2s; }
.dropdown-content a i { color: var(--neon-mor); width: 18px; text-align: center; }
.dropdown-content a:hover { background: rgba(96, 29, 194, 0.2); color: var(--neon-mor); padding-left: 25px; }
.user-dropdown:hover .dropdown-content { display: block; }
.user-dropdown:hover .arrow-icon { transform: rotate(180deg); }
.logout-link { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 5px; }
.logout-link:hover { color: #ff4b4b !important; background: rgba(255, 75, 75, 0.1) !important; }

.desktop-only { display: block !important; }
.mobile-only { display: none !important; }

.nav-bell { position: relative; margin-right: 10px; }
.nav-bell a { font-size: 20px; position: relative; display: flex; align-items: center; color: var(--yazi-beyaz); text-decoration: none; transition: 0.3s; }
.nav-bell a:hover { color: var(--neon-mor); }
.notif-badge { position: absolute; top: -8px; right: -12px; background: #ff0000; color: white; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 50%; display: none; }

.floating-bell { 
    position: fixed; bottom: 30px; right: 20px; width: 55px; height: 55px; 
    background: #0d0d0d; border: 2px solid var(--neon-mor); border-radius: 50%; 
    align-items: center; justify-content: center; color: white; font-size: 22px; 
    box-shadow: 0 0 20px rgba(96, 29, 194, 0.5); z-index: 9990; cursor: pointer; transition: 0.3s; 
}
.floating-bell:hover { background: var(--neon-mor); transform: scale(1.1); }
.floating-bell .notif-badge { top: -5px; right: -5px; font-size: 11px; padding: 3px 7px; border: 2px solid #0a0a0a; }

.notif-panel { 
    position: absolute; top: 120%; right: 0; width: 320px; background: #0a0a0a; 
    border: 1px solid var(--neon-mor); border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.9); 
    z-index: 9999; display: none; flex-direction: column; overflow: hidden; 
    animation: menuFadeIn 0.2s ease-out; cursor: default;
}
.notif-panel.active { display: flex; }
.notif-header { padding: 15px 20px; border-bottom: 1px solid #222; display: flex; justify-content: space-between; align-items: center; background: #111; }
.notif-header h4 { font-size: 14px; color: var(--yazi-beyaz); margin: 0; }
.clear-btn { background: none; border: none; color: #ff4b4b; font-size: 12px; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: bold; transition: 0.3s; }
.clear-btn:hover { text-decoration: underline; color: #ff0000; }
.notif-body { max-height: 300px; overflow-y: auto; }

.notif-item { padding: 15px 20px; border-bottom: 1px solid #1a1a1a; display: flex; gap: 15px; font-size: 13px; color: #ccc; transition: 0.3s; cursor: pointer;}
.notif-item:hover { background: rgba(96, 29, 194, 0.1); }
.notif-item i { font-size: 18px; margin-top: 3px; }
.notif-item-content strong { color: white; display: block; margin-bottom: 3px; }
.notif-empty { padding: 40px 20px; text-align: center; color: var(--gri-yazi); font-size: 13px; }

#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 999999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.custom-toast { background: rgba(15, 15, 15, 0.95); color: #fff; padding: 16px 24px; border-radius: 12px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); min-width: 300px; max-width: 400px; transform: translateX(120%); opacity: 0; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease; backdrop-filter: blur(10px); pointer-events: auto; }
.custom-toast.show { transform: translateX(0); opacity: 1; }
.custom-toast.hide { transform: translateX(120%); opacity: 0; }
.toast-icon { font-size: 20px; }
.toast-success { border-left: 4px solid #00e676; } .toast-success .toast-icon { color: #00e676; }
.toast-error { border-left: 4px solid #ff4b4b; } .toast-error .toast-icon { color: #ff4b4b; }
.toast-info { border-left: 4px solid #00d2ff; } .toast-info .toast-icon { color: #00d2ff; }

@keyframes menuFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@keyframes preventGhostClick {
    0% { pointer-events: none; }
    99% { pointer-events: none; }
    100% { pointer-events: auto; }
}


@media (max-width: 768px) {
    header.main-nav { height: auto; padding: 15px 5%; flex-direction: column; gap: 15px; transform: none !important; }
    body { padding-top: 125px; }
    
    .logo { font-size: 20px; gap: 8px; }
    .header-logo { height: 35px; }

    nav { width: 100%; overflow-x: auto; padding-bottom: 5px;}
    nav ul { gap: 10px; flex-wrap: nowrap; justify-content: space-between; width: 100%; }
    nav ul li a { font-size: 10px; white-space: nowrap; }
    .nav-btn { padding: 6px 12px; font-size: 10px !important; }
    .user-name-text, .arrow-icon { display: none; } 
    .dropdown-trigger { padding: 10px; border-radius: 50%; width: 40px; height: 40px; justify-content: center; }
    
    .dropdown-content { 
        position: fixed; right: 15px; top: 85px; width: 180px; 
        animation: menuFadeIn 0.2s ease-out, preventGhostClick 0.4s forwards;
    }

    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    #toast-container { bottom: 100px; right: 20px; z-index: 999999 !important; } 

    .floating-bell { transform: none !important; transition: none !important; }
    .floating-bell:hover { transform: none !important; background: var(--neon-mor); }

    .notif-panel, .notif-panel.mobile-panel {
        position: fixed !important;
        top: 50vh !important;
        left: 50vw !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw !important;
        max-width: 400px !important;
        z-index: 9999999 !important; 
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: 0 0 50px rgba(96, 29, 194, 0.4), 0 0 200px rgba(0,0,0,0.95) !important;
    }
}
