/* Syntax Highlighting - Dark Theme for Rouge */

/* Base code block styling */
.highlight {
  background-color: #161b22 !important;
  border: 1px solid #30363d !important;
  border-radius: 6px !important;
  padding: 16px !important;
  overflow-x: auto !important;
  margin-bottom: 1.5rem !important;
}

.highlight pre {
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
  border: none !important;
}

.highlight code {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #c9d1d9 !important;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Rouge Syntax Highlighting Tokens - GitHub Dark Theme */
.highlight .c { color: #8b949e; font-style: italic; } /* Comment */
.highlight .err { color: #f85149; } /* Error */
.highlight .k { color: #ff7b72; } /* Keyword */
.highlight .l { color: #a5d6ff; } /* Literal */
.highlight .n { color: #c9d1d9; } /* Name */
.highlight .o { color: #ff7b72; } /* Operator */
.highlight .p { color: #c9d1d9; } /* Punctuation */
.highlight .cm { color: #8b949e; font-style: italic; } /* Comment.Multiline */
.highlight .cp { color: #8b949e; font-weight: bold; } /* Comment.Preproc */
.highlight .c1 { color: #8b949e; font-style: italic; } /* Comment.Single */
.highlight .cs { color: #8b949e; font-weight: bold; font-style: italic; } /* Comment.Special */
.highlight .gd { color: #ffdcd7; background-color: #67060c; } /* Generic.Deleted */
.highlight .ge { font-style: italic; } /* Generic.Emph */
.highlight .gr { color: #f85149; } /* Generic.Error */
.highlight .gh { color: #1f6feb; font-weight: bold; } /* Generic.Heading */
.highlight .gi { color: #aff5b4; background-color: #033a16; } /* Generic.Inserted */
.highlight .go { color: #8b949e; } /* Generic.Output */
.highlight .gp { color: #8b949e; } /* Generic.Prompt */
.highlight .gs { font-weight: bold; } /* Generic.Strong */
.highlight .gu { color: #1f6feb; font-weight: bold; } /* Generic.Subheading */
.highlight .gt { color: #f85149; } /* Generic.Traceback */
.highlight .kc { color: #79c0ff; } /* Keyword.Constant */
.highlight .kd { color: #ff7b72; } /* Keyword.Declaration */
.highlight .kn { color: #ff7b72; } /* Keyword.Namespace */
.highlight .kp { color: #79c0ff; } /* Keyword.Pseudo */
.highlight .kr { color: #ff7b72; } /* Keyword.Reserved */
.highlight .kt { color: #ff7b72; } /* Keyword.Type */
.highlight .ld { color: #a5d6ff; } /* Literal.Date */
.highlight .m { color: #a5d6ff; } /* Literal.Number */
.highlight .s { color: #a5d6ff; } /* Literal.String */
.highlight .na { color: #79c0ff; } /* Name.Attribute */
.highlight .nb { color: #d2a8ff; } /* Name.Builtin */
.highlight .nc { color: #f0883e; } /* Name.Class */
.highlight .no { color: #79c0ff; } /* Name.Constant */
.highlight .nd { color: #d2a8ff; } /* Name.Decorator */
.highlight .ni { color: #ffa657; } /* Name.Entity */
.highlight .ne { color: #f0883e; } /* Name.Exception */
.highlight .nf { color: #d2a8ff; } /* Name.Function */
.highlight .nl { color: #79c0ff; } /* Name.Label */
.highlight .nn { color: #f0883e; } /* Name.Namespace */
.highlight .nx { color: #c9d1d9; } /* Name.Other */
.highlight .py { color: #79c0ff; } /* Name.Property */
.highlight .nt { color: #7ee787; } /* Name.Tag */
.highlight .nv { color: #79c0ff; } /* Name.Variable */
.highlight .ow { color: #ff7b72; font-weight: bold; } /* Operator.Word */
.highlight .w { color: #c9d1d9; } /* Text.Whitespace */
.highlight .mb { color: #a5d6ff; } /* Literal.Number.Bin */
.highlight .mf { color: #a5d6ff; } /* Literal.Number.Float */
.highlight .mh { color: #a5d6ff; } /* Literal.Number.Hex */
.highlight .mi { color: #a5d6ff; } /* Literal.Number.Integer */
.highlight .mo { color: #a5d6ff; } /* Literal.Number.Oct */
.highlight .sa { color: #a5d6ff; } /* Literal.String.Affix */
.highlight .sb { color: #a5d6ff; } /* Literal.String.Backtick */
.highlight .sc { color: #a5d6ff; } /* Literal.String.Char */
.highlight .dl { color: #a5d6ff; } /* Literal.String.Delimiter */
.highlight .sd { color: #a5d6ff; font-style: italic; } /* Literal.String.Doc */
.highlight .s2 { color: #a5d6ff; } /* Literal.String.Double */
.highlight .se { color: #79c0ff; } /* Literal.String.Escape */
.highlight .sh { color: #a5d6ff; } /* Literal.String.Heredoc */
.highlight .si { color: #a5d6ff; } /* Literal.String.Interpol */
.highlight .sx { color: #a5d6ff; } /* Literal.String.Other */
.highlight .sr { color: #7ee787; } /* Literal.String.Regex */
.highlight .s1 { color: #a5d6ff; } /* Literal.String.Single */
.highlight .ss { color: #a5d6ff; } /* Literal.String.Symbol */
.highlight .bp { color: #d2a8ff; } /* Name.Builtin.Pseudo */
.highlight .fm { color: #d2a8ff; } /* Name.Function.Magic */
.highlight .vc { color: #79c0ff; } /* Name.Variable.Class */
.highlight .vg { color: #79c0ff; } /* Name.Variable.Global */
.highlight .vi { color: #79c0ff; } /* Name.Variable.Instance */
.highlight .vm { color: #79c0ff; } /* Name.Variable.Magic */
.highlight .il { color: #a5d6ff; } /* Literal.Number.Integer.Long */

/* Language-specific overrides */
.highlight .language-bash .nb { color: #d2a8ff; }
.highlight .language-bash .nv { color: #79c0ff; }
.highlight .language-python .kn { color: #ff7b72; }
.highlight .language-python .nn { color: #f0883e; }
.highlight .language-javascript .nx { color: #79c0ff; }
.highlight .language-javascript .kd { color: #ff7b72; }

/* Code block without syntax highlighting */
pre.highlight {
  background-color: #161b22 !important;
  color: #c9d1d9 !important;
}

/* Ensure code blocks in posts/writeups have proper styling */
.post-content pre,
.markdown-content pre,
article pre {
  background-color: #161b22 !important;
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
}

.post-content code,
.markdown-content code,
article code {
  color: #c9d1d9 !important;
}

/* Inline code (not in pre blocks) */
.post-content p code,
.post-content li code,
.markdown-content p code,
.markdown-content li code {
  background-color: #161b22 !important;
  color: #ff7b72 !important;
  border: 1px solid #30363d !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  font-size: 0.9em !important;
}