/* Header Navigation Styles - URBAN */

/* Performance optimizations for navigation */
.sidebar {
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link a {
    transition: transform 0.2s ease;
}

.toggle {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
}

.toggle:focus {
    outline: 2px solid #ef4536;
    outline-offset: 2px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .nav-link a {
        transition: none;
    }
}

/* Performance: GPU acceleration for smooth animations */
.sidebar,
.nav-link a {
    transform: translateZ(0);
}

/* Fallback for admin icon if BoxIcons fails to load */
.admin-icon::before {
    content: "🛡️";
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.2em;
}

/* Hide fallback when BoxIcons loads */
.bx.admin-icon::before {
    content: "";
}

/* Fix FontAwesome icon slanting/italics */
.fas, .far, .fab, .fa {
    font-style: normal !important;
    font-weight: 900 !important;
}

.far {
    font-weight: 400 !important;
}

.fab {
    font-weight: 400 !important;
}

/* Modern Language Switcher Styles */
.language-switcher {
    padding: 8px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 16px;
}

.lang-toggle-modern {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.lang-flag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-decoration: none;
    color: var(--text-color, #fff);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    width: 36px;
    height: 36px;
}

.lang-flag-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.lang-flag-btn:hover::before {
    left: 100%;
}

.lang-flag-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #fff;
}

.lang-flag-btn .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.lang-flag-btn:hover .flag-icon {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lang-flag-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .lang-flag-btn .flag-icon {
        width: 18px;
        height: 12px;
    }
}

/* Dark theme compatibility */
.dark-theme .lang-flag-btn {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .lang-flag-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}