/* Syntax Highlighting - Monokai-inspired with theme integration */

/* Code block container */
.highlight {
  background: #1e1e2e;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 1.5rem 0;
}

.highlight pre {
  margin: 0;
  overflow-x: auto;
  background: transparent !important;
}

.highlight code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #f8f8f2;
  background: transparent;
  white-space: pre;
  display: block;
}

/* Token styles */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6272a4;
  font-style: italic;
}

.token.punctuation {
  color: #f8f8f2;
}

.token.namespace {
  opacity: 0.7;
}

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

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

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

.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: #f1fa8c;
}

.token.keyword {
  color: #ff79c6;
}

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

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

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

.token.entity {
  cursor: help;
}

/* Template literals */
.token.template-string {
  color: #f1fa8c;
}

.token.template-punctuation {
  color: #ff79c6;
}

.token.interpolation {
  color: #f8f8f2;
}

.token.interpolation-punctuation {
  color: #ff79c6;
}

/* Markdown specific */
.token.title {
  color: #bd93f9;
  font-weight: bold;
}

.token.title .token.punctuation {
  color: #6272a4;
}

/* Selection */
.highlight code::selection,
.highlight code *::selection {
  background: #44475a;
}

/* Line numbers (if used) */
.highlight .line-numbers {
  counter-reset: line;
}

.highlight .line-numbers .line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2em;
  margin-right: 1em;
  text-align: right;
  color: #6272a4;
  opacity: 0.5;
}
