/*
 * File Path: assets/css/admin/dashboard/dashboard-hub.css
 * Dashboard -- Hub column: What's New strip, onboarding, catalog stats,
 * quick-action tiles, recently edited rail, tier tile.
 * Component of mbs-admin-dashboard.css (R-014).
 */

/* ── What's New strip ─────────────────────────────────────────────────────── */
.mbs-whats-new {
    background: #f0f6fc;
    border-left: 4px solid var(--wp-admin-theme-color, var(--mbs-status-info));
    padding: 10px 14px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #1d2327;
}

.mbs-whats-new strong {
    margin-right: 6px;
}

/* ── Onboarding ───────────────────────────────────────────────────────────── */
.mbs-onboarding-card {
    background: #f6f7f7;
    border: 2px dashed #c3c4c7;
    text-align: center;
    padding: 32px 20px;
}

.mbs-onboarding-card h3 {
    border: none;
    font-size: 18px;
    margin-bottom: 8px;
}

.mbs-onboarding-card p {
    color: #646970;
    margin-bottom: 16px;
}

/* ── Catalog stats ────────────────────────────────────────────────────────── */
.mbs-catalog-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.mbs-stat-item {
    text-align: center;
    min-width: 70px;
}

.mbs-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--wp-admin-theme-color, var(--mbs-status-info));
}

.mbs-stat-label {
    display: block;
    font-size: 11px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ── Quick-action tiles ───────────────────────────────────────────────────── */
.mbs-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .mbs-quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mbs-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-decoration: none;
    color: #1d2327;
    font-size: 12px;
    text-align: center;
    transition: border-color 0.1s, background 0.1s;
    gap: 6px;
}

.mbs-quick-action:hover {
    background: #f0f6fc;
    border-color: var(--wp-admin-theme-color, var(--mbs-status-info));
    color: var(--wp-admin-theme-color, var(--mbs-status-info));
}

.mbs-quick-action .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* ── Recently edited rail ─────────────────────────────────────────────────── */
.mbs-recent-rail {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.mbs-recent-rail li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
    gap: 8px;
}

.mbs-recent-rail li:last-child {
    border-bottom: none;
}

.mbs-recent-rail .mbs-rail-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.mbs-recent-rail .mbs-rail-date {
    color: #646970;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Tier tile ────────────────────────────────────────────────────────────── */
.mbs-tier-tile {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
}

.mbs-tier-tile--free     { background: #f6f7f7; border: 1px solid #dcdcde; }
.mbs-tier-tile--pro      { background: #f0f6fc; border: 1px solid #72aee6; }
.mbs-tier-tile--pub{ background: #edfaef; border: 1px solid #68de7c; }
.mbs-tier-tile--none     { background: #fcf0f1; border: 1px solid #e65054; }

