/* Blog Manager Pro — cards.css */

/* ── Stats Row ── */
.bmp-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    padding: 20px 28px;
}
.bmp-stats-compact { padding-top: 0; }

.bmp-stat-card {
    background: var(--c-surf);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    padding: 18px 18px 16px;
    position: relative;
    overflow: hidden;
    transition: transform .15s;
}
.bmp-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px; border-radius: 2px 2px 0 0;
}
.bmp-stat-card:hover { transform: translateY(-1px); }
.bmp-accent-blue::before   { background: var(--c-blue); }
.bmp-accent-violet::before { background: var(--c-violet); }
.bmp-accent-green::before  { background: var(--c-green); }
.bmp-accent-orange::before { background: var(--c-orange); }
.bmp-accent-red::before    { background: var(--c-red); }
.bmp-accent-muted::before  { background: var(--c-muted); }

.bmp-stat-icon  { font-size: 22px; margin-bottom: 8px; }
.bmp-stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.bmp-stat-label { font-size: 12px; font-weight: 600; margin-top: 6px; }
.bmp-stat-sub   { font-size: 11px; color: var(--c-subtle); margin-top: 3px; }

/* ── Workflows Section ── */
.bmp-workflows-section { padding: 0 28px 40px; }
.bmp-section-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.bmp-section-title { font-size: 17px; font-weight: 700; }
.bmp-count-chip {
    background: var(--c-surf2);
    border: 1px solid var(--c-border2);
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
}

/* ── Workflow Cards Grid ── */
.bmp-wf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}
.bmp-wf-card {
    background: var(--c-surf);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bmp-wf-card:hover {
    transform: translateY(-2px);
    border-color: var(--c-border2);
    box-shadow: var(--shadow);
}
.bmp-wf-top-bar   { height: 4px; background: var(--wf-color, var(--c-primary)); }
.bmp-wf-body      { padding: 20px 22px 18px; }
.bmp-wf-header-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.bmp-wf-emoji { font-size: 30px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.bmp-wf-info  { flex: 1; min-width: 0; }
.bmp-wf-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.bmp-wf-desc  { font-size: 12px; color: var(--c-muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmp-wf-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 6px var(--c-green);
    flex-shrink: 0;
    margin-top: 6px;
}

.bmp-wf-kpi-row {
    display: flex;
    gap: 0;
    background: var(--c-border);
    border-radius: var(--r-sm);
    overflow: hidden;
    margin-bottom: 16px;
}
.bmp-kpi {
    flex: 1;
    background: var(--c-surf2);
    padding: 10px 6px;
    text-align: center;
    border-right: 1px solid var(--c-border);
}
.bmp-kpi:last-child { border-right: none; }
.bmp-kpi-val     { display: block; font-size: 17px; font-weight: 800; color: var(--c-text); }
.bmp-kpi-green   { color: var(--c-green); }
.bmp-kpi-orange  { color: var(--c-orange); }
.bmp-kpi-lbl     { display: block; font-size: 9px; color: var(--c-subtle); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

.bmp-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--c-subtle);
    margin-bottom: 5px;
}
.bmp-progress-track {
    height: 5px;
    background: var(--c-border2);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 16px;
}
.bmp-progress-fill {
    height: 100%;
    background: var(--wf-color, var(--c-primary));
    border-radius: 99px;
    transition: width .6s ease;
}

.bmp-wf-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bmp-wf-open-btn { flex: 1; justify-content: center; }
.bmp-wf-date { font-size: 11px; color: var(--c-subtle); }

/* ── Panel ── */
.bmp-panel {
    background: var(--c-surf);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 18px;
}
.bmp-panel:last-child { margin-bottom: 0; }
.bmp-panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--c-border);
}
.bmp-panel-hd h3  { font-size: 14px; font-weight: 700; }
.bmp-panel-link   { font-size: 12px; color: var(--c-blue); font-weight: 500; }
.bmp-panel-bd     { padding: 8px 20px 16px; }
.bmp-panel-list   { padding: 0 20px; }
.bmp-panel-empty  { font-size: 13px; color: var(--c-muted); padding: 20px 0; text-align: center; }
.bmp-panel-empty a { color: var(--c-blue); }

/* Status breakdown */
.bmp-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
    gap: 12px;
}
.bmp-breakdown-row:last-child { border-bottom: none; }
.bmp-breakdown-left { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.bmp-bd-icon { font-size: 16px; }
.bmp-bd-name { font-size: 13px; font-weight: 500; }
.bmp-breakdown-bar { display: flex; align-items: center; gap: 8px; flex: 1; }
.bmp-bar-track { flex: 1; height: 6px; background: var(--c-border2); border-radius: 99px; overflow: hidden; }
.bmp-bar-fill  { height: 100%; border-radius: 99px; transition: width .5s ease; }
.bmp-bar-count { font-size: 13px; font-weight: 700; color: var(--c-text); min-width: 20px; text-align: right; }
.bmp-bar-pct   { font-size: 11px; color: var(--c-subtle); min-width: 32px; }

/* Recent list */
.bmp-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--c-border);
}
.bmp-list-row:last-child { border-bottom: none; }
.bmp-list-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.bmp-list-content { flex: 1; min-width: 0; }
.bmp-list-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bmp-list-meta  { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.bmp-meta-tag   { font-size: 11px; color: var(--c-muted); }
.bmp-time-ago   { font-size: 10px; color: var(--c-subtle); }

/* Members grid */
.bmp-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 8px 0 0;
}
.bmp-member-card {
    background: var(--c-surf2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bmp-mc-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-violet));
    color: #fff; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bmp-mc-name { display: block; font-size: 13px; font-weight: 600; }
.bmp-mc-role { display: block; font-size: 11px; color: var(--c-muted); margin-top: 2px; }

/* Publishers list */
.bmp-pub-list { display: flex; flex-direction: column; gap: 0; }
.bmp-pub-row  { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.bmp-pub-row:last-child { border-bottom: none; }
.bmp-pub-avatar {
    width: 32px; height: 32px; border-radius: var(--r-sm);
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bmp-pub-name { display: block; font-size: 13px; font-weight: 600; }
.bmp-pub-site { display: block; font-size: 11px; color: var(--c-blue); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════════
   SHORT-NAME ALIASES — templates use abbreviated class names
   that differ from the original full names in the CSS above.
   These ensure every template class renders correctly.
   ══════════════════════════════════════════════════════════════════ */

/* Stat card accent colours (bmp-ac-* = bmp-accent-*) */
.bmp-ac-blue::before   { background: var(--c-blue);   }
.bmp-ac-violet::before { background: var(--c-violet); }
.bmp-ac-green::before  { background: var(--c-green);  }
.bmp-ac-orange::before { background: var(--c-orange); }
.bmp-ac-red::before    { background: var(--c-red);    }
.bmp-ac-muted::before  { background: var(--c-muted);  }
.bmp-ac-teal::before   { background: var(--c-teal, #39c5cf); }

/* Stat card inner elements (ico/val/lbl = icon/value/label) */
.bmp-stat-ico   { font-size: 22px; margin-bottom: 8px; }
.bmp-stat-val   { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.bmp-stat-lbl   { font-size: 12px; font-weight: 600; margin-top: 6px; }

/* Workflow card short names */
.bmp-wf-topbar  { height: 4px; background: var(--wc, var(--c-primary)); }
.bmp-wf-body    { padding: 20px 22px 18px; }
.bmp-wf-hdr     { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.bmp-wf-emo     { font-size: 30px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.bmp-wf-ttl     { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.bmp-wf-dsc     { font-size: 12px; color: var(--c-muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmp-live-dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 6px var(--c-green); flex-shrink: 0; margin-top: 6px; }

/* KPI row (bmp-kpi-row = bmp-wf-kpi-row) */
.bmp-kpi-row {
    display: flex; gap: 0;
    background: var(--c-border);
    border-radius: var(--r-sm);
    overflow: hidden;
    margin-bottom: 16px;
}
.bmp-kpi-v   { display: block; font-size: 17px; font-weight: 800; color: var(--c-text); }
.bmp-kpi-l   { display: block; font-size: 9px; color: var(--c-subtle); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* Progress bar short names */
.bmp-prog-lbl {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--c-subtle); margin-bottom: 5px;
}
.bmp-prog-track {
    height: 5px; background: var(--c-border2);
    border-radius: 99px; overflow: hidden; margin-bottom: 16px;
}
.bmp-prog-fill {
    height: 100%; background: var(--wc, var(--c-primary));
    border-radius: 99px; transition: width .6s ease;
}

/* Workflow card footer */
.bmp-wf-foot  { display: flex; align-items: center; gap: 10px; }
.bmp-wf-open  { flex: 1; justify-content: center; }
.bmp-wf-age   { font-size: 11px; color: var(--c-subtle); }

/* Workflow hero (workflow dashboard banner) */
.bmp-hero-left  { display: flex; align-items: center; gap: 20px; }
.bmp-hero-emo   { font-size: 48px; line-height: 1; flex-shrink: 0; }
.bmp-hero-ttl   { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 5px; }
.bmp-hero-dsc   { font-size: 13px; color: var(--c-muted); margin-bottom: 10px; }
.bmp-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bmp-chip {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    color: var(--c-muted); font-size: 11px; font-weight: 500;
    padding: 3px 10px; border-radius: 99px;
}
.bmp-chip-green { color: var(--c-green); background: rgba(63,185,80,.1); border-color: rgba(63,185,80,.2); }
.bmp-hero-ring  { position: relative; flex-shrink: 0; }
.bmp-ring-lbl {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: var(--c-text);
}

/* Overview panel short names */
.bmp-bd-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--c-border); gap: 12px;
}
.bmp-bd-row:last-child { border-bottom: none; }
.bmp-bd-left { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.bmp-bd-nm   { font-size: 13px; font-weight: 500; }
.bmp-bd-bar  { display: flex; align-items: center; gap: 8px; flex: 1; }
.bmp-bar-t   { flex: 1; height: 6px; background: var(--c-border2); border-radius: 99px; overflow: hidden; }
.bmp-bar-f   { height: 100%; border-radius: 99px; transition: width .5s ease; }
.bmp-bar-c   { font-size: 13px; font-weight: 700; color: var(--c-text); min-width: 20px; text-align: right; }
.bmp-bar-p   { font-size: 11px; color: var(--c-subtle); min-width: 32px; }

/* Recent list short names */
.bmp-list-c    { flex: 1; min-width: 0; }
.bmp-list-ttl  { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bmp-time-a    { font-size: 10px; color: var(--c-subtle); }
.bmp-meta-t    { font-size: 11px; color: var(--c-muted); }
.bmp-s-pill    { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; }
.bmp-s-draft     { background: rgba(139,148,158,.12); color: #8b949e; }
.bmp-s-pending   { background: rgba(240,136,62,.12);  color: #f0883e; }
.bmp-s-published { background: rgba(63,185,80,.12);   color: #3fb950; }
.bmp-s-rejected  { background: rgba(248,81,73,.12);   color: #f85149; }

/* Team/member card short names */
.bmp-mc      { display: flex; align-items: center; gap: 10px; background: var(--c-surf2); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 12px; }
.bmp-mc-av   { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-violet)); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bmp-mc-name { display: block; font-size: 13px; font-weight: 600; }
.bmp-mc-role { display: block; font-size: 11px; color: var(--c-muted); margin-top: 2px; }

/* Table short names */
.bmp-topic-w   { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-weight: 500; }
.bmp-ep-ico    { font-size: 36px; opacity: .5; }
.bmp-av-sm     { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-violet)); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* User avatar in navbar */
.bmp-user-av   { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-violet)); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
