/* ==========================================================================
   UISC Edu Skill — learner-facing course access (My courses, dashboard,
   course page curriculum, order confirmation). Uses the tokens in app.css.
   ========================================================================== */

/* ---------- Course cards (My courses) ---------- */
.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.lc-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.lc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.lc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lc-card:hover .lc-thumb img { transform: scale(1.05); }
.lc-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: var(--gold); }
.lc-badge {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 100px; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.lc-badge--completed { background: #1c6e4b; color: #fff; }
.lc-badge--in_progress { background: var(--gold); color: var(--ink); }
.lc-play {
  position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .25s var(--ease);
}
.lc-card:hover .lc-play { transform: scale(1.1); }
.lc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.lc-cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.lc-body h3 { font-family: 'Fraunces', serif; font-size: 1.12rem; line-height: 1.3; margin: 6px 0 14px; color: var(--ink); }
.lc-body h3 a:hover { color: var(--gold-deep); }
.lc-progress-row { display: flex; align-items: center; gap: 12px; }
.lc-progress-row .progress { flex: 1; margin: 0; }
.lc-progress-row b { font-size: .86rem; color: var(--ink); min-width: 38px; text-align: right; }
.lc-meta { margin-top: 8px; font-size: .82rem; color: var(--muted); }
.lc-meta strong { color: var(--ink); font-weight: 600; }
.lc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.lc-actions .btn { flex: 1; }
.lc-done { display: inline-flex; align-items: center; gap: 6px; color: #1c6e4b; font-weight: 600; font-size: .86rem; }

/* ---------- Dashboard: continue learning ---------- */
.lc-resume {
  display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: center;
  padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--ink), var(--ink-600)); color: #fff;
  margin-bottom: 18px; box-shadow: var(--shadow);
}
.lc-resume-img { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 2.4rem; color: var(--gold); }
.lc-resume-img img { width: 100%; height: 100%; object-fit: cover; }
.lc-resume small { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.lc-resume h3 { font-family: 'Fraunces', serif; font-size: 1.35rem; color: #fff; margin: 4px 0 10px; line-height: 1.25; }
.lc-resume .progress { background: rgba(255, 255, 255, .18); }
.lc-resume .progress span { background: var(--gold); }
.lc-resume p { color: rgba(255, 255, 255, .75); font-size: .86rem; margin: 8px 0 14px; }
.lc-resume p strong { color: #fff; }
.lc-list-row { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.lc-list-row:last-child { border-bottom: 0; }
.lc-list-ic { width: 50px; height: 50px; border-radius: 11px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; overflow: hidden; }
.lc-list-ic img { width: 100%; height: 100%; object-fit: cover; }
.lc-list-main { flex: 1; min-width: 0; }
.lc-list-main b { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-list-main .progress { margin-top: 8px; max-width: 280px; }

/* ---------- Course page: curriculum + enrolled box ---------- */
.lc-curriculum { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; margin-bottom: 10px; }
.lc-curriculum-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 22px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.lc-curriculum-head b { color: var(--ink); }
.lc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 100px; background: var(--gold-soft); color: var(--ink); font-size: .76rem; font-weight: 700; }
.lc-lessons { list-style: none; margin: 0; padding: 0; }
.lc-lesson { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line-soft); }
.lc-lesson:last-child { border-bottom: 0; }
.lc-lesson-num { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--ink); }
.lc-lesson--quiz .lc-lesson-num { background: var(--gold-soft); border-color: transparent; }
.lc-lesson-title { flex: 1; min-width: 0; color: var(--ink); font-weight: 500; }
.lc-lesson-title small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.lc-lesson-ic { color: var(--muted-2); display: grid; }
.lc-lesson--done .lc-lesson-num { background: #1c6e4b; border-color: #1c6e4b; color: #fff; }
.lc-section { padding: 12px 22px; background: var(--paper); font-family: 'Fraunces', serif; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.lc-enrolled { background: linear-gradient(180deg, #f2faf6, #fff); border: 1px solid #c3e6d4; border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.lc-enrolled-head { display: flex; align-items: center; gap: 10px; color: #1c6e4b; font-weight: 700; margin-bottom: 12px; }
.lc-enrolled-head span { width: 28px; height: 28px; border-radius: 50%; background: #1c6e4b; color: #fff; display: grid; place-items: center; }
.lc-enrolled .progress { margin: 0 0 6px; }
.lc-enrolled small { color: var(--muted); font-size: .82rem; }

/* ---------- Order confirmation ---------- */
.lc-success-list { text-align: left; display: grid; gap: 10px; margin-bottom: 24px; }
.lc-success-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lc-success-item .lc-list-ic { width: 64px; height: 48px; }
.lc-success-item b { display: block; color: var(--ink); line-height: 1.3; }
.lc-success-item small { color: var(--muted); font-size: .82rem; }
.lc-success-item .btn { margin-left: auto; flex-shrink: 0; }

@media (max-width: 680px) {
  .lc-resume { grid-template-columns: 1fr; }
  .lc-success-item { flex-wrap: wrap; }
  .lc-success-item .btn { margin-left: 0; width: 100%; }
}
