/* static/css/partials/navbar.css */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.6s ease forwards;
    opacity: 0;
    transform: translateY(-20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    animation: shimmer 15s infinite;
}

[data-theme="light"] .navbar::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.02), transparent);
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes slideDown {
    to { opacity: 1; transform: translateY(0); }
}

.navbar .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

[data-theme="light"] .navbar .brand {
    color: var(--text-main);
}

.navbar .brand span {
    background: linear-gradient(135deg, #FFFFFF 40%, var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

[data-theme="light"] .navbar .brand span {
    background: linear-gradient(135deg, var(--text-main) 40%, var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.navbar .brand .version {
    font-size: 0.65rem;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.08);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.04);
    letter-spacing: 0.5px;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.menu-toggle:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.08);
    color: white;
}

[data-theme="light"] .menu-toggle {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .menu-toggle:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.08);
    color: white;
    transform: none;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary);
    transform: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-color);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[data-theme="light"] .mobile-menu {
    background: rgba(240, 240, 245, 0.95);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu .menu-close {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
}

.mobile-menu .menu-close:hover {
    color: white;
    transform: rotate(90deg);
}

[data-theme="light"] .mobile-menu .menu-close:hover {
    color: var(--text-main);
}

.mobile-menu .menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mobile-menu .menu-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-menu .menu-links a i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-menu .menu-links a:hover,
.mobile-menu .menu-links a.active {
    color: white;
    background: rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .mobile-menu .menu-links a:hover,
[data-theme="light"] .mobile-menu .menu-links a.active {
    color: var(--text-main);
    background: rgba(139, 92, 246, 0.08);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}