/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0b0b0b;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #3a3a3a;
  --text-primary: #e4e4e4;
  --text-secondary: #c4c4c4;
  --accent: #4a9eff;
  --accent-hover: #6bb0ff;
  --border: #404040;
  --shadow: rgba(0, 0, 0, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-hover);
}

.nav-links a.active {
  color: var(--accent);
}

#menu-button {
	display: none;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 250px;
  height: calc(100vh - 60px);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 2rem 0;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-menu a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-menu a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background-color: var(--bg-tertiary);
}

/* Main Content */
.container {	
  margin-left: 250px;
  margin-top: 60px;
  padding: 3rem;
  max-width: 100%;
}

main {
	max-width: 960px;
	margin: auto;
	font-size: 1.2rem;
}

/* Content Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

strong {
	color: var(--text-primary);
}

code {
  background-color: var(--bg-tertiary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

pre {
  background-color: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background-color: transparent;
  padding: 0;
}
.emphasis {
	color: #e2069c;
	font-weight: bold;
}
.center {
	text-align: center;
}

/* Links */
a {
  color: var(--accent);
  transition: color 0.2s;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
ul, ol {
	margin-bottom: 1rem;
}
li {
	margin-left: 2rem;
}
li, li p {
	color: var(--text-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .container {
    margin-left: 0;
    padding: 2rem 1rem;
  }

  .nav-links {
    display: none;
  }

	#menu-button {
		display: block;
		background: var(--bg-secondary);
		padding: 0.5rem;
		border: 1px solid var(--text-primary);
		border-radius: 2px;
		font-size: 1rem;
		color: var(--text-primary);
		margin-left: -1rem;
	}
	#menu-button:hover, #menu-button:active {
		background: var(--text-secondary);
	}
	li {
		margin-left: 1rem;
	}
}
