@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #1C2030;
  --text: #f4f4f4;
  --accent: #248FE4;
  --cyan: rgba(6, 212, 222, 0.8);
  --purple: rgb(168, 80, 190);
  --light-blue: #BAD5EE;
  --border: #2a2f45;
}

body {
  font-family: 'Inconsolata', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Header / Jumbotron */
.jumbotron {
  text-align: center;
  padding: 2rem;
}

.jumbotron h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.jumbotron .slogan {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.jumbotron .banner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.jumbotron .banner img {
  width: 100%;
}

/* Navigation */
.navigation {
  text-align: center;
  padding: 0.5rem 1rem;
  color: var(--accent);
}

.navigation .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.navigation a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.navigation a:hover {
  color: var(--text);
}

.navigation .separator {
  color: var(--accent);
  margin: 0 0.4rem;
  font-weight: 400;
}

.navigation hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

/* Main content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  flex: 1;
  width: 100%;
}

/* Badge */
.badge-section {
  text-align: center;
  margin: 2rem 0;
}

.badge-section img {
  max-width: 200px;
}

/* Section titles */
.section-title {
  color: var(--accent);
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.section-title + hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

/* Articles */
.articles {
  text-align: center;
}

article {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  cursor: pointer;
}

article h2 {
  color: var(--cyan);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

article h3,
article time {
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: normal;
}

article p {
  color: var(--light-blue);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

article a {
  color: inherit;
}

article a:hover {
  color: var(--text);
}

/* Single article page */
.single {
  max-width: 800px;
  margin: 0 auto;
}

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

.single header h1 {
  color: var(--cyan);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.single header time {
  color: var(--purple);
}

.single .content {
  line-height: 1.8;
  color: var(--light-blue);
}

.single .content h2 {
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.single .content p {
  margin-bottom: 1rem;
}

.single .content pre {
  background: #0a0a0a;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid #1a1a1a;
}

.single .content pre code {
  color: #e0e0e0;
  font-family: 'Inconsolata', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.single .content code {
  font-family: 'Inconsolata', monospace;
  background: #1a1a1a;
  color: #ce9178;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.single .content img {
  max-width: 100%;
  display: block;
  margin: 1.5rem auto;
}

/* Tags */
.tags {
  margin: 0.5rem 0;
  text-align: center;
}

.tag {
  display: inline-block;
  background: var(--border);
  color: var(--purple);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin: 0.25rem;
}

/* Download button */
.download {
  margin-top: 2rem;
  text-align: center;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-family: 'Inconsolata', monospace;
}

.btn:hover {
  opacity: 0.9;
  color: white;
}

/* List pages */
.list {
  text-align: center;
}

.list h1 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Projects page */
.subsection-title {
  color: var(--accent);
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.project {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.project:last-child {
  border-bottom: none;
}

.github-link {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-family: 'Inconsolata', monospace;
}

footer a {
  color: var(--text);
}

footer a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
  .jumbotron h1 {
    font-size: 2rem;
  }

  .navigation a {
    display: block;
    margin: 0.5rem 0;
  }
}

/* Code blocks - Dark Matrix background with IDE colors */
.highlight {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  margin: 1rem 0;
}

.highlight pre {
  background: transparent;
  margin: 0;
  padding: 1rem;
  border: none;
  box-shadow: none;
}

.highlight code {
  color: #e0e0e0;
  background: transparent;
  padding: 0;
  font-family: 'Inconsolata', monospace;
  font-size: 0.9rem;
}

/* Syntax highlighting - IDE style */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cp { color: #6a9955; font-style: italic; } /* Comments - green */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kc,
.highlight .kt { color: #569cd6; font-weight: bold; } /* Keywords - blue */
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .ss { color: #ce9178; } /* Strings - orange */
.highlight .na { color: #9cdcfe; } /* Attribute names - light blue */
.highlight .nb { color: #dcdcaa; } /* Builtins - yellow */
.highlight .nc,
.highlight .nf { color: #dcdcaa; } /* Class/function names - yellow */
.highlight .nd { color: #d7ba7d; } /* Decorators - gold */
.highlight .ne,
.highlight .ni,
.highlight .nl,
.highlight .nn,
.highlight .no,
.highlight .nt { color: #4ec9b0; } /* Tags/namespace - teal */
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi { color: #9cdcfe; } /* Variables - light blue */
.highlight .m,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo { color: #b5cea8; } /* Numbers - light green */
.highlight .o,
.highlight .ow { color: #d4d4d4; } /* Operators */
.highlight .p { color: #d4d4d4; } /* Punctuation */
.highlight .err { color: #f44747; background: transparent; } /* Errors - red */
.highlight .ln { color: #858585; } /* Line numbers */
.highlight .gh,
.highlight .gu { color: #569cd6; } /* Headings */

/* KaTeX math formulas */
.katex-display {
  margin: 1.5rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.katex {
  color: var(--cyan);
  font-size: 1.1em;
}

.katex-display > .katex {
  color: var(--text);
}
