/* Дополнительные исправления для header */

/* Активные ссылки в навигации */
.navigation a.active {
    color: #e94560;
    font-weight: bold;
    border-bottom: 2px solid #e94560;
}

/* Меню пользователя */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-greeting:hover {
    background-color: #e9ecef;
}

.user-greeting i {
    color: #e94560;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 5px;
}

.user-menu:hover .dropdown {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #e94560;
}

.dropdown-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: #f1f1f1;
    margin: 8px 0;
}

/* Адаптивность для меню пользователя */
@media (max-width: 768px) {
    .user-menu {
        width: 100%;
        text-align: center;
    }
    
    .user-greeting {
        justify-content: center;
        width: 100%;
    }
    
    .dropdown {
        position: static;
        width: 100%;
        margin-top: 10px;
    }
    
    /* Улучшения для мобильного header */
    .header {
        transition: transform 0.3s ease;
    }
    
    /* Класс для скрытия header при скролле вниз */
    .header.hidden {
        transform: translateY(-100%);
    }
    
    /* Класс для показа header при скролле вверх */
    .header.visible {
        transform: translateY(0);
    }
}

/* Улучшения для очень маленьких экранов */
@media (max-width: 360px) {
    .navigation a {
        font-size: 0.75rem;
        margin: 0 3px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1rem;
    }
}
