/*
   Header item and banner that offer the NeuraCore Chat browser extension.

   Both are Core Violet / Signal Cyan - the extension's own palette (see
   NeuraCore.Extension/README.md), not the portal's WhatsApp green. What is being advertised is the
   extension, and a green card would read as part of the chat rather than as the thing that opens it.

   Nothing here is visible until extension-promo.js has decided which state to show: the markup ships
   with .d-none on both, so a browser that cannot install it, or one that already has it, never
   flashes an install prompt.
*/

/* ---- header item ---------------------------------------------------------------------------- */

/* The dot sits where the bell's unread count sits, so the two read as one row of status. It takes
   the theme's accent from .bg-primary in the markup rather than the extension's cyan: on the dark
   header a second, unrelated colour next to the blue unread badge reads as a fault rather than as a
   prompt. No ring and no pulse - it is a marker on a button, not an alert.

   It stays while the extension is missing, where the banner does not: unlike the banner it is not an
   interruption, and a button with no marker looks like it does nothing. */
.neura-ext-dot {
    position: absolute;
    top: 14px;
    right: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* Wider than the bell's dropdown: this one is a paragraph and a button, not a list of rows. */
.neura-ext-menu {
    width: 320px;
    padding: 0;
}

.neura-ext-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 8px;
}

    .neura-ext-menu-head svg {
        flex: 0 0 auto;
    }

    .neura-ext-menu-head h6 {
        margin: 0;
        font-size: 15px;
    }

.neura-ext-menu-body {
    padding: 0 16px 16px;
    font-size: 13px;
    line-height: 1.5;
}

    .neura-ext-menu-body p {
        margin-bottom: 12px;
    }

.neura-ext-menu-foot {
    padding: 10px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 12px;
}

/* ---- banner -------------------------------------------------------------------------------- */

.neura-ext-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid rgba(90, 79, 229, 0.25);
    border-left: 4px solid #5A4FE5;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(90, 79, 229, 0.08), rgba(31, 183, 168, 0.06));
}

    .neura-ext-banner .neura-ext-banner-text {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 13px;
        line-height: 1.45;
    }

    .neura-ext-banner strong {
        display: block;
        font-size: 14px;
    }

    /* The two controls stay side by side; the text above wraps instead. */
    .neura-ext-banner .neura-ext-banner-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

@media (max-width: 575.98px) {
    .neura-ext-banner {
        flex-wrap: wrap;
    }
}

/* ---- states -------------------------------------------------------------------------------- */

/* data-state is written by extension-promo.js: "checking" until the probe answers, then "installed"
   or "missing". Every block is hidden first and exactly one is switched back on, so a state nobody
   anticipated shows nothing at all - the earlier version listed the states to hide per block and
   left "missing" showing the installed copy as well as the install button. */
.neura-ext-when-checking,
.neura-ext-when-missing,
.neura-ext-when-installed {
    display: none;
}

.neura-ext[data-state="checking"] .neura-ext-when-checking,
.neura-ext[data-state="missing"] .neura-ext-when-missing,
.neura-ext[data-state="installed"] .neura-ext-when-installed {
    display: block;
}

/* Nothing to prompt once it is there. */
.neura-ext[data-state="installed"] .neura-ext-dot {
    display: none;
}
