/**
 * Trellis custom Prism theme
 * Based on Prism Tomorrow Night theme with Trellis brand colors
 */

code[class*="language-"],
pre[class*="language-"] {
    color: #f8f8f2;
    background: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.9rem;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;

    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;

    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow: auto;
    border-radius: 8px;
    background: var(--trellis-black);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
    background: var(--trellis-black);
}

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

/* Syntax highlighting tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #8292a2;
    font-style: italic;
}

.token.punctuation {
    color: #f8f8f2;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f92672;
}

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

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

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

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
    color: #e6db74;
}

.token.keyword {
    color: #66d9ef;
}

.token.regex,
.token.important {
    color: #fd971f;
}

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

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

.token.entity {
    cursor: help;
}

/* Language-specific improvements */
.token.title,
.token.title.class-name {
    color: #a6e22e;
}

.token.title.function {
    color: #e6db74;
}

/* JSON */
.language-json .token.property {
    color: #66d9ef;
}

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

/* HTML */
.language-html .token.tag .token.tag,
.language-html .token.tag .token.punctuation {
    color: #f92672;
}

.language-html .token.attr-name {
    color: #a6e22e;
}

.language-html .token.attr-value {
    color: #e6db74;
}

/* CSS */
.language-css .token.selector {
    color: #f92672;
}

.language-css .token.property {
    color: #66d9ef;
}

/* JavaScript/TypeScript */
.language-javascript .token.keyword,
.language-typescript .token.keyword {
    color: #66d9ef;
}

.language-javascript .token.function,
.language-typescript .token.function {
    color: #a6e22e;
}

.language-javascript .token.class-name,
.language-typescript .token.class-name {
    color: #a6e22e;
}

/* Bash/Shell */
.language-bash .token.function {
    color: #a6e22e;
}

.language-bash .token.string {
    color: #e6db74;
}

.language-bash .token.builtin {
    color: #66d9ef;
}

/* Line highlighting */
.highlight-line {
    background-color: rgba(255, 255, 255, 0.1);
    display: block;
    padding-right: 1em;
    padding-left: 1em;
    margin-right: -1em;
    margin-left: -1em;
}

/* Line numbers */
.line-numbers .line-numbers-rows {
    border-right: 1px solid #999;
}

.line-numbers-rows > span:before {
    color: #999;
}
