/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}

/* Layout */
.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: #2c3e50;
  color: #ecf0f1;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
}

.sidebar h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #3498db;
}

.tagline {
  font-size: 0.9rem;
  color: #95a5a6;
  margin-bottom: 2rem;
  font-style: italic;
}

.about {
  background: rgba(52, 152, 219, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 3px solid #3498db;
}

.about h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #3498db;
}

.about p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #bdc3c7;
}

/* Navigation */
.nav h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #95a5a6;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.nav ul {
  list-style: none;
  margin-bottom: 1rem;
}

.nav li {
  margin-bottom: 0.25rem;
}

.nav a {
  display: block;
  color: #ecf0f1;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  transform: translateX(4px);
}

.nav a.active {
  background: #3498db;
  color: white;
}

/* Main content */
.content {
  flex: 1;
  margin-left: 280px;
  padding: 3rem;
  max-width: 900px;
}

#markdown-content {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Markdown styling */
#markdown-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.5rem;
}

#markdown-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #34495e;
}

#markdown-content h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #34495e;
}

#markdown-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

#markdown-content blockquote {
  border-left: 4px solid #3498db;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #7f8c8d;
  font-style: italic;
  background: #ecf0f1;
  padding: 1rem 1.5rem;
  border-radius: 4px;
}

#markdown-content ul, 
#markdown-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

#markdown-content li {
  margin-bottom: 0.5rem;
}

#markdown-content a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

#markdown-content a:hover {
  border-bottom-color: #3498db;
}

#markdown-content code {
  background: #ecf0f1;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #e74c3c;
}

#markdown-content pre {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

#markdown-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

#markdown-content hr {
  border: none;
  border-top: 2px solid #ecf0f1;
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }
  
  .content {
    margin-left: 0;
    padding: 1.5rem;
  }
  
  #markdown-content {
    padding: 1.5rem;
  }
}
