@import "rouge";

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #111;
  color: #eee;
  margin: 0;
  padding: 0;
}

header, footer {
  text-align: center;
  background: #222;
  padding: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  display: inline;
  margin: 0 10px;
}

a {
  color: #f36;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.content {
  max-width: 800px;
  margin: auto;
  padding: 1rem;
}

.intro {
  text-align: center;
  margin-bottom: 2rem;
}

.post-content {
  font-family: "Segoe UI", Roboto, sans-serif;
  line-height: 1.8;
  color: #ddd;
  background-color: #181818;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.post-content p {
  margin: 1rem 0;
}

.post-content code {
  background: #2e2e2e;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Fira Code", monospace;
  color: #ffb3ff;
}

.post-content pre {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  color: #ffb3ff;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content ul,
.post-content ol {
  padding-left: 1.8rem;
  margin: 1rem 0;
}

.post-content blockquote {
  border-left: 4px solid #ff66cc;
  background: #202020;
  padding: 0.8rem 1rem;
  color: #ccc;
  font-style: italic;
  border-radius: 6px;
  margin: 1.2rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content th,
.post-content td {
  border: 1px solid #333;
  padding: 0.6rem 1rem;
}

.post-content th {
  background-color: #252525;
  font-weight: 600;
}

mjx-container {
  color: #ffb3ff;
  font-size: 1.05em;
  margin: 1em 0;
}

mjx-container[jax="SVG"] {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25em 0;
}


.highlight {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.2rem 0;
  overflow-x: auto;
}

.highlight pre {
  margin: 0;
  font-family: "Fira Code", monospace;
  color: #ffb3ff;
  font-size: 0.95rem;
}

/* Specific token colors (Rouge classes for C++) */
.highlight .k,   /* keywords (int, if, return) */
.highlight .kt { color: #ff66cc; font-weight: 600; }

.highlight .n,   /* names, variables */
.highlight .nv,
.highlight .na { color: #d4d4d4; }

.highlight .s,   /* strings */
.highlight .s1,
.highlight .s2 { color: #98c379; }

.highlight .c,   /* comments */
.highlight .cm,
.highlight .c1 { color: #6a9955; font-style: italic; }

.highlight .o { color: #d4d4d4; } /* operators */
.highlight .m { color: #b5cea8; } /* numbers */

.highlight .p { color: #ccc; } /* punctuation */

.highlight .nf { color: #61afef; } /* function names */

.highlight .err {
  background-color: #ff5555;
  color: #fff;
  font-weight: bold;
}