/* ================================================================== */
/* == 강의 목록 페이지 전용 스타일 (course_list.css) == */
/* ================================================================== */

/* === 페이지 헤더 & 필터 === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px 30px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.header-actions a {
    padding: 10px 18px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-actions a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.header-actions a.special {
    background-color: #FFDE59;
    color: #333;
    font-weight: bold;
    border-color: #FFDE59;
}

.filter-section {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-buttons:not(:first-child) {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.filter-buttons a {
    padding: 8px 15px;
    text-decoration: none;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s;
}

.filter-buttons a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.filter-buttons a.selected {
    background-color: #FFDE59;
    color: #333;
    font-weight: bold;
    border-color: #FFDE59;
}


/* === 강의 카드 목록 === */
.course-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.course-card {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.course-info {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.course-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.meta-row:first-child {
    margin-bottom: 8px;
}

.author-info {
    color: #e0e0e0;
    font-weight: 500;
}

.action-links a {
    color: #FFDE59;
    text-decoration: none;
    font-weight: 500;
    margin-left: 10px;
}

.social-stats a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
}

.date {
    color: #ccc;
}

.no-courses {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 40px;
    font-size: 1.2em;
    text-align: center;
    grid-column: 1 / -1;
}

.pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 15px;
}

.pagination a, .pagination span {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

.pagination a.current {
    background-color: #FFDE59;
    color: #333;
    font-weight: bold;
}
/* ================================================================== */
/* == 야학교실 페이지 헤더 버튼 스타일 (재민 첨삭 완료) == */
/* ================================================================== */

/* --- 1. 기본 버튼 스타일 (Base Style) --- */
/* .page-header 안의 .nav-buttons 안에 있는 모든 .nav-btn에 적용 */
.page-header .nav-buttons .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    padding: 13px 19px; /* 스승님께서 조정한 값 (상하 13px, 좌우 20px) */
    margin: 3px;
    font-size: 1em;
    line-height: 1.2;
}

/* --- 2. 강조 버튼 스타일 (Modifier Style) --- */
/* 기본 버튼 스타일 위에, .special 클래스가 추가된 버튼에만 덮어쓰기 */
.page-header .nav-buttons .nav-btn.special {
    background-color: #FFDE59;
    color: #333;
    font-weight: bold;
    border-color: #FFDE59;
    gap: 15px;
}

/* === 강의 목록 페이지 반응형 === */
@media (max-width: 992px) {
    .page-header {
        flex-direction: column;
        text-align: center;
    }
}