/* LF INSIGHTS - PROJECT INSIGHTS MODULE (LFX INSIGHTS API) */

.lf-insights {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem;
    border: 0.0625rem solid #e5e7eb;
    border-radius: 1rem;
}

.lf-insights__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.lf-insights__header-text {
    display: flex;
    flex-direction: column;
    max-width: 48rem;
    gap: 0.5rem;
}

.lf-insights__project {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lf-insights__project-logo {
    display: block;
    width: auto;
    max-width: 3rem;
    object-fit: contain;
    border: 0.0625rem solid #e5e7eb;
    border-radius: 5px;
}

.lf-insights__project-name {
    margin: 0;
    white-space: nowrap;
}

.lf-insights__heading {
    margin: 0 !important;
    font-size: 3.25rem;
    font-weight: 500;
    line-height: 3.5rem;
    letter-spacing: -0.02em;
}

.lf-insights__grid {
    display: grid;
    grid-template-columns: minmax(13.75rem, 1fr) 2.6fr;
    gap: 1rem;
}

.lf-insights__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* HEALTH SCORE PANEL */

.lf-insights__health {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lf-insights__health-icon {
    display: grid;
    place-items: center;
    width: 3.375rem;
    height: 3.375rem;
    border-radius: 50%;
}

.lf-insights__health-icon svg {
    width: 2rem;
    height: 2rem;
}

.lf-insights__health-score {
    margin: 0.25rem 0 0 !important;
    font-size: 1.25rem;
    font-weight: 700;
}

.lf-insights__desc {
    max-width: 22rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.lf-insights__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 8px;
    border: 0.0625rem solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    white-space: nowrap;
    justify-content: center;
}

.lf-insights__cta:hover {
    box-shadow: 0px 0px 30px 0px #0000001a;
    border-color: #ffcfb9;
}

.lf-insights__cta-logo {
    display: inline-flex;
    align-items: center;
}

.lf-insights__cta-logo svg {
    width: 7.125rem;
    height: 0.9375rem;
}

.lf-insights__cta-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
}

.lf-insights__cta-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* STATS GRID */

.lf-insights__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 3rem;
    padding-left: 3rem;
    border-left: 0.0625rem solid #e5e7eb;
}

.lf-insights__stat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.lf-insights__stat-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.lf-insights__stat-icon svg {
    width: 2rem;
    height: 2rem;
}

.lf-insights__stat-value {
    margin: 0.15rem 0 0 !important;
    padding-bottom: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.lf-insights__stat-delta {
    margin: 0.15rem 0 0 !important;
    font-size: 0.8rem;
}

.lf-insights__stat-delta-value {
    font-weight: 600;
    color: #1fa147;
}

/* ADMIN-ONLY ERROR STATE (MISSING/INVALID SLUG, API/NETWORK FAILURE) */

.lf-insights--error {
    padding: 1rem;
    border: 0.0625rem dashed;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

/* RESPONSIVE - TABLET (MAX 62.5EM) */

@media only screen and (max-width: 62.5em) {
    .lf-insights {
        gap: 2rem;
        padding: 2rem;
    }

    .lf-insights__grid {
        grid-template-columns: 1fr;
    }

    .lf-insights__stats {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 0;
        padding-top: 2rem;
        border-left: none;
        border-top: 0.0625rem solid #e5e7eb;
    }
}

/* RESPONSIVE - MOBILE (MAX 43.125EM) */

@media only screen and (max-width: 43.125em) {
    .lf-insights {
        padding: 1.5rem;
    }

    .lf-insights__header {
        flex-direction: column;
    }

    .lf-insights__project-name {
        white-space: normal;
    }

    .lf-insights__stats {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}