/* Flavor Translate - 语言切换器样式 */

/* 固定侧边栏 */
.flavor-switcher-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}
.flavor-pos-right { right: 0; border-radius: 8px 0 0 8px; }
.flavor-pos-left { left: 0; border-radius: 0 8px 8px 0; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }

.flavor-switcher-sidebar .flavor-lang {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.2s;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
}
.flavor-switcher-sidebar .flavor-lang:last-child {
    border-bottom: none;
}
.flavor-switcher-sidebar .flavor-lang:hover {
    background: #f0f0f0;
}
.flavor-switcher-sidebar .flavor-lang.active {
    background: #0073aa;
    color: #fff;
}
.flavor-switcher-sidebar .flag {
    margin-right: 6px;
    font-size: 16px;
}
.flavor-switcher-sidebar .name {
    font-size: 12px;
}

/* 内联样式（短代码用） */
.flavor-switcher-inline {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
}
.flavor-switcher-inline .flavor-lang {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}
.flavor-switcher-inline .flavor-lang:hover {
    border-color: #0073aa;
    color: #0073aa;
}
.flavor-switcher-inline .flavor-lang.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* 无翻译提示 */
.flavor-no-translation {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .flavor-switcher-sidebar .name {
        display: none;
    }
    .flavor-switcher-sidebar .flavor-lang {
        padding: 6px 8px;
    }
    .flavor-switcher-sidebar .flag {
        margin-right: 0;
    }
}
