/**
 * Course Page Styles
 * URL: /{course-slug}.html
 */

.tlht-course-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Breadcrumb */
.tlht-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.tlht-breadcrumb a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s;
}

.tlht-breadcrumb a:hover {
    color: #135e96;
    text-decoration: underline;
}

.tlht-breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* Course Header */
.tlht-course-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.tlht-course-icon-wrapper {
    flex-shrink: 0;
}

.tlht-course-main-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.tlht-course-info {
    flex: 1;
}

.tlht-course-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.tlht-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

.tlht-meta-item {
    color: #666;
}

.tlht-meta-item strong {
    color: #333;
    font-weight: 600;
}

/* Lessons Container */
.tlht-lessons-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Chapter Section */
.tlht-chapter-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tlht-chapter-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.tlht-chapter-icon {
    font-size: 24px;
}

.tlht-chapter-count {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    margin-left: auto;
}

/* Lessons List - 2 columns */
.tlht-lessons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tlht-lesson-item {
    margin: 0;
}

.tlht-lesson-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.tlht-lesson-link:hover {
    background: white;
    border-left-color: #2271b1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.tlht-lesson-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #c91212;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.tlht-lesson-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #000;
}

.tlht-lesson-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.tlht-status-completed {
    background: #4caf50;
    color: white;
}

/* Empty State */
.tlht-empty-lessons {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
}

.tlht-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.tlht-empty-lessons h3 {
    font-size: 24px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px 0;
}

.tlht-empty-lessons p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tlht-course-page {
        padding: 15px 12px;
    }

    .tlht-course-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .tlht-course-main-icon {
        width: 64px;
        height: 64px;
    }

    .tlht-course-title {
        font-size: 20px;
    }

    .tlht-course-meta {
        justify-content: center;
        gap: 15px;
        font-size: 13px;
    }

    .tlht-chapter-title {
        font-size: 18px;
    }

    .tlht-lessons-list {
        grid-template-columns: 1fr;
    }

    .tlht-lesson-link {
        padding: 10px 12px;
    }

    .tlht-lesson-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .tlht-lesson-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tlht-course-title {
        font-size: 18px;
    }

    .tlht-course-meta {
        flex-direction: column;
        gap: 8px;
    }

    .tlht-chapter-title {
        font-size: 16px;
        flex-wrap: wrap;
    }

    .tlht-chapter-count {
        margin-left: 0;
    }
}

