/* Language Switcher Dropdown Styles */

.i18n-language-switcher {
    position: relative;
    display: inline-block;
}

#i18n-lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

#i18n-lang-button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

#i18n-lang-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

/* Hide language code text, only show flag */
#i18n-lang-text,
#i18n-lang-text-mobile {
    display: none !important;
}

#i18n-lang-dropdown.open #i18n-lang-button svg {
    transform: rotate(180deg);
}

#i18n-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

#i18n-lang-dropdown.hidden {
    display: none;
}

.i18n-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #374151;
}

.i18n-lang-option:hover {
    background: #f3f4f6;
}

.i18n-lang-option.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.i18n-lang-option .lang-flag {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.i18n-lang-option .lang-name {
    flex: 1;
}

.i18n-lang-option .lang-code {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #i18n-lang-dropdown {
        right: auto;
        left: 0;
        min-width: 180px;
    }
}

/* Compact version for navigation bars */
.i18n-language-switcher.compact #i18n-lang-button {
    padding: 6px 10px;
    font-size: 13px;
}

.i18n-language-switcher.compact #i18n-lang-dropdown {
    min-width: 160px;
}

.i18n-language-switcher.compact .i18n-lang-option {
    padding: 8px 10px;
    font-size: 13px;
}

