/* Trang "Khoá học của tôi" — chỉ nạp ở đúng trang đó.
   Dùng lại token của awe.css, không đặt màu mới. */

/* ---------- Chưa đăng nhập / chưa có khoá nào ---------- */

.awe-mc-empty {
    max-width: 52ch;
    margin: 8px auto 40px;
    padding: 40px 28px;
    text-align: center;
    background: var(--awe-surface);
    border: 1px solid var(--awe-line-soft);
    border-radius: var(--awe-radius);
}

.awe-mc-empty__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--awe-ink);
}

.awe-mc-empty__lead {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--awe-muted);
}

.awe-mc-empty__act {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* ---------- Ba ô thống kê ---------- */

.awe-mc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--awe-gap);
    margin-bottom: 26px;
}

.awe-mc-stat {
    padding: 18px 20px;
    background: var(--awe-tint);
    border-radius: var(--awe-radius);
}

.awe-mc-stat b {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--awe-primary);
    font-variant-numeric: tabular-nums;
}

.awe-mc-stat span {
    font-size: 13px;
    color: var(--awe-muted);
}

/* ---------- Danh sách ---------- */

.awe-mc-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.awe-mc-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 16px;
    background: var(--awe-surface);
    border: 1px solid var(--awe-line-soft);
    border-radius: var(--awe-radius);
}

.awe-mc-item--doing,
.awe-mc-item--full  { border-left: 3px solid var(--awe-primary); }
.awe-mc-item--done  { border-left: 3px solid var(--awe-gold); }
.awe-mc-item--off   { background: var(--awe-bg); }

.awe-mc-item__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--awe-tint);
    border-radius: var(--awe-radius);
}

.awe-mc-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.awe-mc-item--off .awe-mc-item__media img { filter: grayscale(1); opacity: .55; }

.awe-mc-item__body { min-width: 0; }

.awe-mc-item__state {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 100px;
    background: var(--awe-tint);
    color: var(--awe-muted);
}

.awe-mc-item--doing .awe-mc-item__state,
.awe-mc-item--full  .awe-mc-item__state { background: var(--awe-primary); color: #fff; }
.awe-mc-item--done  .awe-mc-item__state { background: var(--awe-gold); color: #553b00; }

.awe-mc-item__title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--awe-ink);
}

.awe-mc-item__title a { color: inherit; text-decoration: none; }
.awe-mc-item__title a:hover { color: var(--awe-primary); }

.awe-mc-item__by {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--awe-muted-2);
}

.awe-mc-item__bar {
    height: 6px;
    overflow: hidden;
    background: var(--awe-line-soft);
    border-radius: 100px;
}

.awe-mc-item__fill {
    height: 100%;
    background: var(--awe-primary);
    border-radius: 100px;
}

.awe-mc-item--done .awe-mc-item__fill { background: var(--awe-gold); }

.awe-mc-item__meta {
    margin: 7px 0 0;
    font-size: 13px;
    color: var(--awe-muted);
    font-variant-numeric: tabular-nums;
}

.awe-mc-item__meta b { color: var(--awe-ink); font-weight: 700; }
.awe-mc-item__meta span { margin: 0 5px; color: var(--awe-muted-2); }

.awe-mc-item__next {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--awe-muted-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.awe-mc-item__note {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--awe-muted);
}

.awe-mc-item__note a { color: var(--awe-primary); }

.awe-mc-item__act { padding-right: 6px; }

.awe-mc-item__off {
    font-size: 13px;
    color: var(--awe-muted-2);
    white-space: nowrap;
}

/* ---------- Hẹp ---------- */

@media (max-width: 860px) {
    .awe-mc-item {
        grid-template-columns: 120px 1fr;
        gap: 14px;
        align-items: start;
    }

    .awe-mc-item__act {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .awe-mc-item__act .awe-btn { display: block; text-align: center; }
}

@media (max-width: 560px) {
    .awe-mc-stats { grid-template-columns: 1fr; gap: 10px; }
    .awe-mc-stat { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; }
    .awe-mc-stat b { font-size: 22px; }

    .awe-mc-item { grid-template-columns: 1fr; }
    .awe-mc-item__media { max-width: 220px; }
    .awe-mc-empty { padding: 30px 20px; }
}
