/* ==========================================================================
   Prism.js Theme Overrides - GitHub Dark Style
   ========================================================================== */

/* Override Prism.js default theme to match GitHub Dark */
code[class*="language-"],
pre[class*="language-"] {
  color: #c9d1d9;
  background: #0d1117;
  font-family: var(--font-mono);
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;
  tab-size: 4;
  hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
  padding: 1.5em;
  margin: 1.5em 0;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: 2px 6px;
  border-radius: 4px;
  white-space: normal;
}

/* Token colors - GitHub Dark theme */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #8b949e;
  font-style: italic;
}

.token.namespace {
  opacity: 0.7;
}

.token.string,
.token.attr-value {
  color: #a5d6ff;
}

.token.punctuation,
.token.operator {
  color: #c9d1d9;
}

.token.entity,
.token.url,
.token.symbol,
.token.number,
.token.boolean,
.token.variable,
.token.constant,
.token.property,
.token.regex,
.token.inserted {
  color: #79c0ff;
}

.token.atrule,
.token.keyword,
.token.attr-name,
.language-autohotkey .token.selector {
  color: #ff7b72;
}

.token.function,
.token.deleted,
.language-autohotkey .token.tag {
  color: #d2a8ff;
}

.token.tag,
.token.selector,
.language-autohotkey .token.keyword {
  color: #7ee787;
}

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

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

.token.important {
  color: #f85149;
}

/* Line highlighting */
.line-highlight {
  background: rgba(88, 166, 255, 0.1);
  border-left: 3px solid #58a6ff;
}

/* Line numbers */
.line-numbers .line-numbers-rows {
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}

.line-numbers-rows > span:before {
  color: var(--color-text-secondary);
}

/* Command line */
.command-line-prompt {
  border-right: 1px solid var(--color-border);
}

.command-line-prompt > span:before {
  color: var(--color-text-secondary);
}

/* Selection */
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
  background: rgba(88, 166, 255, 0.3);
}
