/*
 * Pre-login "Go to Insights" modal (combineapp/views/widgets/insightsPopup.php).
 * Login page only. z-index sits above the Insights banner (1040) and Bootstrap modals (1050+).
 */

.insights-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(13, 15, 18, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.insights-popup--visible {
    opacity: 1;
}

.insights-popup__card {
    position: relative;
    box-sizing: border-box;
    width: 560px;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 40px 44px 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.insights-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.insights-popup__close:hover {
    background: #f1f2f4;
    color: #1a1d22;
}

.insights-popup__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fdf1de;
    color: #8f5a14; /* darker than the design's #c9842f to hold 4.5:1 on the pale fill */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.insights-popup__title {
    margin: 0 0 14px;
    color: #1a1d22;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.insights-popup__body {
    margin: 0 0 28px;
    color: #565c66;
    font-size: 15px;
    line-height: 1.6;
}

.insights-popup__actions {
    display: flex;
    gap: 12px;
}

.insights-popup__stay,
.insights-popup__go {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    height: 48px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

.insights-popup__stay {
    border: 1px solid #d8dbe0;
    background: #ffffff;
    color: #353a42;
    font-weight: 600;
}

.insights-popup__stay:hover {
    background: #f6f7f8;
}

.insights-popup__go,
.insights-popup__go:hover,
.insights-popup__go:focus {
    border: none;
    background: #2f6fed;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.insights-popup__go:hover {
    background: #1d57cf;
}

@media (max-width: 480px) {
    .insights-popup__card {
        padding: 32px 24px 24px;
    }

    .insights-popup__actions {
        flex-direction: column-reverse;
    }
}
