/* Language Switcher Styles - Always Loaded */

/* Desktop Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    margin-right: 15px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.language-switcher .lang-icon {
    font-size: 18px;
    margin-right: 5px;
}

.language-switcher .lang-divider {
    color: #adb5bd;
    font-weight: 300;
    font-size: 14px;
}

.language-switcher a {
    padding: 5px 12px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    font-size: 13px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.language-switcher a:hover {
    color: #212529;
    background-color: rgba(0, 0, 0, 0.08);
}

.language-switcher a.active {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Mobile Language Switcher */
.language-switcher-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.language-switcher-mobile .lang-icon {
    font-size: 22px;
    margin-right: 8px;
}

.language-switcher-mobile a {
    padding: 10px 25px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    font-size: 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    background: #fff;
}

.language-switcher-mobile a:hover {
    background-color: #f1f3f4;
    border-color: #adb5bd;
}

.language-switcher-mobile a.active {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #fff;
    border-color: #212529;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* RTL adjustments for language switcher */
html[dir="rtl"] .language-switcher {
    flex-direction: row !important;
    /* Force Icon (1st child) to be on the Right */
}

html[dir="rtl"] .language-switcher .lang-icon {
    margin-right: 0;
    margin-left: 5px;
    /* Spacing after icon */
}

html[dir="rtl"] .language-switcher-mobile {
    flex-direction: row !important;
}

html[dir="rtl"] .language-switcher-mobile .lang-icon {
    margin-right: 0;
    margin-left: 8px;
}