/**
 * 多语言切换插件样式
 * Language Switcher Plugin Styles
 */

.language-switcher-container {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.language-switcher-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-switcher-icon:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.language-switcher-icon i {
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
}

.language-switcher-icon:hover i {
    color: #2CAC80;
}

.language-switcher-icon.loading {
    background: rgba(44, 172, 128, 0.1);
}

.language-switcher-icon.loading i {
    color: #2CAC80;
}

.language-switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-switcher-dropdown.language-switcher-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.language-switcher-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.language-switcher-item:last-child {
    border-bottom: none;
}

.language-switcher-item:hover {
    background: rgba(44, 172, 128, 0.1);
}

.language-switcher-item.language-switcher-active {
    background: rgba(44, 172, 128, 0.15);
    color: #2CAC80;
    font-weight: 500;
}

.language-switcher-item.language-switcher-active::after {
    content: '✓';
    margin-left: auto;
    color: #2CAC80;
    font-weight: bold;
}

.language-switcher-item .lang-name {
    font-size: 14px;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-switcher-icon {
        width: 36px;
        height: 36px;
    }
    
    .language-switcher-icon i {
        font-size: 16px;
    }
    
    .language-switcher-dropdown {
        min-width: 100px;
        margin-top: 6px;
    }
    
    .language-switcher-item {
        padding: 10px 14px;
    }
    
    .language-switcher-item .lang-name {
        font-size: 13px;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .language-switcher-icon {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .language-switcher-icon:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .language-switcher-icon i {
        color: #fff;
    }
    
    .language-switcher-dropdown {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .language-switcher-dropdown::before {
        border-bottom-color: #2a2a2a;
    }
    
    .language-switcher-item {
        border-bottom-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .language-switcher-item:hover {
        background: rgba(44, 172, 128, 0.2);
    }
    
    .language-switcher-item.language-switcher-active {
        background: rgba(44, 172, 128, 0.25);
    }
}

/* Header语言切换器样式 */
.header-language-switcher {
    display: inline-block;
    margin: 0px 10px;
}

.header-language-switcher .language-switcher-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0);
    box-shadow:0 0;
    margin: 0;
}

.header-language-switcher .language-switcher-icon:hover {
 /*   background: rgba(255, 255, 255, 0.2);
    transform: none;*/
}

.header-language-switcher .language-switcher-icon i {
    font-size: 14px;
    color: #000;
}

.header-language-switcher .language-switcher-icon:hover i {
    /*color: #2CAC80;*/
    color: #000;
}

.header-language-switcher .language-switcher-dropdown {
    top: 100%;
    right: -10px;
    margin-top: 5px;
    min-width: 100px;
}

.header-language-switcher .language-switcher-dropdown::before {
    right: 15px;
}

.header-language-switcher .language-switcher-item {
    padding: 8px 12px;
}

.header-language-switcher .language-switcher-item .lang-name {
    font-size: 12px;
} 