/* =====================================================
   LearnDash Lesson List Widget — widget.css
   ===================================================== */

/* --- Wrapper --- */
.ld-lesson-list-wrapper {
    max-width: 700px;
    font-family: inherit;
    margin: 0 auto;
    background: #f5f7fa;
    padding: 8px;
    box-sizing: border-box;
}

/* --- Semester Block --- */
.ld-semester-block {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 20px;
}

.ld-semester-block:last-child {
    margin-bottom: 0;
}

/* --- Semester Header --- */
.ld-semester-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8eaed;
}

.ld-semester-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

/* --- Lessons List --- */
.ld-lessons-list {
    display: flex;
    flex-direction: column;
}

/* --- Lesson Item --- */
.ld-lesson-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.ld-lesson-item:last-child {
    border-bottom: none;
}

/* --- Hover State --- */
.ld-lesson-item:hover {
    background-color: #eef4ff;
    transform: translateX(2px);
    box-shadow: -3px 0 0 0 #2563eb;
    z-index: 1;
}

/* --- Complete State --- */
.ld-lesson-item.ld-complete {
    background-color: #eef9f0;
}

.ld-lesson-item.ld-complete:hover {
    background-color: #d1fae5;
}

/* --- Status Dot --- */
.ld-status-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.ld-status-dot.complete {
    background-color: #16a34a;
    border-color: #16a34a;
}

.ld-status-dot.in_progress {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.ld-status-dot.not_started {
    background-color: transparent;
    border-color: #d1d5db;
}

.ld-lesson-item:hover .ld-status-dot.not_started {
    border-color: #2563eb;
    transform: scale(1.1);
}

.ld-status-dot svg {
    width: 11px;
    height: 11px;
    display: block;
}

/* --- Lesson Thumbnail --- */
.ld-lesson-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 14px;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ld-lesson-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.25s ease;
}

.ld-lesson-item:hover .ld-lesson-thumb img {
    transform: scale(1.06);
}

.ld-lesson-item:hover .ld-lesson-thumb {
    box-shadow: 0 2px 10px rgba(37,99,235,0.15);
}

.ld-lesson-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eaed;
    border-radius: 8px;
}

/* --- Lesson Title --- */
.ld-lesson-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    line-height: 1.4;
    transition: color 0.18s ease;
}

.ld-lesson-item:hover .ld-lesson-title {
    color: #2563eb;
}

.ld-lesson-item.ld-complete .ld-lesson-title {
    color: #16a34a;
}

.ld-lesson-item.ld-complete:hover .ld-lesson-title {
    color: #15803d;
}

/* --- Arrow --- */
.ld-lesson-arrow {
    margin-left: 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.ld-lesson-arrow svg {
    stroke: #9ca3af;
    transition: stroke 0.18s ease, transform 0.18s ease;
}

.ld-lesson-item:hover .ld-lesson-arrow {
    transform: translateX(3px);
}

.ld-lesson-item:hover .ld-lesson-arrow svg {
    stroke: #2563eb;
}

.ld-lesson-item.ld-complete .ld-lesson-arrow svg {
    stroke: #86efac;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .ld-lesson-item {
        padding: 12px 14px;
    }

    .ld-lesson-thumb {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .ld-lesson-title {
        font-size: 14px;
    }
}
