/* Language Switcher - Default Style */

.language-switcher {
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.language-switcher__button {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: space-between;
}

.language-switcher__button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.language-switcher__button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.language-switcher__button--active {
    background: #f3f4f6;
    border-color: #6b7280;
}

.language-switcher__current {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-switcher__flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.language-switcher__arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.language-switcher__arrow--open {
    transform: rotate(180deg);
}

.language-switcher__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.language-switcher__dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher__list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.language-switcher__item {
    margin: 0;
}

.language-switcher__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.language-switcher__link:hover {
    background: #f3f4f6;
    color: #111827;
}

.language-switcher__link--active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}

.language-switcher__link--active:hover {
    background: #dbeafe;
}

.language-switcher__name {
    flex: 1;
}

.language-switcher__code {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .language-switcher__button {
        min-width: 100px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-switcher__dropdown {
        min-width: 120px;
    }
    
    .language-switcher__link {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .language-switcher__button {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .language-switcher__button:hover {
        background: #374151;
        border-color: #4b5563;
    }
    
    .language-switcher__dropdown {
        background: #1f2937;
        border-color: #374151;
    }
    
    .language-switcher__link {
        color: #f9fafb;
    }
    
    .language-switcher__link:hover {
        background: #374151;
        color: #ffffff;
    }
    
    .language-switcher__link--active {
        background: #1e40af;
        color: #dbeafe;
    }
    
    .language-switcher__link--active:hover {
        background: #1d4ed8;
    }
    
    .language-switcher__code {
        color: #9ca3af;
    }
} 