/* lobster.css -- Phase L2 of the Learner Profile.
 *
 * The Lobster panel is a slide-in side card anchored to the ClawNanny badge
 * (the logo on the menu).  It surfaces a page-aware one-paragraph "what this
 * page is for" blurb and a single-shot "ask amiga about this page" hook.
 * The panel is fixed to the right edge so it does not push page content.
 *
 * Hidden by default; #lobster-panel.lobster-open slides it in.
 */

#lobster-panel {
    position: fixed;
    top: 70px;
    right: -420px;
    width: 380px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d0d7e2;
    border-right: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    transition: right 0.25s ease-out;
    font-size: 11pt;
    color: #222;
}

#lobster-panel.lobster-open {
    right: 0;
}

#lobster-panel .lobster-header {
    font-size: 13pt;
    background: #4CAF50;
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
    border-top-left-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#lobster-panel .lobster-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16pt;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

#lobster-panel .lobster-body {
    padding: 14px 16px;
}

#lobster-panel .lobster-section {
    margin-bottom: 16px;
}

#lobster-panel .lobster-section h4 {
    margin: 0 0 6px 0;
    font-size: 12pt;
    color: #555;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.5px; */
}

#lobster-panel .lobster-blurb {
    line-height: 1.5;
    color: #333;
}

#lobster-panel .lobster-ask-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    align-items: flex-end;
}

#lobster-panel .lobster-ask-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #c5cdd9;
    border-radius: 4px;
    font-size: 11pt;
    font-family: inherit;
    /* Textarea: give the user real multi-line space without locking the
       height.  rows="3" in the markup sets the initial visible height; this
       min-height keeps it usable if the user collapses the resize handle. */
    min-height: 60px;
    resize: vertical;
    line-height: 1.4;
}

#lobster-panel .lobster-ask-btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10pt;
}

#lobster-panel .lobster-ask-btn:hover {
    filter: brightness(1.05);
}

#lobster-panel .lobster-ask-answer {
    margin-top: 10px;
    padding: 10px;
    background: #f5f7fb;
    border-radius: 4px;
    font-size: 10pt;
    line-height: 1.45;
    color: #333;
    white-space: pre-wrap;
}

#lobster-panel .lobster-muted-note {
    font-style: italic;
    color: #888;
    font-size: 10pt;
}

#lobster-panel .lobster-error {
    color: #c62828;
    font-size: 10pt;
}
