/*
 * Prism theme aligned with Bagua HUD mint/glass aesthetic.
 * Replaces prism-tomorrow.min.css for skill / mcp detail markdown rendering.
 * Color tokens mirror those in single-ai_mcp.php's inline JSON highlighter:
 *   keys     #008f6d (darker teal)
 *   strings  #00b386 (mint)
 *   values   #00d9a5 (bright mint)
 *   punct    #999    (subtle gray)
 */

/* Apply to all <pre> in markdown content + prism-classed elements,
 * so fence blocks without a language hint also get the glass look. */
.hud-rich-content pre,
.hud-rich-content code,
code[class*="language-"],
pre[class*="language-"] {
    color: #444;
    background: none;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Menlo', monospace;
    font-size: 14px;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.7;
    tab-size: 4;
    hyphens: none;
}

/* Block code: glass container matching .mcp-code-container */
.hud-rich-content pre,
pre[class*="language-"] {
    padding: 1.5em;
    margin: 1em 0;
    overflow: auto;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

/* Inline code: subtle pill */
.hud-rich-content :not(pre) > code,
:not(pre) > code[class*="language-"] {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 217, 165, 0.08);
    color: #008f6d;
    font-size: 0.92em;
    white-space: normal;
}

/* Code inside a glass <pre> stays styled by the pre rule, no extra bg */
.hud-rich-content pre > code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
    white-space: pre;
}

/* Token colors */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #999;
    font-style: italic;
}

.token.punctuation {
    color: #999;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #00d9a5;
    font-weight: bold;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #00b386;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #008f6d;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #008f6d;
    font-weight: 500;
}

.token.function,
.token.class-name {
    color: #00a37a;
}

.token.regex,
.token.important,
.token.variable {
    color: #d97706;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* Custom: line number plugin (if added later) */
.line-numbers .line-numbers-rows {
    border-right-color: rgba(0, 0, 0, 0.08);
}
.line-numbers-rows > span:before {
    color: #aaa;
}
