/* =============================================================================
 *  dashboard-styles.css  —  Dashboard-specific cards (mobile-first)
 *  Relies on chapter-styles.css for shared .hub-* / .main-content rules.
 * ========================================================================== */

/* Streak hero */
.streak-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    margin: 0.5rem 0 1.25rem;
    flex-wrap: wrap;
}
.streak-flame { font-size: 2.5rem; color: var(--warning); }
.streak-info { flex: 1; min-width: 150px; }
.streak-number { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.streak-number small { font-size: 0.9rem; font-weight: 500; opacity: 0.85; }
.streak-sub { font-size: 0.85rem; margin-top: 0.35rem; opacity: 0.95; }
.streak-best { font-size: 0.75rem; margin-top: 0.2rem; opacity: 0.75; }

.countdown {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
}
.countdown-num { display: block; font-size: 1.6rem; font-weight: 800; }
.countdown-label { font-size: 0.7rem; opacity: 0.9; }

/* Action cards (resume / recommendation) */
.dash-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.dash-card-head {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dash-card-head i { color: var(--primary); }
.resume-title { font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.resume-card .hub-btn, .reco-card .hub-btn { margin-top: 0.75rem; }

/* Recent activity rows */
.recent-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--light-gray);
    text-decoration: none;
    color: inherit;
}
.recent-row:last-child { border-bottom: none; }
.recent-main { flex: 1; display: flex; flex-direction: column; }
.recent-title { font-weight: 600; color: var(--dark); font-size: 0.92rem; }
.recent-sub { color: var(--gray); font-size: 0.75rem; text-transform: capitalize; }
.recent-score {
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    background: var(--gray);
}
.recent-score[data-band="strong"]     { background: var(--success); }
.recent-score[data-band="developing"] { background: var(--warning); color: var(--dark); }
.recent-score[data-band="weak"]        { background: var(--danger); }

@media (min-width: 600px) {
    .streak-number { font-size: 2.2rem; }
}
