/* =====================================================
   HEADER.CSS - Стили навигации, шапки, меню и логотипа
   ===================================================== */

/* ------------------- 1. НАВИГАЦИЯ (ГОРИЗОНТАЛЬНОЕ МЕНЮ) ------------------- */
.navbar {
    background-color: #1A1C23;
    font-size: 18px;
    font-weight: bold;
    color: white;
    padding: 15px 15%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.navbar h1 {
    white-space: nowrap;
    font-size: 32px;
    color: #99A2AC;
}

.navbar h1 a {
    color: #99A2AC;
    text-decoration: none;
}

/* Основное меню */
.menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    height: 100%;
}

/* Левая часть меню (ссылки) */
.menu-left {
    margin-left: 30px;
    display: flex;
    gap: 30px;
}

.menu-left a {
    color: white;
    text-decoration: none;
}

/* Правая часть меню (баланс, профиль, кнопки) */
.menu-right {
    display: flex;
    gap: 30px;
    margin-left: auto;
    align-items: center;
}

.menu a {
    color: white;
    text-decoration: none;
}


/* ------------------- 2. ШАПКА С ЛОГОТИПОМ И СОЦСЕТЯМИ ------------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #1B1D24;
    border-radius: 10px;
    margin: 10px auto;
    max-width: 1540px;
}

/* Контейнер для логотипа и названия */
.title-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 50px;
    text-align: left;
}

/* Логотип */
.logo {
    height: 60px;
    width: auto;
    max-height: 100px;
    margin-right: 10px;
}

/* Название проекта */
.project-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.project-title br {
    display: none;
}

/* Блок с бонусами (пустой, оставлен для совместимости) */
.bonuses {
    padding-right: 50px;
}

.bonuses p {
    display: block;
    text-align: right;
    font-weight: bold;
    font-size: 26px;
    color: #FFFFFF;
}


/* ------------------- 3. КНОПКИ НАВИГАЦИИ ------------------- */
/* Кнопка "Войти через Steam" */
.login-btn {
    display: flex;
    align-items: center;
    background-color: #1E90FF;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    transition: 0.3s;
}

.login-btn img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    filter: brightness(0) invert(1);
}

.login-btn:hover {
    background-color: rgba(30, 144, 255, 0.6);
    transition: 0.3s;
}

/* Баланс пользователя */
.balance {
    background: linear-gradient(145deg, #21222B, #2B2D36);
    color: #FFF;
    font-weight: bold;
    font-size: 18px;
    padding: 8px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.balance:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Ссылка на магазин и профиль */
.profile {
    transition: transform 0.4s;
    color: #237BFF !important;
}

.profile:hover {
    transform: scale(1.1);
    color: white !important;
    transition: transform 0.4s;
}

/* Кнопка "Выйти" */
.logout-btn {
    padding: 8px 16px;
    background-color: #21222B;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
    margin-top: 30px;
    margin-bottom: 20px;
    align-self: center;
}

.logout-btn:hover {
    background-color: #E74C3C;
    border-color: #E74C3C;
}

/* Уведомления (иконка) */
.notification {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(10deg);
    margin-top: 10px;
    transition: 0.3s;
}

.notification:hover {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(180deg);
    transform: scale(1.2);
}

/* Разделитель (пустой элемент) */
.separator {
    width: 50px;
}


/* ------------------- 4. КНОПКИ СОЦИАЛЬНЫХ СЕТЕЙ В ШАПКЕ ------------------- */
.social-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    transform: none !important;
    transition: none !important;
    justify-content: flex-start !important;
    margin-left: -330px !important;
    padding-left: -30px !important;
}

.social-buttons a {
    display: inline-block;
    transition: transform 0.2s ease !important;
    transform: none !important;
    line-height: 0;
    border: none;
    outline: none;
    margin: 0 15px;
}

.social-buttons a:hover {
    transform: scale(1.2) !important;
}

.social-buttons img {
    width: 32px;
    height: 32px;
    display: block;
    border: none;
    outline: none;
    filter: brightness(0) invert(1);
}

.social-buttons:hover {
    transform: none !important;
    color: #237BFF;
    transition: transform 0.4s;
}


/* ------------------- 5. ВЫПАДАЮЩИЕ СПИСКИ (ФИЛЬТРЫ) ------------------- */
.dropdown-content {
    margin-top: 10px;
    margin-left: 5px;
    display: none;
    position: absolute;
    background: rgba(21, 23, 28, 1);
    min-width: 150px;
    z-index: 1;
    border-radius: 12px;
    padding: 10px 10px;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-align: left;
    border-radius: 5px;
    width: auto;
    margin-bottom: 5px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, border-bottom 0.3s;
    border-bottom: 4px solid transparent;
}

.dropdown-content a:hover {
    background-color: #17263F;
}

.show {
    display: block;
}

/* Цветовые стили для категорий в выпадающем списке */
.all-link {
    border-left: 4px solid #fff;
}

.kits-link {
    border-left: 4px solid rgba(123, 201, 82, 1);
}

.basic-buildings-link {
    border-left: 4px solid rgba(245, 245, 220, 1);
}

.weapons-link {
    border-left: 4px solid rgba(235, 75, 75, 1);
}

.ammo-link {
    border-left: 4px solid rgba(75, 75, 235, 1);
}

.resources-link {
    border-left: 4px solid rgba(0, 123, 255, 1);
}

.clothes-link {
    border-left: 4px solid rgba(255, 193, 7, 1);
}

.tools-link {
    border-left: 4px solid rgba(0, 150, 136, 1);
}

.medicines-link {
    border-left: 4px solid rgba(34, 177, 76, 1);
}

.eat-link {
    border-left: 4px solid rgba(255, 140, 0, 1);
}

.other-link {
    border-left: 4px solid rgba(128, 128, 128, 1);
}


/* ------------------- 6. БОКОВОЕ МЕНЮ (ДЛЯ МОБИЛЬНОЙ ВЕРСИИ) ------------------- */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.side-menu {
    padding-top: 60px;
    width: 200px;
    transition: 0.5s;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100%;
    background-color: rgba(25, 25, 30, 0.8);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
    overflow-x: hidden;
}

.side-menu a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: 0.3s;
}

.side-menu a:hover {
    color: #f1f1f1;
    transition: 0.5s;
}

.side-menu .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
}