/* PrismJS theme for code syntax highlighting */
code[class*="language-"],
pre[class*="language-"] {
  color: #e2e8f0;
  background: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1em;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.7;
  tab-size: 4;
  hyphens: none;
}

pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
  background: #475569;
}

pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
  background: #475569;
}

/* Code blocks */
pre[class*="language-"] {
  padding: 1.5rem;
  margin: 2rem 0;
  overflow: auto;
  border-radius: 0.5rem;
  background: #1e293b;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
  background: #1e293b;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #94a3b8;
  font-style: italic;
}

.token.punctuation {
  color: #cbd5e1;
}

.token.namespace {
  opacity: 0.7;
}

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

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

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

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

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

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

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

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

.token.entity {
  cursor: help;
}

/* Swift-specific highlighting */
.language-swift .token.keyword {
  color: #ec4899;
}

.language-swift .token.function {
  color: #8b5cf6;
}

.language-swift .token.class-name {
  color: #14b8a6;
}

.language-swift .token.string {
  color: #f87171;
}

/* Line highlighting */
pre[class*="language-"][data-line] {
  position: relative;
  padding-left: 3.8em;
}

pre[data-line] .line-highlight-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  display: block;
  width: 100%;
}

pre[data-line] .line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: inherit 0;
  margin-top: 1em;
  background: rgba(100, 116, 139, 0.3);
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}
