/**
 * 共享头部导航栏样式
 * 用于 Index.cshtml、Demo.cshtml 和 Admin 页面头部统一样式
 * 
 * 核心功能：
 * 1. 语言切换器样式（Index 和 Demo 页面使用）
 * 2. 响应式布局支持
 * 
 * 使用示例：
 * <link rel="stylesheet" href="~/css/header-shared.css" asp-append-version="true" />
 * 
 * 依赖：Tailwind CSS、Material Symbols
 * 
 * 注意：Admin 头部已改用 Tailwind 原子类，不再使用此文件中的自定义类
 */

/* ═══════════════════════════════════════════════════════════
   Language Switcher Styles
   ═══════════════════════════════════════════════════════════ */

.lang-switcher {
    position: relative;
    display: inline-flex;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #c1c6d5;
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #191c1d;
    transition: all 0.2s ease;
}

.lang-switcher-btn:hover {
    background: rgba(243, 244, 245, 0.5);
    border-color: #0066cc;
}

.lang-switcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid #c1c6d5;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px -10px rgba(25, 28, 29, 0.15);
    min-width: 160px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.lang-switcher-dropdown.show {
    display: block;
}

.lang-switcher-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.875rem;
    color: #191c1d;
}

.lang-switcher-option:hover {
    background: #f3f4f5;
}

.lang-switcher-option.active {
    color: #0066cc;
    font-weight: 700;
    background: #dfe8ff;
}
