/* Custom Prism.js Theme — Attio-inspired dark code blocks
 * Used by: components/code-block.njk
 * Loaded conditionally via needsPrism: true in page frontmatter
 */

code[class*='language-'],
pre[class*='language-'] {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #d4d4d4;
  background: none;
  text-shadow: none;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  overflow-wrap: normal;
  tab-size: 2;
  hyphens: none;
}

pre[class*='language-'] {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #1e1e1e;
  border-radius: 0.5rem;
}

/* Token colors — VS Code dark+ inspired */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6a9955;
}

.token.punctuation {
  color: #d4d4d4;
}

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

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

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

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

.token.function {
  color: #dcdcaa;
}

.token.class-name {
  color: #4ec9b0;
}

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

.token.decorator,
.token.annotation {
  color: #dcdcaa;
}

/* Custom scrollbar for code blocks */
.code-block pre::-webkit-scrollbar {
  height: 6px;
}

.code-block pre::-webkit-scrollbar-track {
  background: #2d2d2d;
}

.code-block pre::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
  background: #666;
}
