/* ========================================
   LMS: 교육과정 목록 페이지
======================================== */

/* ───── 과정유형 탭 ───── */
.cp-type-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.cp-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: all .15s;
    background: #fff;
}
.cp-type-tab:hover {
    border-color: #553AE7;
    color: #553AE7;
}
.cp-type-tab.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.cp-type-tab i {
    font-size: 13px;
}

/* ───── 필터 바 ───── */
.cp-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.cp-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.cp-cat {
    padding: 7px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    background: transparent;
    cursor: pointer;
    transition: all .15s;
    font-family: var(--font);
}
.cp-cat:hover {
    border-color: #553AE7;
    color: #553AE7;
}
.cp-cat.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
    font-weight: 700;
}
.cp-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cp-search {
    position: relative;
    display: flex;
    align-items: center;
}
.cp-search i {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 13px;
}
.cp-search input {
    padding: 9px 14px 9px 34px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font);
    color: #111827;
    background: #fff;
    width: 200px;
    transition: border-color .15s;
}
.cp-search input:focus {
    outline: none;
    border-color: #553AE7;
}
.cp-sort {
    padding: 9px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font);
    color: #111827;
    background: #fff;
    cursor: pointer;
}
.cp-sort:focus {
    outline: none;
    border-color: #553AE7;
}

/* ───── 빈 상태 ───── */
.cp-empty {
    text-align: center;
    padding: 80px 0;
    color: #9ca3af;
}
.cp-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: .3;
}
.cp-empty p {
    font-size: 14px;
}

/* ───── 페이징 ───── */
.cp-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}
.cp-page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.cp-page-btn:hover {
    border-color: #553AE7;
    color: #553AE7;
}
.cp-page-btn.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

/* ───── 반응형 ───── */
@media (max-width: 768px) {
    .cp-type-tabs { flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
    .cp-type-tab { font-size: 13px; padding: 8px 16px; }
    .cp-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .cp-controls {
        flex-direction: column;
    }
    .cp-search input {
        width: 100%;
    }
    .cp-sort {
        width: 100%;
    }
    .cp-categories { flex-wrap: wrap; }
}
