/**
 * SP LMS Lesson Page Improvements
 *
 * All typography values use CSS custom properties (--splms-*)
 * that are set dynamically from plugin parameters.
 *
 * @package     plg_system_splmsstyle
 * @copyright   (C) 2026 WarumSchach
 */

/* Lesson content area */
.splms-lesson-details .splms-lesson-description.item-content {
    padding: 25px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-top: 20px;
}

/* Lesson title (moved above video by JS) */
.splms-lesson-details .splms-lesson-title {
    font-family: var(--splms-title-font, 'Segoe UI', Tahoma, sans-serif);
    font-size: var(--splms-title-size, 24px);
    font-weight: 700;
    color: var(--splms-title-color, #2c3e50);
    text-align: var(--splms-title-align, left);
    border-bottom: 2px solid var(--splms-title-border, #4a90d9);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* Fallback: title still inside content area (before JS runs) */
.splms-lesson-details .splms-lesson-description.item-content > h2 {
    font-family: var(--splms-title-font, 'Segoe UI', Tahoma, sans-serif);
    font-size: var(--splms-title-size, 24px);
    font-weight: 700;
    color: var(--splms-title-color, #2c3e50);
    text-align: var(--splms-title-align, left);
    border-bottom: 2px solid var(--splms-title-border, #4a90d9);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* Lesson text */
.splms-lesson-details .splms-lesson-description.item-content .splms-lesson-description {
    font-family: var(--splms-text-font, 'Segoe UI', Tahoma, sans-serif);
    font-size: var(--splms-text-size, 16px);
    line-height: var(--splms-text-line-height, 1.8);
    color: var(--splms-text-color, #444);
}

/* Course lesson list */
.splms-lesson-details .course-lessons {
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 20px;
}

.splms-lesson-details .course-lessons > h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* Lesson list items */
.splms-lesson-details .lessons .lesson {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: background 0.15s;
}

.splms-lesson-details .lessons .lesson:hover {
    background: #f0f4f8;
}

.splms-lesson-details .lessons .lesson.active {
    background: #e8f0fe;
    font-weight: 600;
}

.splms-lesson-details .lessons .lesson a {
    color: #2c3e50;
    text-decoration: none;
}

.splms-lesson-details .lessons .lesson.active a {
    color: var(--splms-title-border, #4a90d9);
}

/* Teacher info section */
.splms-lesson-details .splms-lesson-teacher-wrapper {
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 20px 25px;
}

.splms-lesson-details .splms-lesson-teacher-wrapper h2 {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.splms-lesson-details .splms-teacher-thumb img {
    border-radius: 50%;
    max-width: 100px;
}

.splms-lesson-details .splms-lesson-teacher-name a {
    color: var(--splms-title-border, #4a90d9);
    text-decoration: none;
    font-weight: 600;
}

/* Login/Complete button */
.splms-lesson-details .splms-lesson-completed-lesson-wrapper {
    margin-top: 20px;
    text-align: center;
}

.splms-lesson-details .splms-lesson-completed-lesson-wrapper .btn-primary {
    padding: 10px 30px;
    font-size: 1em;
    border-radius: 6px;
}

/* Chess diagram inside SP LMS - extra spacing */
.splms-lesson-description .chess-diagram-container {
    margin: 30px auto;
}

/* Responsive */
@media (max-width: 768px) {
    .splms-lesson-details .splms-lesson-description.item-content {
        padding: 15px;
    }
}
