/**
 * Polylang Language Switcher - Twenty Twenty-Five Theme Style
 * Минималистичный дизайн в стилистике темы
 */

/* Основной контейнер виджета */
.widget_polylang {
    background: transparent;
    padding: 0;
    margin: 0;
}

.widget_polylang ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

/* Элементы языков */
.widget_polylang .lang-item {
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* Ссылки - чистый минималистичный стиль */
.widget_polylang .lang-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--contrast, #111111);
    background: transparent;
    border: none;
    transition: all 0.2s ease;
}

.widget_polylang .lang-item a:hover {
    color: var(--wp--preset--color--contrast, #111111);
    background: #cfcfcf;
}

/* Активный язык - тонкое подчеркивание */
.widget_polylang .current-lang a {
    color: var(--wp--preset--color--contrast, #111111);
    font-weight: 600;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 1.5px !important;
}

.widget_polylang .current-lang a:hover {
    background: #cfcfcf;
}

/* Флаги - минималистично */
.widget_polylang img {
    width: 18px !important;
    height: 13px !important;
    border-radius: 2px;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.widget_polylang .lang-item a:hover img {
    opacity: 1;
}

/* Текст языка */
.widget_polylang .lang-item span {
    margin-left: 0 !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .widget_polylang ul {
        gap: 2px;
    }
    
    .widget_polylang .lang-item a {
        padding: 5px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* На очень маленьких экранах убираем текст */
    .widget_polylang .lang-item span {
        display: none;
    }
    
    .widget_polylang .lang-item a {
        padding: 6px 8px;
    }
    
    .widget_polylang img {
        width: 20px !important;
        height: 15px !important;
    }
}

/* Focus состояние для accessibility (стиль темы) */
.widget_polylang .lang-item a:focus {
    outline-width: 2px;
    outline-style: solid;
    outline-color: var(--wp--preset--color--contrast, #111111);
    outline-offset: 4px;
}

