/* Blog-specific overrides — base styles in main.css */

/* Post content formatting */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.post-content blockquote {
  border-left: 4px solid #0055B3;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #F5F7FA;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4B5563;
}
.post-content blockquote p:last-child { margin: 0; }
.post-content pre {
  background: #1A1A2E;
  color: #E5E7EB;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}
.post-content code {
  background: #F5F7FA;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  color: #0055B3;
}
.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}
.post-content th {
  background: #F5F7FA;
  font-weight: 600;
}
.post-content tr:hover td { background: #FAFAFA; }

/* Sticky TOC sidebar */
.sidebar-toc {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-toc .toc__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: #6B7280;
}
.sidebar-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
}
.sidebar-toc li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.sidebar-toc a {
  color: #374151;
  transition: color 0.2s;
}
.sidebar-toc a:hover,
.sidebar-toc a.is-active { color: #0055B3; }

/* Progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: #0055B3;
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}
