/**
 * NBW AI Story Insights — front-end styles.
 * Minimal by design. Themes and Elementor can override any rule.
 *
 * NOTE: The Elementor container-hiding rules (.nbw-si-facts-section /
 * .nbw-si-score-section) are NOT in this file. They are injected inline via
 * wp_head in the shortcode class to guarantee they load before Elementor
 * renders the page, bypassing Elementor's CSS cache entirely.
 */

.nbw-si-facts-empty,
.nbw-si-score-empty {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
}

/* ── Quick Facts ─────────────────────────────────────────────────── */

.nbw-si-facts {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.nbw-si-facts__label {
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0073aa;
    margin: 0 0 12px;
}

.nbw-si-facts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.nbw-si-facts--list .nbw-si-facts__grid {
    grid-template-columns: 1fr;
}

.nbw-si-facts__item {
    display: flex;
    flex-direction: column;
}

.nbw-si-facts__item-label {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
    margin-bottom: 2px;
}

.nbw-si-facts__item-value {
    color: #222;
}

.nbw-si-numbers {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
}

.nbw-si-numbers--badges .nbw-si-numbers__item {
    background: #0073aa;
    color: #fff;
    font-size: 0.82em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.nbw-si-numbers--list,
.nbw-si-numbers--inline {
    display: block;
    padding-left: 20px;
}

.nbw-si-numbers--list .nbw-si-numbers__item {
    display: list-item;
    list-style: decimal;
}

/* ── Story Potential ─────────────────────────────────────────────── */

.nbw-si-score {
    background: #f8f9fa;
    border-left: 4px solid #999;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.95em;
    line-height: 1.5;
}

.nbw-si-score--high   { border-left-color: #2a9d4a; }
.nbw-si-score--medium { border-left-color: #d98c00; }
.nbw-si-score--low    { border-left-color: #c0392b; }

.nbw-si-score__label {
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin: 0 0 12px;
}

.nbw-si-score__badge {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.nbw-si-score__number {
    font-size: 2em;
    font-weight: 800;
    line-height: 1;
    color: #222;
}

.nbw-si-score--high .nbw-si-score__number   { color: #2a9d4a; }
.nbw-si-score--medium .nbw-si-score__number { color: #d98c00; }
.nbw-si-score--low .nbw-si-score__number    { color: #c0392b; }

.nbw-si-score__max {
    font-size: 0.9em;
    color: #999;
}

.nbw-si-score__verdict {
    margin-left: 8px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eee;
    color: #444;
}

.nbw-si-score--high .nbw-si-score__verdict {
    background: #e6f4ea;
    color: #2a9d4a;
}

.nbw-si-score--medium .nbw-si-score__verdict {
    background: #fdf1dc;
    color: #d98c00;
}

.nbw-si-score--low .nbw-si-score__verdict {
    background: #fbe9e7;
    color: #c0392b;
}

.nbw-si-score__bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.nbw-si-score__bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 34px;
    align-items: center;
    gap: 10px;
}

.nbw-si-score__bar-label {
    font-size: 0.82em;
    color: #555;
}

.nbw-si-score__bar-track {
    background: #e5e5e5;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.nbw-si-score__bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #0073aa;
}

.nbw-si-score__bar-value {
    font-size: 0.82em;
    color: #777;
    text-align: right;
}

.nbw-si-score__summary {
    margin: 12px 0 0;
    color: #333;
}

/* ── Combined Story Insights ─────────────────────────────────────── */

.nbw-si-insights__label {
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin: 0 0 10px;
}

.nbw-si-insights .nbw-si-facts {
    margin-top: 0;
}

@media (max-width: 480px) {
    .nbw-si-facts__grid {
        grid-template-columns: 1fr;
    }
    .nbw-si-score__bar-row {
        grid-template-columns: 110px 1fr 30px;
    }
}
