/*
 * Custom Dokka styles - XR Theme
 */

/* Force all code tokens and monospace text to be normal (no italics) */
.token, 
.symbol, 
.monospace,
.parameters,
.parameter,
.brief,
.block,
code, 
pre,
i,
em,
.symbol *,
code *,
pre *,
.parameter *,
.brief * {
    font-style: normal !important;
}

code .token {
    white-space: pre;
}

:root {
	--code-area-punctuation: #64748b;
	--code-area-string: #06b6d4;
	--code-area-keyword: #8b5cf6;
	--code-area-function: #3b82f6;
	--code-area-operator: #f59e0b;
	--code-area-number: #10b981;
}

:root.theme-dark {
	--code-area-punctuation: #94a3b8;
	--code-area-string: #22d3ee;
	--code-area-keyword: #a78bfa;
	--code-area-function: #60a5fa;
	--code-area-operator: #fbbf24;
	--code-area-number: #34d399;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata,
.token.punctuation {
	color: var(--code-area-punctuation);
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
	color: var(--code-area-number);
	font-weight: 500;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: var(--code-area-string);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
	color: var(--code-area-operator);
	background: none;
}

.token.atrule,
.token.attr-value,
.token.keyword,
.token.interpolation-punctuation {
	color: var(--code-area-keyword);
	font-weight: 600;
}

.token.function {
	color: var(--code-area-function);
	font-weight: 500;
}

.token.regex,
.token.important,
.token.variable {
	color: var(--code-area-number);
}

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

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

.token.entity {
	cursor: help;
}

:root.theme-dark .language-plaintext .token {
	color: inherit !important;
}

/* XR Code Block Enhancements */
code {
    background: rgba(126, 120, 227, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--default-monospace-font-family);
    border: 1px solid rgba(126, 120, 227, 0.1);
    transition: all 0.2s ease;
}

code:hover {
    background: rgba(126, 120, 227, 0.08);
    border-color: rgba(126, 120, 227, 0.2);
}

pre code {
    display: block;
    padding: 16px;
    border-radius: 8px;
    background: rgba(126, 120, 227, 0.03);
    border: 1px solid rgba(126, 120, 227, 0.15);
    overflow-x: auto;
}

:root.theme-dark code {
    background: rgba(126, 120, 227, 0.1);
    border-color: rgba(126, 120, 227, 0.2);
}

:root.theme-dark code:hover {
    background: rgba(126, 120, 227, 0.15);
    border-color: rgba(126, 120, 227, 0.3);
}

:root.theme-dark pre code {
    background: rgba(126, 120, 227, 0.08);
    border-color: rgba(126, 120, 227, 0.2);
}