/* static/css/syntax.css */

/* Prism.js-like syntax highlighting */
code[class*="language-"],
pre[class*="language-"] {
  color: var(--text-primary);
  text-shadow: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  tab-size: 2;
  hyphens: none;
}

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

.token.punctuation {
  color: var(--text-secondary);
}

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

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

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: var(--text-secondary);
}

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

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

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

/* Line numbers */
pre.line-numbers {
  position: relative;
  padding-left: 3.5rem;
}

.line-numbers-rows {
  position: absolute;
  top: 1.5rem;
  left: 1rem;
  width: 2rem;
  border-right: 1px solid var(--border-color);
  text-align: right;
}

.line-numbers-rows > span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
