/* ============================================
   LANGUAGE SWITCHER STYLES
   ============================================ */

/* Container */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    padding: 6px 12px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.15);
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    background: rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.25);
}

/* Language Options */
.lang-option {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
}

.lang-option:hover {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.08);
    transform: translateY(-1px);
}

/* Active State */
.lang-option.active {
    color: white;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.lang-option.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

/* Separator */
.lang-separator {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 300;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .lang-switcher {
        margin-left: 15px;
        padding: 5px 10px;
    }
    
    .lang-option {
        font-size: 12px;
        padding: 3px 6px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 10px;
        width: fit-content;
    }
    
    .lang-option {
        font-size: 13px;
        padding: 5px 10px;
    }

    .nav-link {
        width: 100%;
        padding: 0.5rem 0;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .lang-switcher {
        padding: 5px 10px;
        gap: 6px;
    }
    
    .lang-option {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states for keyboard navigation */
.lang-option:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.lang-option:focus:not(:focus-visible) {
    outline: none;
}

.lang-option:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lang-switcher {
        border-width: 2px;
        border-color: var(--primary);
    }
    
    .lang-option {
        font-weight: 700;
    }
    
    .lang-option.active {
        border: 2px solid var(--primary-dark);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .lang-switcher,
    .lang-option,
    .lang-option.active,
    .nav-links {
        transition: none;
    }
    
    .lang-option:hover {
        transform: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .lang-switcher {
        display: none;
    }
}