/* Language Switcher Styles - Refined for Brand Consistency */
.lang-switcher-wrap {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background: rgba(0, 0, 0, 0.15); /* Subtle dark overlay for orange/dark headers */
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.lang-toggle:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.lang-toggle img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Dropdown Menu Style */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #1a1f24; /* Matches --color-default */
    border-radius: 10px;
    min-width: 170px;
    padding: 8px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 9999;
    list-style: none;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switcher-wrap:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.lang-item a:hover {
    background: #ff8400; /* Matches --color-primary */
    color: #ffffff;
}

.lang-item img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Specific fix for topbar buttons */
#topbar .lang-toggle {
    margin-top: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .lang-toggle {
        padding: 5px 10px;
        font-size: 13px;
    }
}
