/* Custom styles for The Pragmatic Coders */

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #24292e;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

blockquote {
  padding: 0 1rem;
  margin-left: 0;
  border-left: 0.25rem solid #dfe2e5;
  color: #6a737d;
}

code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
}

pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 3px;
}

pre code {
  padding: 0;
  margin: 0;
  background-color: transparent;
}

/* Layout */
.container-lg {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

/* Header and Navigation */
.site-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eaecef;
  padding-bottom: 1rem;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #24292e;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: #0366d6;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eaecef;
  color: #6a737d;
}

/* Book-specific styles */
.book-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.book-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #6a737d;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #eaecef;
}

.chapter-nav a {
  color: #0366d6;
  text-decoration: none;
}

.chapter-nav a:hover {
  text-decoration: underline;
}

/* Questions to Ponder section */
.questions-to-ponder {
  background-color: #f6f8fa;
  border-left: 0.25rem solid #0366d6;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
}

.questions-to-ponder h2 {
  margin-top: 0;
}

.questions-to-ponder ol {
  margin-bottom: 0;
}

/* Mermaid diagrams */
.mermaid {
  margin: 2rem 0;
  text-align: center;
}

/* Code blocks with syntax highlighting */
.highlight {
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    margin-top: 1rem;
  }
  
  .nav-links li {
    margin-left: 0;
    margin-right: 1.5rem;
  }
}
