/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.language-switcher-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Hubot Sans', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-switcher-toggle:hover,
.language-switcher-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.language-switcher-toggle[aria-expanded="true"] .language-switcher-arrow {
    transform: rotate(180deg);
}

.language-switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    list-style: none;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-switcher-dropdown[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.language-switcher-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* RTL support */
[dir="rtl"] .language-switcher-dropdown {
    right: auto;
    left: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .language-switcher-dropdown {
        right: 0;
        left: auto;
    }
    
    [dir="rtl"] .language-switcher-dropdown {
        right: auto;
        left: 0;
    }
}
