/* Shared Prism.js syntax highlighting styles */

/* Prism.js custom theme integration */
.code-block pre[class*='language-'] {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-shadow: none;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-block code[class*='language-'] {
    background: transparent;
    color: #d1d5db;
    text-shadow: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

/* YAML syntax highlighting (default) */
.token.key,
.token.atrule,
.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #00d4ff;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.inserted {
    color: #00ff88;
}

.token.punctuation {
    color: #9ca3af;
}

.token.comment {
    color: #6b7280;
    font-style: italic;
}

.token.keyword,
.token.important,
.token.selector {
    color: #00ff88;
}

.token.function,
.token.builtin {
    color: #00d4ff;
}

.token.operator,
.token.entity,
.token.url {
    color: #00d4ff;
}

.token.variable {
    color: #34f8b6;
}

.token.class-name {
    color: #32e6ff;
}

.token.boolean,
.token.number {
    color: #fbbf24;
}

.token.decorator {
    color: #7dffff;
}

/* Bash-specific highlighting - cyan/green palette */
.nested-bash {
    background: rgba(0, 255, 136, 0.05);
    display: inline-block;
    width: 100%;
}

.nested-bash .token.function,
.nested-bash .token.builtin {
    color: #00d4ff;
    font-weight: 600;
}

.nested-bash .token.string {
    color: #00ff88;
}

.nested-bash .token.variable {
    color: #34f8b6;
}

.nested-bash .token.operator,
.nested-bash .token.punctuation {
    color: #00d4ff;
}

.nested-bash .token.parameter,
.nested-bash .token.attr-name {
    color: #32e6ff;
}

.nested-bash .token.comment {
    color: #6b7280;
    font-style: italic;
}

/* Python-specific highlighting - cyan/green palette */
.nested-python {
    background: rgba(0, 212, 255, 0.05);
    display: inline-block;
    width: 100%;
}

.nested-python .token.keyword {
    color: #00ff88;
    font-weight: 600;
}

.nested-python .token.function {
    color: #00d4ff;
}

.nested-python .token.class-name {
    color: #32e6ff;
}

.nested-python .token.string {
    color: #34f8b6;
}

.nested-python .token.boolean,
.nested-python .token.number {
    color: #fbbf24;
}

.nested-python .token.operator,
.nested-python .token.punctuation {
    color: #00d4ff;
}

.nested-python .token.decorator {
    color: #7dffff;
}

.nested-python .token.comment {
    color: #6b7280;
    font-style: italic;
}

/* Styles for implementation preview blocks (used in automate-your-process) */
.implementation-preview pre {
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
    overflow-x: auto;
}

.implementation-preview code,
.implementation-preview code[class*='language-'] {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre;
    background: transparent;
}

/* Override for implementation preview - ensure token colors are visible */
.implementation-preview .token.comment,
.implementation-preview .token.prolog,
.implementation-preview .token.doctype,
.implementation-preview .token.cdata {
    color: #6b7280;
}

.implementation-preview .token.punctuation {
    color: #9ca3af;
}

.implementation-preview .token.property,
.implementation-preview .token.tag,
.implementation-preview .token.boolean,
.implementation-preview .token.number,
.implementation-preview .token.constant,
.implementation-preview .token.symbol {
    color: #00d4ff;
}

.implementation-preview .token.selector,
.implementation-preview .token.attr-name,
.implementation-preview .token.string,
.implementation-preview .token.char,
.implementation-preview .token.builtin {
    color: #00ff88;
}

.implementation-preview .token.operator,
.implementation-preview .token.entity,
.implementation-preview .token.url,
.implementation-preview .token.variable {
    color: #34f8b6;
}

.implementation-preview .token.atrule,
.implementation-preview .token.attr-value,
.implementation-preview .token.keyword,
.implementation-preview .token.function {
    color: #00d4ff;
}

/* Nested language highlighting in implementation preview */
.implementation-preview .nested-bash,
.implementation-preview .nested-python {
    display: inline;
}
