/* Prism.js — Ridgeline Dark Theme
 * Matches the Hugo/Chroma Ridgeline Dark Theme:
 *   Background: #0F2B3C
 *   Keywords: #fdba74 (orange)
 *   Strings: #fcd34d (yellow)
 *   Functions: #86efac (green)
 *   Numbers: #c4b5fd (purple)
 *   Operators: #94a3b8 (slate)
 *   Text: #e2e8f0 (light)
 *   Comments: #93c5fd (light blue)
 *   Errors: #fca5a5 (red)
 */

code[class*="language-"],
pre[class*="language-"] {
  color: #e2e8f0;
  background: none;
  font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Andale Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  tab-size: 4;
  hyphens: none;
}

pre[class*="language-"] {
  background: #0F2B3C;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  overflow: auto;
  position: relative;
}

:not(pre) > code[class*="language-"] {
  background: #0F2B3C;
  padding: 2px 6px;
  border-radius: 4px;
}

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

.token.punctuation {
  color: #94a3b8;
}

.token.namespace {
  opacity: 0.7;
}

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

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

.token.inserted {
  color: #86efac;
}

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

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

.token.function,
.token.class-name {
  color: #86efac;
}

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

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

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

.token.entity {
  cursor: help;
}

.token.deleted {
  color: #fca5a5;
}

/* Line highlighting (if used) */
.line-highlight {
  background: rgba(59, 130, 246, 0.12);
  border-left: 3px solid #3b82f6;
}

/* Code copy button (matches existing .code-copy-btn styles) */
pre[class*="language-"] .code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  z-index: 1;
}

pre[class*="language-"] .code-copy-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #e2e8f0;
}

pre[class*="language-"] .code-copy-btn.copied {
  background: rgba(5,150,105,0.2);
  border-color: rgba(5,150,105,0.4);
  color: #059669;
}
