/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.language-switcher .lang-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 60px;
    justify-content: center;
}

.language-switcher .lang-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.language-switcher .lang-button.active {
    background: #fff;
    color: #333;
    border-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.language-switcher .lang-button.active:hover {
    background: #f8f9fa;
    color: #333;
    transform: translateY(-1px);
}

.language-switcher .flag-icon {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.language-switcher .flag-icon.flag-id {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjgiIGZpbGw9IiNGRjAwMDAiLz4KPHJlY3QgeT0iOCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjgiIGZpbGw9IiNGRkZGRkYiLz4KPC9zdmc+');
}

.language-switcher .flag-icon.flag-en {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjE2IiBmaWxsPSIjMDEyMzY5Ii8+CjxwYXRoIGQ9Ik0wIDBoMjR2MS42SDBWMHptMCAyLjRoMjR2MS42SDBWMi40em0wIDIuNGgyNHYxLjZIMFY0Ljh6bTAgMi40aDI0djEuNkgwVjcuMnptMCAyLjRoMjR2MS42SDBWOS42em0wIDIuNGgyNFYxNkgwdi0xLjZ6IiBmaWxsPSIjRkZGIi8+CjxyZWN0IHdpZHRoPSIxMCIgaGVpZ2h0PSI4IiBmaWxsPSIjMDEyMzY5Ii8+Cjwvc3ZnPg==');
}

.language-switcher .lang-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 10px;
        gap: 4px;
    }
    
    .language-switcher .lang-button {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .language-switcher .lang-text {
        display: none;
    }
    
    .language-switcher .flag-icon {
        width: 16px;
        height: 11px;
    }
}

/* Dark theme compatibility */
.dark-background .language-switcher .lang-button {
    color: #fff;
}

.dark-background .language-switcher .lang-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-background .language-switcher .lang-button.active {
    background: #fff;
    color: #333;
}

/* Animation for language switching */
.language-switching {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.language-switching * {
    pointer-events: none;
}

/* Loading state */
.language-switcher.loading .lang-button {
    opacity: 0.6;
    cursor: not-allowed;
}

.language-switcher.loading .lang-button:hover {
    transform: none;
    background: transparent;
    border-color: transparent;
}

/* Accessibility improvements */
.language-switcher .lang-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.language-switcher .lang-button:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .language-switcher .lang-button {
        border-width: 2px;
        border-color: currentColor;
    }
    
    .language-switcher .lang-button.active {
        background: currentColor;
        color: white;
    }
}

