/* =============================================================
   AECOverse — AECO.digital Badge CSS
   Dark theme matching AECOverse (#0a0a0a bg, #c8ff00 accent)
   ============================================================= */

/* ── Base badge ─────────────────────────────────────────────── */
.aecov-badge {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 13px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
}

/* ── Verified Stack badge ───────────────────────────────────── */
.aecov-badge--verified {
    background: #0f1a0a;
    border: 1.5px solid #c8ff00;
}

.aecov-badge--profile {
    background: #111;
    border: 1px solid #2a2a2a;
}

/* ── Header row ─────────────────────────────────────────────── */
.aecov-badge__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px;
}

.aecov-badge__check {
    font-size: 22px;
    flex-shrink: 0;
}

.aecov-badge__header-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.aecov-badge__source {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8ff00;
}

.aecov-badge__title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.aecov-badge__count {
    font-size: 11px;
    color: #888;
}

.aecov-badge__link {
    font-size: 11px;
    font-weight: 600;
    color: #c8ff00 !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid rgba(200,255,0,0.3);
    border-radius: 5px;
    transition: background 0.2s;
}
.aecov-badge__link:hover {
    background: rgba(200,255,0,0.1) !important;
}

/* ── Divider ─────────────────────────────────────────────────── */
.aecov-badge__divider {
    height: 1px;
    background: #1e2a0e;
    margin: 0 14px;
}

/* ── Product rows ───────────────────────────────────────────── */
.aecov-badge__products {
    padding: 8px 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aecov-badge__product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aecov-badge__product-name {
    font-size: 12px;
    color: #ccc;
    flex: 1;
}

.aecov-badge__score {
    font-size: 13px;
    font-weight: 800;
    border-radius: 4px;
    padding: 2px 7px;
    min-width: 32px;
    text-align: center;
}
.aecov-badge__score--high { background: rgba(34,197,94,0.15);  color: #22c55e; }
.aecov-badge__score--med  { background: rgba(245,158,11,0.15); color: #f59e0b; }
.aecov-badge__score--low  { background: rgba(239,68,68,0.15);  color: #ef4444; }

.aecov-badge__more {
    font-size: 11px;
    color: #555;
    padding: 0 0 4px;
    display: block;
    text-align: right;
}

/* ── Footer CTA ─────────────────────────────────────────────── */
.aecov-badge__footer {
    padding: 8px 14px 12px;
}
.aecov-badge__footer a {
    font-size: 11px;
    color: #666 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.aecov-badge__footer a:hover {
    color: #c8ff00 !important;
}

/* ── Profile-only (no audits yet) ───────────────────────────── */
.aecov-badge--profile .aecov-badge__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}
.aecov-badge--profile .aecov-badge__icon   { font-size: 18px; }
.aecov-badge--profile .aecov-badge__text   { flex: 1; display: flex; flex-direction: column; }
.aecov-badge--profile .aecov-badge__source { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #888; }
.aecov-badge--profile .aecov-badge__title  { font-size: 13px; font-weight: 600; color: #ccc; }
.aecov-badge--profile .aecov-badge__link   { border-color: #333; color: #888 !important; }

/* ── Context variants ───────────────────────────────────────── */

/* Job listing sidebar — compact */
.aecov-badge--job-listing {
    margin-top: 16px;
}

/* Inline — e.g. company page header */
.aecov-badge--inline {
    max-width: 340px;
}

/* Admin preview */
.aecov-badge--admin-preview {
    max-width: 360px;
    background: #1a1a1a !important;
}

/* Wrapper when auto-injected via WP Job Manager hook */
.aecov-badge-wrapper {
    margin: 20px 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .aecov-badge__header { flex-wrap: wrap; }
    .aecov-badge__link   { align-self: flex-start; }
}

/* Admin preview wrapper */
#aecov-preview {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 10px;
}

/* Per-product audit report link */
.aecov-badge__audit-link {
    font-size: 11px;
    font-weight: 600;
    color: #c8ff00 !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 2px 8px;
    border: 1px solid rgba(200,255,0,0.25);
    border-radius: 4px;
    transition: background 0.2s;
    margin-left: auto;
}
.aecov-badge__audit-link:hover {
    background: rgba(200,255,0,0.1) !important;
}
