/* Subject page - lesson card list */
#lesson-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lesson-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: box-shadow 0.15s;
}
.lesson-row:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    color: #000;
    text-decoration: none;
}
.lesson-thumb-wrap {
    position: relative;
    width: 100%;
}
.lesson-row-thumb {
    width: 100%;
    height: auto;
    display: block;
}
.lesson-row-thumb-none {
    width: 100%;
    height: 110px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 2.5rem;
}
.lesson-score-overlay {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
}
.lesson-row-name {
    padding: 8px 10px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.3;
}
.lesson-row-age {
    padding: 0 10px 8px;
    font-size: 0.74rem;
    color: #888;
    line-height: 1.2;
}

.lesson-row-thumb-sub {
    position: relative;
    width: 100%;
    height: 110px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lesson-sub-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: #666;
    line-height: 1;
}
.lesson-row-thumb-mini {
    position: absolute;
    width: 36px;
    height: auto;
    bottom: 6px;
    right: 6px;
    opacity: 0.6;
    border-radius: 2px;
}

/* Home page - today's stats */
.today-stats {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 400px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.today-stat {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
}
.today-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d6a4f;
    line-height: 1;
}
.today-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
    margin-top: 4px;
}
.today-stat-divider {
    width: 1px;
    height: 40px;
    background: #dee2e6;
    flex-shrink: 0;
}

/* Home page - subject tile grid */
.subject-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 480px;
    margin-top: 4px;
}
.subject-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: box-shadow 0.15s;
    cursor: pointer;
}
.subject-tile:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-decoration: none;
    color: #333;
}
.subject-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}
.subject-tile-body {
    flex: 1;
}
.subject-tile-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}
.subject-tile-meta {
    font-size: 0.77rem;
    color: #888;
    margin-top: 2px;
}
.subject-tile-mastery {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}
.subject-tile-mastery-bar {
    flex: 1;
    height: 5px;
    background: #e8e2d9;
    border-radius: 3px;
    overflow: hidden;
    max-width: 90px;
}
.subject-tile-mastery-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #81c784, #2e7d32);
    border-radius: 3px;
}
.subject-tile-mastery-pct {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2e7d32;
    white-space: nowrap;
}
/* Weak Spots tile */
.weak-spots-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    margin-bottom: 14px;
    transition: box-shadow 0.15s;
}
.weak-spots-tile:hover {
    box-shadow: 0 3px 10px rgba(231,76,60,0.2);
    text-decoration: none;
    color: #333;
}
.weak-spots-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.weak-spots-body { flex: 1; }
.weak-spots-title {
    font-weight: 700;
    font-size: 1rem;
}
.weak-spots-meta {
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}
.weak-spots-chevron { color: #ccc; }

.subject-today-badge {
    display: inline-block;
    background: #d4edda;
    color: #2d6a4f;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
}

/* Up Next hero — the "don't think, just start" card */
.up-next {
    display: block;
    margin-top: 0.75rem;
    padding: 0.8rem 1.1rem 0.9rem;
    border: 1px solid #e8e2d9;
    border-radius: 12px;
    background: #fbf9f6;
    text-decoration: none;
    color: inherit;
}
.up-next-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #3e2723;
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed #d8cfc2;
}
.up-next-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
a.up-next:hover {
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.up-next-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.up-next-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.up-next-body {
    flex: 1;
    min-width: 0;
}
.up-next-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #3e2723;
    line-height: 1.2;
}
.up-next-sub {
    font-size: 0.8rem;
    color: #8a7f73;
    margin-top: 2px;
}
.up-next-go {
    background: #4e342e;
    color: #fff;
    font-weight: 700;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.up-next-go .fa-play {
    font-size: 0.8em;
    margin-right: 6px;
}
.up-next-done {
    border-color: #d9e5da;
    background: #f7faf7;
}
