/* _Navbar.css - Стили для навигационной панели */

/* Кастомизация выпадающего меню */
.dropdown-menu .dropdown-item:hover {
    background-color: #1e2128 !important; /* Чуть светлее основного фона */
    color: #FFFFFF !important;
}

.dropdown-menu .dropdown-item:active {
    background-color: #2a2d36 !important; /* Еще светлее при активном состоянии */
    color: #FFFFFF !important;
}

/* Убираем стандартные Bootstrap стили */
.dropdown-menu .dropdown-item:focus {
    background-color: #1e2128 !important;
    color: #FFFFFF !important;
}

/* Основная навигационная панель */
.navbar-custom {
    background: linear-gradient(0deg, #15171E, #15171E), #F6F6F6;
    min-height: 48px;
}

.navbar-container {
    max-width: 1400px;
    width: 100%;
}

/* Логотип */
.navbar-logo {
    width: 100px;
    height: 30px;
}

.navbar-logo img {
    max-width: 100%;
    height: auto;
}

/* Языковые переключатели */
.language-switcher {
    gap: 16px;
}

.language-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    color: #64656B;
    text-decoration: none;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.language-btn:hover {
    color: white !important;
}

.language-btn.active {
    color: white !important;
}

/* Кнопка входа */
.login-btn {
    background: linear-gradient(0deg, #0D81FF, #0D81FF), linear-gradient(180deg, #00AAFF 0%, #007AFF 100%);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    color: #FFFFFF;
    text-decoration: none;
    min-width: 60px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

/* Профиль пользователя */
.profile-avatar {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* Кнопка меню */
.menu-toggle {
    width: 14px;
    height: 12px;
    padding: 0;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-line {
    width: 14px;
    height: 2px;
    background-color: white;
    margin-bottom: 2px;
}

.menu-line:last-child {
    margin-bottom: 0;
}

/* Выпадающее меню */
.dropdown-menu-custom {
    background: #15171E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 8px;
}

.dropdown-item-custom {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease;
    padding: 8px 16px;
    display: flex;
    align-items: center;
}

.dropdown-divider-custom {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Spacer для фиксированной навигации */
.navbar-spacer {
    height: 48px;
}

/* Обеспечиваем горизонтальное расположение элементов в правой части навбара */
.navbar-nav.ms-auto {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

/* Стили для nav-item элементов */
.nav-item {
    display: flex;
    align-items: center;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-logo {
        width: 80px;
        height: 24px;
    }
    
    /* Обеспечиваем горизонтальное расположение элементов в правой части */
    .navbar-nav.ms-auto {
        flex-direction: row !important;
        gap: 8px;
    }
    
    .language-switcher {
        gap: 8px;
    }
    
    .language-btn {
        font-size: 11px;
    }
    
    .login-btn {
        font-size: 11px;
        min-width: 50px;
        height: 24px;
        padding: 0 8px;
    }
    
    .profile-avatar {
        width: 26px;
        height: 26px;
    }
    
    .profile-avatar img {
        width: 24px;
        height: 24px;
    }
    
    .menu-toggle {
        width: 12px;
        height: 10px;
    }
    
    .menu-line {
        width: 12px;
        height: 1.5px;
    }
    
    .dropdown-item-custom {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .navbar-spacer {
        height: 44px;
    }
    
    /* Уменьшаем отступы между элементами на мобильных */
    .nav-item.me-3 {
        margin-right: 0.5rem !important;
    }
    
    .nav-item.me-2 {
        margin-right: 0.25rem !important;
    }
}

/* Адаптивные стили для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-container {
        padding: 0 20px;
    }
    
    .navbar-logo {
        width: 90px;
        height: 27px;
    }
    
    /* Обеспечиваем горизонтальное расположение элементов */
    .navbar-nav.ms-auto {
        gap: 12px;
    }
    
    .language-switcher {
        gap: 14px;
    }
    
    .language-btn {
        font-size: 11.5px;
    }
    
    .login-btn {
        font-size: 11.5px;
        min-width: 55px;
        height: 25px;
        padding: 0 10px;
    }
    
    .profile-avatar {
        width: 28px;
        height: 28px;
    }
    
    .profile-avatar img {
        width: 26px;
        height: 26px;
    }
    
    .menu-toggle {
        width: 13px;
        height: 11px;
    }
    
    .menu-line {
        width: 13px;
        height: 1.8px;
    }
    
    .dropdown-item-custom {
        font-size: 13.5px;
        padding: 7px 14px;
    }
    
    .navbar-spacer {
        height: 46px;
    }
    
    /* Уменьшаем отступы между элементами на планшетах */
    .nav-item.me-3 {
        margin-right: 0.75rem !important;
    }
    
    .nav-item.me-2 {
        margin-right: 0.5rem !important;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 10px;
    }
    
    .navbar-logo {
        width: 70px;
        height: 21px;
    }
    
    .navbar-nav.ms-auto {
        gap: 4px;
    }
    
    .language-switcher {
        gap: 6px;
    }
    
    .language-btn {
        font-size: 10px;
    }
    
    .login-btn {
        font-size: 10px;
        min-width: 45px;
        height: 22px;
        padding: 0 6px;
    }
    
    .profile-avatar {
        width: 24px;
        height: 24px;
    }
    
    .profile-avatar img {
        width: 22px;
        height: 22px;
    }
    
    .menu-toggle {
        width: 10px;
        height: 8px;
    }
    
    .menu-line {
        width: 10px;
        height: 1px;
    }
    
    .nav-item.me-3 {
        margin-right: 0.25rem !important;
    }
    
    .nav-item.me-2 {
        margin-right: 0.125rem !important;
    }
    
    .navbar-spacer {
        height: 42px;
    }
}
