/* IRA FORCE - Custom Syntax Highlighting Theme */
/* Inspired by One Dark Pro for VS Code */

code[class*="language-"],
pre[class*="language-"] {
    color: #ABB2BF;
    background: none;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
    font-size: 0.875rem;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.7;
    tab-size: 4;
    hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
    padding: 1.25rem;
    margin: 0;
    overflow: auto;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
    padding: 0.2em 0.4em;
    border-radius: 4px;
    white-space: normal;
    background: var(--bg-tertiary);
}

/* Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #5C6370;
    font-style: italic;
}

.token.punctuation {
    color: #ABB2BF;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #D19A66;
}

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

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

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #C678DD;
}

.token.function,
.token.class-name {
    color: #61AFEF;
}

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

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

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

.token.entity {
    cursor: help;
}

/* Line highlighting */
.line-highlight {
    position: absolute;
    left: 0;
    right: 0;
    padding: inherit 0;
    margin-top: 1em;
    background: rgba(19, 181, 234, 0.08);
    pointer-events: none;
    line-height: inherit;
    white-space: pre;
}

/* Line numbers */
.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid var(--border-primary);
    user-select: none;
}

.line-numbers-rows > span {
    display: block;
    counter-increment: linenumber;
}

.line-numbers-rows > span:before {
    content: counter(linenumber);
    color: var(--text-muted);
    display: block;
    padding-right: 0.8em;
    text-align: right;
}

/* Inline code styling for markdown */
code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
    font-size: 0.875em;
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: #E5C07B;
}

pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Language-specific adjustments */
.language-bash .token.function {
    color: #98C379;
}

.language-bash .token.parameter {
    color: #ABB2BF;
}

.language-json .token.property {
    color: #E06C75;
}

.language-json .token.string {
    color: #98C379;
}

.language-json .token.number {
    color: #D19A66;
}

.language-yaml .token.key {
    color: #E06C75;
}

.language-yaml .token.value {
    color: #98C379;
}

/* Diff highlighting */
.token.deleted {
    background: rgba(239, 68, 68, 0.15);
    display: inline-block;
    width: 100%;
}

.token.inserted {
    background: rgba(16, 185, 129, 0.15);
    display: inline-block;
    width: 100%;
}
