/**
 * MODERN NAVBAR - Redesigned from scratch
 * Clean, professional, mobile-friendly
 */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 2rem;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-brand a {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.nav-brand a:hover {
    color: var(--color-accent-light);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-links > a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-links > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links > a:hover {
    color: var(--color-text);
    background: rgba(212, 165, 116, 0.08);
    transform: translateY(-1px);
}

.nav-links > a:hover::before {
    opacity: 1;
}

.nav-links > a.active {
    color: var(--color-accent);
    background: rgba(212, 165, 116, 0.15);
    font-weight: 600;
}

.nav-links > a.active::before {
    opacity: 1;
}

.nav-links > a.btn-outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.65rem 1.5rem;
    font-weight: 600;
}

.nav-links > a.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

/* Language Switcher - Modern Design */
.lang-switcher {
    display: flex;
    gap: 0;
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 10px;
    padding: 0.25rem;
    overflow: hidden;
}

.lang-switcher a {
    padding: 0.5rem 1rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
    min-width: 45px;
    text-align: center;
}

.lang-switcher a:hover {
    color: var(--color-text);
    background: rgba(212, 165, 116, 0.15);
}

.lang-switcher a.active {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

/* Theme Switcher - Modern Design */
.theme-switcher {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.theme-switcher:hover {
    background: rgba(212, 165, 116, 0.15);
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.theme-switcher-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    display: block;
    line-height: 1;
}

.theme-switcher:hover .theme-switcher-icon {
    transform: rotate(15deg) scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(212, 165, 116, 0.15);
    border-color: var(--color-accent);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar .container {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 0.4rem;
    }
    
    .nav-links > a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }
    
    .navbar .container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-brand a {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.5rem;
        border-top: 1px solid rgba(212, 165, 116, 0.15);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-links.active {
        max-height: 600px;
        opacity: 1;
        pointer-events: auto;
        padding: 1.5rem 1rem;
    }
    
    .nav-links > a {
        width: 100%;
        padding: 1rem 1.25rem;
        text-align: left;
        border-radius: 10px;
        font-size: 1rem;
    }
    
    .lang-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .lang-switcher a {
        flex: 1;
    }
    
    .theme-switcher {
        width: 100%;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.75rem 1rem;
    }
    
    .nav-brand a {
        font-size: 1.1rem;
    }
}

