/* Custom Language Switcher Styles */

.language-switcher-custom,
.language-switcher-mobile {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 1rem
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    min-width: 90px;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lang-dropdown.active .lang-current {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.lang-name {
    flex: 1;
    text-align: left;
}

.lang-arrow {
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.lang-dropdown.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 90px;
}

.lang-dropdown.active .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #333333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
}

.lang-option:hover {
    background: #f5f5f5;
    color: #0066cc;
}

.lang-option .lang-flag {
    width: 18px;
    height: 13px;
}

/* Mobile specific styles */
.language-switcher-mobile .lang-current {
    color: #333333;
    border-color: rgba(0, 0, 0, 0.1);
    min-width: 70px;
    padding: 5px 8px;
    font-size: 12px;
    gap: 4px;
}

.language-switcher-mobile .lang-current:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
}

.language-switcher-mobile .lang-dropdown.active .lang-current {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.3);
}

.language-switcher-mobile .lang-flag {
    width: 16px;
    height: 12px;
}

.language-switcher-mobile .lang-list {
    min-width: 70px;
}

.language-switcher-mobile .lang-arrow {
    width: 10px;
    height: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lang-current {
        min-width: 70px;
        padding: 5px 8px;
        font-size: 12px;
        gap: 4px;
    }
    
    .lang-flag {
        width: 16px;
        height: 12px;
    }
    
    .lang-list {
        min-width: 70px;
    }
    
    .lang-arrow {
        width: 10px;
        height: 10px;
    }
}

/* Animation for smooth appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-dropdown.active .lang-list {
    animation: slideDown 0.3s ease forwards;
}
