/* Language Switcher Styles */

.haloclean-lang-switcher {
    display: inline-block;
    position: relative;
    font-size: 14px;
}

/* Dropdown */
.haloclean-lang-dropdown .haloclean-lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: inherit;
    line-height: 1.4;
}

.haloclean-lang-dropdown .haloclean-lang-current:hover {
    border-color: #999;
}

.haloclean-lang-dropdown .haloclean-lang-arrow {
    font-size: 10px;
    margin-left: 4px;
}

.haloclean-lang-dropdown .haloclean-lang-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    z-index: 1000;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    min-width: 140px;
}

[dir="rtl"] .haloclean-lang-dropdown .haloclean-lang-list {
    left: auto;
    right: 0;
}

.haloclean-lang-dropdown .haloclean-lang-list li {
    margin: 0;
    padding: 0;
}

.haloclean-lang-dropdown .haloclean-lang-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.haloclean-lang-dropdown .haloclean-lang-list a:hover {
    background: #f5f5f5;
}

/* Inline */
.haloclean-lang-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.haloclean-lang-inline a {
    color: #333;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
}

.haloclean-lang-inline a:hover {
    background: #f0f0f0;
}

.haloclean-lang-inline a.active {
    font-weight: bold;
    color: #0073aa;
}

.haloclean-lang-sep {
    color: #ccc;
    font-size: 12px;
}

/* Flags only */
.haloclean-lang-flags {
    display: flex;
    align-items: center;
    gap: 6px;
}

.haloclean-lang-flags a {
    font-size: 20px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.haloclean-lang-flags a:hover,
.haloclean-lang-flags a.active {
    opacity: 1;
}

/* Flag emoji */
.haloclean-lang-flag {
    font-size: 16px;
    line-height: 1;
}
