/* Courses Page Styles - 강의 목록 및 상세 페이지 스타일 */

/* Category Tabs */
.category-tab {
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-tab.active {
    background: linear-gradient(to right, #f97316, #ec4899);
    color: white;
    font-weight: bold;
    border-color: transparent;
}

/* Filter Select */
.filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Course Detail Page */
.course-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .course-detail-container {
        grid-template-columns: 1fr 400px;
    }
}

/* Sticky Card */
.course-sticky-card {
    order: -1;
}

@media (min-width: 1024px) {
    .course-sticky-card {
        order: 1;
    }
}

.sticky-card {
    position: relative;
}

@media (min-width: 1024px) {
    .sticky-card {
        position: sticky;
        top: 100px;
    }
}

/* Course Content */
.course-content {
    order: 1;
}

@media (min-width: 1024px) {
    .course-content {
        order: -1;
    }
}

/* Tabs */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    gap: 8px;
}

.tab-button {
    padding: 12px 24px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.tab-button[data-target] {
    cursor: pointer;
}

.tab-button[data-target]:hover {
    color: #f97316;
}

.tab-button.active {
    color: #f97316;
    border-bottom-color: #f97316;
    cursor: default;
}

/* Instructor Card */
.instructor-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background-color: #f9fafb;
    border-radius: 12px;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.instructor-info p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Curriculum */
.curriculum-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.curriculum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f9fafb;
    cursor: pointer;
    transition: background-color 0.2s;
}

.curriculum-header:hover {
    background-color: #f3f4f6;
}

.curriculum-header h4 {
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.curriculum-toggle {
    font-size: 1.25rem;
    color: #6b7280;
    transition: transform 0.3s;
}

.curriculum-toggle.active {
    transform: rotate(180deg);
}

.curriculum-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.curriculum-content.active {
    max-height: 2000px;
}

.lecture-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.lecture-item:hover {
    background-color: #f9fafb;
}

.lecture-title {
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lecture-duration {
    color: #6b7280;
}

/* Reviews */
.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.review-rating {
    color: #fbbf24;
}

.review-date {
    color: #9ca3af;
    font-size: 0.875rem;
}

.review-text {
    color: #4b5563;
    line-height: 1.6;
}

/* FAQ */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question h4 {
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.faq-toggle {
    font-size: 1.25rem;
    color: #6b7280;
    transition: transform 0.3s;
}

.faq-toggle.active {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9fafb;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer p {
    padding: 16px 20px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}
