/* Навигационные стили */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.3em;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 215, 0, 0.2);
}


.nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.85em;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.2px;
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
}
.nav-links a:focus {
    outline: none;
}
.nav-links a:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.6);
    outline-offset: 2px;
}

.nav-legal {
    font-size: 0.78em;
    opacity: 0.9;
}
.nav-links a:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateY(-1px);
}

.admin-link,
.logout-btn {
    display: inline-block;
    box-sizing: border-box;
}
.admin-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85em;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}
.admin-link:focus, .logout-btn:focus {
    outline: none;
}
.admin-link:focus-visible, .logout-btn:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.6);
    outline-offset: 2px;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85em;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.auth-section {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.user-info {
    color: #FFD700;
    font-weight: bold;
    padding: 4px 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 5px;
    border: 1px solid #FFD700;
    font-size: 0.85em;
    white-space: nowrap;
    flex-shrink: 0;
}

.register-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85em;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
}
.register-btn:focus, .login-btn:focus {
    outline: none;
}
.register-btn:focus-visible, .login-btn:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.6);
    outline-offset: 2px;
}

.register-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.login-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85em;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Notification bell */
.notification-link {
    position: relative;
    color: #FFD700;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.2em;
    display: flex;
    align-items: center;
}

.notification-link:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 10px #e74c3c; }
}

/* Новое мобильное меню */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    backdrop-filter: blur(20px);
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

.mobile-menu-title {
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 215, 0, 0.2);
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-menu-content a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: center;
}

.mobile-menu-content a:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateX(-5px);
}

.mobile-auth-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.mobile-user-info {
    display: block;
    color: #FFD700;
    font-weight: bold;
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid #FFD700;
    font-size: 1.1em;
    text-align: center;
}

.mobile-register-btn, .mobile-login-btn, .mobile-logout-btn, .mobile-admin-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: center;
}

.mobile-register-btn:hover, .mobile-login-btn:hover, .mobile-logout-btn:hover, .mobile-admin-link:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #FFD700;
        font-size: 1.8em;
        cursor: pointer;
        padding: 10px;
        border-radius: 5px;
        transition: background 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 215, 0, 0.2);
    }
    
    .nav-links {
        display: none; /* Скрываем обычное меню на мобильных */
    }
    
    .nav-logo {
        font-size: 1.2em;
    }
    
    .nav-container {
        justify-content: space-between;
    }
}
