/* Файл: assets/css/header.css (Аккуратные кнопки одной высоты) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    padding: 0.8rem 0;
    background-color: var(--surface-color);
    border-bottom: 1px solid #363377;
}
.site-header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--accent-color);
    white-space: nowrap;
}
.logo-desktop { display: inline; }
.logo-mobile { display: none; }

.main-nav { display: flex; align-items: center; }

.nav-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: stretch; /* Растягивает элементы по высоте самого высокого */
}

/* Единый стиль для всех кнопок в шапке */
.nav-links a, .points-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px; /* Фиксированная высота для всех */
    padding: 0 1.2rem;
    border: 1px solid #334;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--primary-text-color);
    background-color: rgba(255,255,255,0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.nav-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-1px);
}

.points-balance {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #FFC107;
    color: #FFD54F;
    font-weight: bold;
    cursor: default;
}

.nav-messages-link-wrapper { position: relative; display: flex; align-items: center; }
.unread-count-global {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    line-height: 1;
}

.burger-menu { display: none; }

@media (max-width: 992px) {
    .logo-desktop { display: none; }
    .logo-mobile { display: inline; }
    .burger-menu {
        display: flex; flex-direction: column; justify-content: space-around;
        width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; z-index: 1100;
    }
    .burger-bar { width: 100%; height: 3px; background-color: var(--accent-color); border-radius: 10px; transition: all 0.3s ease; }
    .burger-menu.active .burger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger-menu.active .burger-bar:nth-child(2) { opacity: 0; }
    .burger-menu.active .burger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background-color: #161625; transition: right 0.4s ease; z-index: 1050;
        box-shadow: -10px 0 30px rgba(0,0,0,0.7);
    }
    .nav-links.active { right: 0; }
    .nav-links ul { flex-direction: column; padding: 100px 30px; gap: 10px; }
    .nav-links a { width: 100%; text-align: center; border-bottom: 1px solid #282828; }
}
