/**
 * Multilanguage Editor - Frontend Styles
 * Language switcher styling
 */

/* Language Switcher - List Style */
.polyglot-language-switcher.polyglot-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.polyglot-language-switcher.polyglot-list li {
    margin: 0;
    padding: 0;
}

.polyglot-language-switcher.polyglot-list a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    font-size: 16px;
}

.polyglot-language-switcher.polyglot-list a:hover {
    background: #e0e0e0;
    color: #000;
}

.polyglot-language-switcher.polyglot-list .current-language a {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.polyglot-language-switcher.polyglot-list .flag {
    font-size: 24px;
    line-height: 1;
    margin-right: 6px;
}

/* Language Switcher - Dropdown Style */
.polyglot-language-switcher.polyglot-dropdown {
    display: inline-block;
}

.polyglot-language-switcher.polyglot-dropdown select {
    padding: 10px 14px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
    line-height: 1.4;
}

.polyglot-language-switcher.polyglot-dropdown select:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Widget Styles */
.widget_multilanguage_language_switcher {
    margin-bottom: 20px;
}

.widget_multilanguage_language_switcher .widget-title {
    margin-bottom: 15px;
}

/* Compact Style (modifier class) */
.polyglot-language-switcher.compact .polyglot-list a {
    padding: 4px 8px;
    font-size: 12px;
}

.polyglot-language-switcher.compact .flag {
    font-size: 16px;
    margin-right: 4px;
}

/* Inline Style (for header) */
.polyglot-language-switcher.inline .polyglot-list {
    display: inline-flex;
    gap: 5px;
}

.polyglot-language-switcher.inline .polyglot-list a {
    padding: 4px 8px;
}

/* Accessibility */
.polyglot-language-switcher a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .polyglot-language-switcher.polyglot-list a {
        background: #333;
        color: #fff;
    }
    
    .polyglot-language-switcher.polyglot-list a:hover {
        background: #444;
    }
    
    .polyglot-language-switcher.polyglot-dropdown select {
        background: #333;
        color: #fff;
        border-color: #555;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .polyglot-language-switcher.polyglot-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .polyglot-language-switcher.polyglot-list a {
        width: 100%;
        justify-content: center;
    }
}
