/*
 * Global "Try Insights" promo banner (combineapp/views/widgets/insightsBanner.php).
 *
 * Deliberately pinned to the BOTTOM of the viewport rather than the top: the app's top
 * navbar/sidebar (see nav.php / #page-wrapper) rely on a fragile, hand-tuned set of fixed
 * offsets shared across ~190 legacy view files. Nothing in the app currently docks to the
 * bottom edge (toastr uses "toast-top-right", modals own their own z-index stack), so this
 * is the one placement that can't collide with existing chrome on any page or breakpoint.
 */

.insights-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040; /* above page content, below Bootstrap modals (1050+) */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
    background: linear-gradient(90deg, #0b1f3a 0%, #123a63 55%, #0f6d8c 100%);
    color: #fefeff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

.insights-banner--visible {
    transform: translateY(0);
    opacity: 1;
}

.insights-banner__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 48px 14px 20px;
}

.insights-banner__badge {
    flex: 0 0 auto;
    background-color: #ffb400;
    color: #2a2829;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 10px;
}

.insights-banner__copy {
    flex: 1 1 auto;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.insights-banner__copy strong {
    font-weight: 700;
}

.insights-banner__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    color: #123a63;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.15s ease-in, transform 0.15s ease-in;
}

.insights-banner__cta:hover,
.insights-banner__cta:focus {
    background-color: #ffb400;
    color: #2a2829;
    text-decoration: none;
    transform: translateY(-1px);
}

.insights-banner__close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #cadef0;
    font-size: 16px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
}

.insights-banner__close:hover,
.insights-banner__close:focus {
    color: #ffffff;
}

@media (max-width: 767px) {
    .insights-banner__inner {
        flex-wrap: wrap;
        padding: 12px 40px 12px 16px;
    }

    .insights-banner__copy {
        flex-basis: 100%;
        order: 1;
    }

    .insights-banner__badge {
        order: 0;
    }

    .insights-banner__cta {
        order: 2;
        margin-top: 2px;
    }
}
