/* Language Switcher Styles - Dropdown Style */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lang-dropdown-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
}

.lang-dropdown-btn:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.lang-current {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lang-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
    color: #6b7280;
}

.language-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 50;
    overflow: hidden;
}

.language-switcher.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.lang-option:hover {
    background: #f3f4f6;
}

.lang-option.active {
    background: #eff6ff;
    color: #1e3a8a;
}

.lang-option-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.lang-option-code {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lang-option-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.lang-option.active .lang-option-name {
    color: #1e3a8a;
}

/* Mobile language switcher */
.mobile-lang-switcher {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-lang-switcher .lang-dropdown-btn {
    width: 100%;
    justify-content: space-between;
}

.mobile-lang-switcher .lang-dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .language-switcher:not(.mobile-lang-switcher) {
        display: none;
    }
}

@media (min-width: 1025px) {
    .mobile-lang-switcher {
        display: none;
    }
}
