/* ==========================================================
   EMC2 Activity Metrics Bar
   Universal template for resource post metadata boxes.
   Change styles here → updates ALL posts automatically.
   ========================================================== */

/* ---- Metrics Bar Container ---- */
.emc2-metrics-bar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, .08);
    margin: 0 auto 32px;
    padding: 0;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

/* ---- Individual Metric ---- */
.emc2-metric {
    flex: 1;
    padding: 22px 16px;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, .06);
    transition: .25s cubic-bezier(.4, 0, .2, 1);
}

.emc2-metric:last-child {
    border-right: none;
}

.emc2-metric:hover {
    background: #eef3ff;
}

/* ---- Metric Icon ---- */
.emc2-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.emc2-metric-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Icon color variants */
.emc2-metric-icon.emc2-prep {
    background: #e0f2fe;
    color: #0284c7;
}

.emc2-metric-icon.emc2-length {
    background: #f0fdf4;
    color: #16a34a;
}

.emc2-metric-icon.emc2-players {
    background: #fef3c7;
    color: #d97706;
}

.emc2-metric-icon.emc2-compat {
    background: #fce7f3;
    color: #db2777;
}

.emc2-metric-icon.emc2-tech {
    background: #ede9fe;
    color: #7c3aed;
}

.emc2-metric-icon.emc2-supplies {
    background: #fee2e2;
    color: #dc2626;
}

/* ---- Metric Text ---- */
.emc2-metric-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #525b75;
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
}

.emc2-metric-value {
    font-size: .85rem;
    font-weight: 700;
    color: #1a1d2e;
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .emc2-metrics-bar {
        margin: 0 16px 24px;
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .emc2-metric {
        flex: 1 1 33.33%;
        padding: 16px 12px;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
    }

    .emc2-metric:nth-child(3) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .emc2-metrics-bar {
        flex-direction: column;
    }

    .emc2-metric {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 14px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
    }

    .emc2-metric-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .emc2-metric-text {
        display: flex;
        flex-direction: column;
    }
}
