/**
 * Стили для меню навигации
 */

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: var(--color-hover);
}

.nav-link.primary {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link.active {
    background: #5624D0;
    font-weight: 600;
    color: white !important;
}

.nav-link.active span {
    color: white !important;
}

.nav-link.active svg {
    stroke: white !important;
    fill: none;
}

.nav-link.primary.active {
    background: #5624D0;
    color: white !important;
}

.nav-link.primary.active span {
    color: white !important;
}

.nav-link.primary.active svg {
    stroke: white !important;
    fill: none;
}

.nav-link svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.btn-header {
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    box-sizing: border-box;
}

.btn-header:hover {
    background: var(--color-text);
    color: white;
}

.btn-header-logout {
    border: none !important;
    background: #ef4444 !important;
    color: white !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px !important;
    min-width: 110px;
    box-sizing: border-box;
}

.btn-header-logout:hover {
    background: #dc2626 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-header-logout svg {
    flex-shrink: 0;
}

/* Динамические стили для меню из БД генерируются в menu-dynamic.php */

/* Стили для языкового флага */
.lang-flag-single {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.lang-flag-single:hover {
    transform: scale(1.1);
}

.lang-flag-single .fi {
    font-size: 1.25rem;
}

/* Мобильная версия - скрываем горизонтальное меню */
@media (max-width: 768px) {
    .header-nav {
        display: none !important;
        order: 2;
    }
    
    /* Показываем меню только когда открыто гамбургер-меню */
    .header-nav.mobile-active {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--color-border);
        gap: 0.5rem;
        margin-left: 0;
    }
    
    .header-nav.mobile-active .nav-link,
    .header-nav.mobile-active .btn-header {
        display: flex !important;
        width: 100%;
        padding: 0.75rem;
        text-align: left;
        justify-content: flex-start;
        border-radius: 4px;
    }
    
    /* Скрываем отдельные ссылки по умолчанию на мобильных */
    .nav-link,
    .btn-header {
        display: none;
    }
}

