/* =================================================================== */
/* /assets/css/user-bar.css (V47.0 - NEON GLOW & WEATHER FIX)          */
/* =================================================================== */

/* --- ANA KAPSAYICI --- */
#tekno-user-bar {
    position: fixed;
    bottom: 25px; left: 50%; transform: translateX(-50%) translateY(150%);
    width: auto; max-width: 95%; height: 80px;
    
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border-radius: 50px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 0 20px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.user-bar-visible #tekno-user-bar { transform: translateX(-50%) translateY(0); }

/* GECE MODU ANA BAR */
html.theme-dark #tekno-user-bar { 
    background: rgba(15, 23, 42, 0.9); 
    border-color: rgba(255,255,255,0.1); 
}

.user-bar-inner { display: flex; align-items: center; gap: 15px; }

/* --- BONCUK BUTONLAR (ITEM) --- */
.user-bar-item, .user-dropdown-toggle, .notification-bell-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 55px; height: 55px;
    
    /* GÜNDÜZ: Beyaz Zemin */
    background: #ffffff; 
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.05);
    
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--text-sub); /* Gri İkon */
}

/* --- HOVER EFEKTLERİ (NEON) --- */

/* GÜNDÜZ HOVER: Beyaz kalır, Mavi Neon Saçar */
.user-bar-item:hover, 
.user-dropdown-toggle:hover,
.notification-bell-btn:hover {
    transform: translateY(-5px);
    background: #ffffff; 
    color: var(--circuit-color); 
    border-color: var(--circuit-color);
    box-shadow: 0 10px 20px var(--circuit-glow), 0 0 10px var(--circuit-color);
}

/* GECE MODU BONCUKLARI */
html.theme-dark .user-bar-item,
html.theme-dark .user-dropdown-toggle,
html.theme-dark .notification-bell-btn {
    background: var(--circuit-color); 
    color: #ffffff; 
    border: none;
}

/* GECE HOVER: Mavi kalır, Beyaz Neon Saçar */
html.theme-dark .user-bar-item:hover,
html.theme-dark .user-dropdown-toggle:hover,
html.theme-dark .notification-bell-btn:hover {
    background: var(--circuit-color); 
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
}

/* SVG İKONLAR */
.nav-svg { width: 24px; height: 24px; transition: 0.3s; fill: currentColor; }

/* METİN (Tooltip) */
.user-bar-item span {
    font-size: 0; 
    position: absolute; bottom: -20px;
    color: var(--text-main); font-weight: 700;
    opacity: 0; transition: 0.3s; white-space: nowrap;
    background: var(--surface-color); padding: 2px 8px; border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); pointer-events: none;
}
.user-bar-item:hover span { font-size: 0.75rem; opacity: 1; bottom: -35px; }

/* --- DROPDOWN MENÜLER --- */
.user-bar-dropdown, .notification-dropdown-alt { 
    position: relative; 
    height: 100%; 
    display: flex; 
    align-items: center; 
}

/* KÖPRÜ */
.user-bar-dropdown::after, .notification-dropdown-alt::after {
    content: ''; position: absolute; 
    bottom: 50%; left: 0; width: 100%; height: 60px; 
    background: transparent;
    z-index: 1;
}

/* Menü Kutusu */
.user-bar-dropdown-content, .notification-content {
    position: absolute; 
    bottom: 75px; 
    left: 50%; transform: translateX(-50%);
    
    background: var(--surface-color);
    border: 2px solid var(--circuit-color);
    border-radius: 15px; 
    padding: 10px 0;
    
    min-width: 240px; width: max-content;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    
    opacity: 0; visibility: hidden; 
    transition: all 0.2s ease;
    z-index: 9990;
}

.user-bar-dropdown:hover .user-bar-dropdown-content,
.notification-dropdown-alt:hover .notification-content {
    opacity: 1; visibility: visible; 
    bottom: 85px; 
    pointer-events: auto;
}

.user-bar-dropdown-content a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; 
    color: var(--text-main); 
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    transition: 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.user-bar-dropdown-content a:last-child { border-bottom: none; }

.user-bar-dropdown-content a:hover {
    background: rgba(0, 210, 255, 0.1); 
    color: var(--circuit-color);
    padding-left: 25px;
}

#notification-menu { right: -20px; left: auto; transform: none; width: 320px; }
.notification-dropdown-alt:hover #notification-menu { bottom: 85px; }

/* --- ROZETLER --- */
.badge-dot {
    position: absolute; top: 0; right: 0;
    width: 12px; height: 12px; background: #ef4444;
    border-radius: 50%; border: 2px solid #fff;
}
.badge-count {
    position: absolute; top: -5px; right: -5px;
    background: #ef4444; color: #fff; font-size: 0.65rem;
    padding: 2px 5px; border-radius: 10px; border: 2px solid #fff; font-weight: 800;
}

/* --- YENİ EKLENEN HAVA DURUMU STİLİ --- */
.user-bar-weather-wrapper {
    display: flex; align-items: center; justify-content: center;
    height: 48px; /* Boncuklardan biraz küçük */
    margin: 0 12px; padding: 0 10px;
    background: rgba(236, 240, 243, 0.6); /* Hafif Saydam Beyaz */
    border-radius: 25px; /* Oval yapı */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    min-width: 150px; 
    transition: 0.3s;
}

/* Gece Modu Hava Durumu */
html.theme-dark .user-bar-weather-wrapper {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
}

.user-bar-weather-wrapper a { text-decoration: none !important; pointer-events: none; }
/* RESPONSIVE */
@media (max-width: 768px) {
    #tekno-user-bar { bottom: 10px; width: 98%; padding: 0 5px; height: 70px; }
    .user-bar-item { width: 45px; height: 45px; }
    .nav-svg { width: 20px; height: 20px; }
    .user-bar-weather-wrapper { display: none; } /* Mobilde yer yoksa gizle */
}