/*
 * Course Index Filter Styles
 * Reference: lock_common.css color scheme
 */
@charset "utf-8";

:root {
    --main-color: #8B5A2B;
    --dark-color: #5A2D18;
    --light-color: #A06B3D;
    --gold-color: #C4A35A;
    --gold-light: #E8D5A3;
    --bg-color: #FAF7F2;
    --text-dark: #3D2914;
    --border-color: #E8D5C4;
    --white: #ffffff;
    --fresh-primary: #8B5A2B;
    --fresh-secondary: #A06B3D;
    --fresh-light: #F5EEE6;
    --fresh-active: #5A2D18;
    --fresh-tab: #C4A35A;
    --fresh-tab-light: #FFF8E8;
    --hover-bg: #8B5A2B;
    --hover-text: #ffffff;
}

/* 筛选区域整体容器 - 白色背景 */
.filter-wrapper {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

/* 筛选区块 */
.filter-section {
    margin-top: 0px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    background: var(--white);
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 筛选标题 */
.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
    margin-right: 10px;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
}

.filter-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--fresh-primary), var(--gold-color));
    border-radius: 2px;
}

/* 筛选内容区域 */
.filter-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--white);
    padding-left: 12px;
    line-height: 1.5;
}

/* 筛选按钮基础样式 - 与课程卡片标签尺寸一致 */
.filter-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--white);
}

/* 悬停状态 - 参考.course-tab样式 */
.filter-content a:hover {
    border-color: var(--fresh-primary);
    background: var(--fresh-light);
    color: var(--fresh-active);
    transform: none;
    box-shadow: none;
}

/* 激活状态 - 参考.course-tab.active样式 */
.filter-content a.active {
    background: linear-gradient(135deg, var(--fresh-primary), var(--fresh-secondary));
    color: #fff;
    border-color: var(--fresh-primary);
    box-shadow: 0 2px 6px rgba(139, 90, 43, 0.3);
    transform: none;
}

/* 激活状态悬停 */
.filter-content a.active:hover {
    box-shadow: 0 4px 10px rgba(139, 90, 43, 0.4);
}

/* 特殊标签样式 - 热门标签 */
.filter-content a.hot {
    position: relative;
}

.filter-content a.hot::after {
    content: 'HOT';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 10px;
    padding: 2px 5px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border-radius: 10px;
    font-weight: bold;
}

/* 数量标记 */
.filter-content a .count {
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.7;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-wrapper {
        padding: 12px 12px;
    }

    .filter-content a {
        padding: 6px 12px;
        font-size: 12px;
        min-width: auto;
    }

    .filter-content {
        gap: 5px;
    }
}