@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Code+Pro:wght@400;600&display=swap');

* { box-sizing: border-box; }

body {
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #000;
  color: #f0f3f6;
}

code, pre {
  font-family: "Source Code Pro", monospace;
}

/* Sidebar — visible by default, body.nav-hidden hides it */
.sidebar {
  width: 280px;
  background: #0a0a0a;
  color: #f0f3f6;
  padding: 20px;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
  border-right: 1px solid #21262d;
  transition: transform 0.3s ease;
  z-index: 1000;
}

body.nav-hidden .sidebar {
  transform: translateX(-100%);
}

body.nav-hidden .main-content {
  margin-left: 0;
}

.logo {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00ffcc;
  text-align: center;
  color: #f0f3f6;
  line-height: 36px;
}

.nav-section {
  margin-bottom: 20px;
}

.nav-section h3 {
  color: #00ffcc;
  margin: 0 0 10px 0;
  font-size: 1.25em;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

.nav-link {
  display: block;
  color: #f0f3f6;
  text-decoration: none;
  padding: 4px 12px;
  margin: 1px 0;
  border-radius: 4px;
  font-size: 1em;
  line-height: 1.4;
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
  background: #1a1a1a;
  color: #f0f3f6;
}

.nav-link.active {
  background: #00ffcc;
  color: #000;
  font-weight: 600;
}

/* Main content */
.main-content {
  margin-left: 280px;
  padding: 40px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.content {
  max-width: 860px;
  margin: 0 auto;
}

.content h1 {
  color: #f0f3f6;
  border-bottom: 2px solid #7a828e;
  padding-bottom: 8px;
  font-size: 2.5em;
  font-weight: bold;
}

.content h2 {
  color: #f0f3f6;
  margin-top: 2em;
  font-weight: bold;
}

.content h3 {
  color: #d9dee3;
  font-size: 1.25em;
  font-weight: bold;
}

.content h4 {
  color: #9ea7b3;
  font-size: 1.15em;
  font-weight: bold;
}

.content a {
  color: #00ffcc;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Code */
.content code {
  background: #1a1a1a;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 1em;
  color: #f0f3f6;
}

.content pre {
  background: #0a0a0a;
  border: 1px solid #7a828e;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  line-height: 1.5;
}

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

/* Tables */
.content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

.content th, .content td {
  border: 1px solid #7a828e;
  padding: 8px 12px;
  text-align: left;
}

.content th {
  background: #1a1a1a;
  color: #f0f3f6;
}

.content tr:nth-child(even) {
  background: #0a0a0a;
}

/* Blockquotes / callouts */
.content blockquote {
  border-left: 3px solid #00ffcc;
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #d9dee3;
  background: #0a0a0a;
  border-radius: 0 4px 4px 0;
}

/* Callouts (markdown-it-obsidian-callouts) */
.callout {
  margin: 1em 0;
  padding: 0;
  border-radius: 4px;
  border-left: 3px solid #00ffcc;
  background: #0a0a0a;
  overflow: hidden;
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-weight: 600;
  color: #00ffcc;
  background: #111;
}

.callout-title-icon svg {
  width: 18px;
  height: 18px;
}

.callout-content {
  padding: 4px 12px;
  color: #d9dee3;
}

.callout-content > p:first-child { margin-top: 0; }
.callout-content > *:last-child { margin-bottom: 0.5em; }

/* Callout type colors */
.callout[data-callout="warning"] { border-left-color: #d29922; }
.callout[data-callout="warning"] .callout-title { color: #d29922; }

.callout[data-callout="caution"],
.callout[data-callout="danger"] { border-left-color: #f85149; }
.callout[data-callout="caution"] .callout-title,
.callout[data-callout="danger"] .callout-title { color: #f85149; }

.callout[data-callout="tip"],
.callout[data-callout="hint"] { border-left-color: #3fb950; }
.callout[data-callout="tip"] .callout-title,
.callout[data-callout="hint"] .callout-title { color: #3fb950; }

.callout[data-callout="note"] { border-left-color: #58a6ff; }
.callout[data-callout="note"] .callout-title { color: #58a6ff; }

.callout[data-callout="important"] { border-left-color: #a371f7; }
.callout[data-callout="important"] .callout-title { color: #a371f7; }

/* Lists */
.content ul, .content ol {
  padding-left: 1.5em;
}

.content li {
  margin-bottom: 0.3em;
}

/* Task lists */
.content .task-list-item {
  list-style: none;
  margin-left: -1.5em;
}

.content .task-list-item input[type="checkbox"] {
  margin-right: 0.5em;
}

/* Horizontal rule */
.content hr {
  border: none;
  border-top: 1px solid #7a828e;
  margin: 2em 0;
}

/* Hamburger toggle — CSS-drawn bars for pixel-perfect centering */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 20px;
  left: 12px;
  z-index: 1001;
  background: #00ffcc;
  border: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #000;
  border-radius: 1px;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

.nav-toggle:hover {
  background: #33ffd6;
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 16px;
  }
}
