/* B3-P2 — Buyer dashboard assembly (/reader/dashboard).
   Namespaced under `.dash` so it never leaks into the shared store chrome.
   The Recommended row reuses the catalogue `.bc-card`/`.bc-grid` CSS already
   loaded in the store header — no duplicate poster styling here. */

.dash {
    max-width: 1160px;
    margin: 0 auto;
    padding: 8px 4px 56px;
    font-family: var(--font, inherit);
    color: var(--text, #333);
}

/* ---- head --------------------------------------------------------------- */
.dash-head { margin: 8px 0 26px; }
.dash-head__title {
    font-size: var(--fs-h2, 28px);
    font-weight: var(--fw-heading, 800);
    line-height: var(--lh-heading, 1.15);
    color: var(--ink, #0B1B2B);
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}
.dash-head__sub { font-size: 14px; color: var(--muted, #595959); margin: 0; }

/* ---- section scaffold --------------------------------------------------- */
.dash-section { margin: 0 0 40px; }
.dash-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}
.dash-section__title {
    font-size: var(--fs-h4, 18px);
    font-weight: var(--fw-heading, 800);
    color: var(--ink, #0B1B2B);
    margin: 0;
}
.dash-section__link { font-size: 13.5px; font-weight: 600; color: var(--accent, #0B599C); text-decoration: none; white-space: nowrap; }
.dash-section__link:hover { text-decoration: underline; }

/* ---- promo spotlight (reuses login-audience Banner art) ----------------- */
.dash-spotlight {
    position: relative;
    display: block;
    border-radius: var(--radius, 14px);
    overflow: hidden;
    background: var(--navy, #071E32);
    min-height: 220px;
    margin: 0 0 40px;
    text-decoration: none;
    color: #fff;
}
.dash-spotlight__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; opacity: .9;
}
/* legibility scrim: navy fade from the left (where the copy sits) to clear on the
   right, so the promo image reads clearly while the eyebrow/title/CTA stay legible. */
.dash-spotlight::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(7,30,50,0.86) 0%, rgba(7,30,50,0.55) 46%, rgba(7,30,50,0.12) 100%);
}
.dash-spotlight__body { z-index: 2; }
.dash-spotlight__body {
    position: relative;
    padding: 40px 36px;
    max-width: 640px;
    display: flex; flex-direction: column; justify-content: center;
    min-height: 220px;
}
.dash-spotlight__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); margin: 0 0 8px; }
.dash-spotlight__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.14; margin: 0 0 14px; color: #fff; }
.dash-spotlight__cta {
    align-self: flex-start;
    background: #fff; color: var(--navy, #071E32);
    font-weight: 700; font-size: 14px;
    padding: 9px 18px; border-radius: 8px; text-decoration: none;
}
.dash-spotlight__cta:hover { background: var(--bg-subtle, #F1F5FB); color: var(--navy, #071E32); }

/* ---- stat cards --------------------------------------------------------- */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 0 0 44px;
}
.dash-stat {
    display: block;
    background: #fff;
    border: 1px solid rgba(11, 27, 43, .10);
    border-radius: var(--radius, 12px);
    padding: 20px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dash-stat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(7, 30, 50, .10); border-color: rgba(11, 27, 43, .18); }
.dash-stat__count { font-size: 30px; font-weight: 800; line-height: 1; color: var(--ink, #0B1B2B); }
.dash-stat__count .dash-stat__badge {
    font-size: 12px; font-weight: 700; vertical-align: super;
    color: #fff; background: var(--accent, #0B599C);
    border-radius: 10px; padding: 1px 7px; margin-left: 6px;
}
.dash-stat__label { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted, #595959); }
.dash-stat__label i { color: var(--accent, #0B599C); margin-right: 6px; }

/* ---- recommended grid (thin wrapper over the reused .bc-grid) ----------- */
.dash-rec .bc-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.dash-rec__empty {
    background: var(--bg-subtle, #F1F5FB);
    border: 1px solid rgba(11, 27, 43, .08);
    border-radius: var(--radius, 12px);
    padding: 24px; color: var(--muted, #595959); font-size: 14px; text-align: center;
}

/* ---- recent activity (two column lists) --------------------------------- */
.dash-recent { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash-list {
    background: #fff;
    border: 1px solid rgba(11, 27, 43, .10);
    border-radius: var(--radius, 12px);
    overflow: hidden;
}
.dash-list__item {
    display: block;
    padding: 14px 18px;
    border-top: 1px solid rgba(11, 27, 43, .06);
    text-decoration: none;
    color: var(--ink, #0B1B2B);
    font-size: 14px;
}
.dash-list__item:first-child { border-top: 0; }
.dash-list__item:hover { background: var(--bg-subtle, #F1F5FB); }
.dash-list__item--empty { color: var(--muted, #595959); }
.dash-list__meta { display: block; font-size: 12px; color: var(--muted, #9aa4ad); margin-top: 3px; }
.dash-list__item.is-unread .dash-list__title { font-weight: 700; }
.dash-list__item .fa { color: var(--accent, #0B599C); margin-right: 7px; }

@media (max-width: 900px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-recent { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .dash-stats { grid-template-columns: 1fr; }
}
