.custom-navbar {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 204, 0.3);
    transition: background 0.4s ease, box-shadow 0.3s ease;
    /* Sabitleme kaldırıldı: position, top, z-index */
    width: 85%;
    height: 8vh;
    border-radius: 50px;
    margin: 3vh auto;
    /* Navbar'ın her zaman en üstte görünmesi için yüksek z-index verildi */
    z-index: 9999;
}

.logo-glow {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: "Quantico", sans-serif;
    color: #00ffcc !important;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
    letter-spacing: 1.8px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Haber sayfasında marka yazısının sağ alt köşesinde küçük "NEWS" etiketi */
.brand-badge {
    position: absolute;
    bottom: 0px;
    right: -8px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #3ea6ff;
    text-shadow: 0 0 6px rgba(62, 166, 255, 0.6);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-glow:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 12px rgba(0, 255, 204, 0.8);
    box-shadow: 0 4px 16px rgba(0, 255, 204, 0.3);
}

.logo-glow:focus-visible {
    outline: 2px solid #00ffcc;
    outline-offset: 2px;
    text-shadow: 0 0 12px rgba(0, 255, 204, 0.8);
}

.nav-link, .dropdown-toggle {
    color: #e0e0e0 !important;
    font-family: "Quantico", sans-serif;
    font-size: 17px !important;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    position: relative;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.nav-link:hover, .nav-link.active, .dropdown-toggle:hover, .dropdown-toggle.active {
    color: #00ffcc !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 204, 0.3);
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}

.nav-link:focus-visible, .dropdown-toggle:focus-visible {
    outline: 2px solid #00ffcc;
    outline-offset: 2px;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}

.profile-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-photo:hover {
    transform: scale(1.1);
    border-color: #00ffcc;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.4);
}

.profile-photo:focus-visible {
    outline: 2px solid #00ffcc;
    outline-offset: 2px;
}

.custom-toggler .toggler-icon {
    width: 24px;
    height: 3px;
    background-color: #00ffcc;
    display: block;
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s ease;
}

.custom-toggler:hover .toggler-icon {
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.window-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
}

.dropdown-menu.custom-dropdown {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    padding: 8px 0;
    margin-top: 4px;
    min-width: 160px;
    z-index: 1000;
}

.dropdown-item.custom-dropdown-item {
    color: #e0e0e0;
    font-family: "Quantico", sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-radius: 8px;
    margin: 2px 6px;
    display: block;
}

.dropdown-item.custom-dropdown-item:hover {
    background: rgba(0, 255, 204, 0.2);
    color: #00ffcc;
    transform: translateY(-1px);
    text-shadow: 0 0 6px rgba(0, 255, 204, 0.5);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
    width: 92%;
}

.dropdown-item.custom-dropdown-item:focus-visible {
    outline: 2px solid #00ffcc;
    outline-offset: 2px;
    background: rgba(0, 255, 204, 0.25);
}

@media (max-width: 991px) {
    .custom-navbar {
        width: 90%; /* Mobilde daha iyi görünüm için genişlik artırıldı */
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2vw;
        margin-bottom: 2vw;
    }
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
        border-radius: 16px;
        padding: 20px;
        margin-top: 10px;
        border: 1px solid rgba(0, 255, 204, 0.2);
    }
    
    .navbar-nav {
        gap: 10px !important;
    }
    
    .nav-link, .dropdown-toggle {
        text-align: center;
        width: 100%;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .nav-link:hover, .nav-link.active, .dropdown-toggle:hover, .dropdown-toggle.active {
        transform: translateY(0);
        box-shadow: 0 0 12px rgba(0, 255, 204, 0.2);
    }
    
    .dropdown-menu.custom-dropdown {
        background: rgba(10, 10, 10, 0.9);
        width: 100%;
        text-align: center;
        border-radius: 8px;
        margin: 6px 0;
        border: 1px solid rgba(0, 255, 204, 0.2);
    }
    
    .dropdown-item.custom-dropdown-item {
        padding: 10px;
        margin: 2px 0;
    }
    
    .dropdown-item.custom-dropdown-item:hover {
        transform: none;
        background: rgba(0, 255, 204, 0.25);
        box-shadow: none;
    }
}