/* LMS Advisor WordPress Connector — My Courses Tab */

/* ── Course row layout ───────────────────────────────────────────────────── */
.lmsa-my-courses-wrap { display: flex; flex-direction: column; gap: 16px; }

.lmsa-course-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    transition: box-shadow .2s, transform .2s;
}
.lmsa-course-row:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.07);
    transform: translateY(-1px);
}

/* ── Thumbnail ───────────────────────────────────────────────────────────── */
.lmsa-course-row__thumb {
    flex-shrink: 0;
    width: 90px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
}
.lmsa-course-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lmsa-course-row__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ededff, #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* ── Info ────────────────────────────────────────────────────────────────── */
.lmsa-course-row__info { flex: 1; min-width: 0; }

.lmsa-course-row__title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lmsa-course-row__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.lmsa-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.lmsa-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: #64748b;
}
.lmsa-meta-icon { font-size: 13px; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.lmsa-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lmsa-progress-bar {
    flex: 1;
    max-width: 240px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.lmsa-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .4s ease;
}
.lmsa-progress-pct {
    font-size: 12px;
    font-weight: 700;
    min-width: 36px;
}

/* ── Actions ─────────────────────────────────────────────────────────────── */
.lmsa-course-row__actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.lmsa-btn-start {
    white-space: nowrap;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 9px 20px !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    border: none !important;
    transition: opacity .15s, transform .15s !important;
}
.lmsa-btn-start:hover { opacity: .9 !important; transform: translateY(-1px) !important; }

.lmsa-btn-primary {
    background: linear-gradient(135deg, #5b5ef6, #3b82f6) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(91,94,246,.35) !important;
}

.lmsa-btn-done {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(5,150,105,.3) !important;
}

.lmsa-btn-cert {
    background: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.lmsa-btn-cert:hover { background: #fef3c7 !important; }

.lmsa-btn-processing {
    font-size: 13px;
    color: #d97706;
    font-weight: 600;
    padding: 9px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .lmsa-course-row { flex-wrap: wrap; }
    .lmsa-course-row__thumb { width: 70px; height: 56px; }
    .lmsa-course-row__actions { flex-direction: row; width: 100%; justify-content: flex-start; }
    .lmsa-course-row__title { white-space: normal; }
    .lmsa-progress-bar { max-width: 100%; }
}
