/**
 * AI Translate — Frontend Language Switcher Styles
 */

/* Inline switcher */
.ait-language-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.ait-switcher-inline .ait-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ait-switcher-inline .ait-lang-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.ait-switcher-inline .ait-lang-active {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.07);
}

.ait-flag {
    font-size: 1.2em;
    line-height: 1;
}

.ait-lang-name {
    white-space: nowrap;
}

/* Dropdown switcher */
.ait-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.ait-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    line-height: 1.4;
}

.ait-dropdown-toggle:hover {
    border-color: #aaa;
}

.ait-dropdown-arrow {
    font-size: 0.7em;
    margin-left: 2px;
}

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

.ait-switcher-dropdown.ait-open .ait-dropdown-menu {
    display: block;
}

.ait-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.ait-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.ait-dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Floating switcher */
.ait-floating-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.ait-floating-switcher .ait-dropdown-menu {
    bottom: 100%;
    top: auto;
    margin: 0 0 4px;
}

.ait-floating-switcher .ait-dropdown-toggle {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Menu language items */
.ait-menu-lang-item a {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}
