/**
 * Language Switcher Styles
 */

/* Language Switcher Container */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.lang-switcher-toggle i {
    font-size: 1rem;
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.lang-switcher-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #2a2a2a;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.lang-switcher-item:last-child {
    border-bottom: none;
}

.lang-switcher-item:hover {
    background: #f8f9fa;
}

.lang-switcher-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.lang-switcher-item i {
    font-size: 1.25rem;
}

.lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Scrolled header adjustments */
.header.scroll-header .lang-switcher-toggle {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    color: #2a2a2a;
}

.header.scroll-header .lang-switcher-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Mobile Styles */
@media screen and (max-width: 1024px) {
    .lang-switcher {
        position: absolute;
        top: 1rem;
        right: 80px;
        margin-left: 0;
        z-index: 100;
    }
    
    .lang-switcher-toggle {
        background: rgba(102, 126, 234, 0.1);
        border-color: rgba(102, 126, 234, 0.2);
        color: #2a2a2a;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .lang-switcher-menu {
        position: fixed;
        top: auto;
        right: 1rem;
        width: auto;
        min-width: 160px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-switcher-menu.show {
    animation: fadeInUp 0.3s ease forwards;
}
