/* Blog Post Styles - Enhanced */

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #3b82f6);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links-inline {
  display: flex;
  gap: 24px;
}

.nav-links-inline a {
  font-size: 0.875rem;
  color: var(--text-muted, #71717a);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links-inline a:hover {
  color: var(--text, #fafafa);
}

/* Post */
.post {
  max-width: 680px;
}

.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle, #1f1f23);
}

.post-header .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-header .post-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text, #fafafa);
}

.post-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary, #a1a1aa);
  line-height: 1.7;
}

.post-read {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted, #71717a);
}

/* Post Content */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary, #a1a1aa);
}

.post-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text, #fafafa);
  margin-top: 48px;
  margin-bottom: 16px;
}

.post-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text, #fafafa);
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content strong {
  color: var(--text, #fafafa);
  font-weight: 500;
}

.post-content a {
  color: var(--text, #fafafa);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover {
  opacity: 0.8;
}

.post-content ul,
.post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content ul li {
  list-style-type: disc;
}

.post-content ol li {
  list-style-type: decimal;
}

.post-content pre {
  background: var(--bg-subtle, #0c0c0e);
  border: 1px solid var(--border-subtle, #1f1f23);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.post-content code {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-content p code {
  background: var(--bg-subtle, #0c0c0e);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-content blockquote {
  border-left: 3px solid var(--border, #27272a);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted, #71717a);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border-subtle, #1f1f23);
  margin: 48px 0;
}

/* Share Section */
.share-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid var(--border-subtle, #1f1f23);
}

.share-label {
  font-size: 0.875rem;
  color: var(--text-muted, #71717a);
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-subtle, #0c0c0e);
  border: 1px solid var(--border-subtle, #1f1f23);
  border-radius: 8px;
  color: var(--text-muted, #71717a);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.share-btn:hover {
  border-color: var(--border, #27272a);
  color: var(--text, #fafafa);
}

/* Author Section */
.author-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  margin-top: 24px;
  background: var(--bg-subtle, #0c0c0e);
  border: 1px solid var(--border-subtle, #1f1f23);
  border-radius: 12px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bg, #09090b);
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #fafafa);
  display: block;
  margin-bottom: 4px;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--text-muted, #71717a);
  margin: 0;
  line-height: 1.5;
}

.author-bio a {
  color: var(--text-secondary, #a1a1aa);
  text-decoration: none;
}

.author-bio a:hover {
  color: var(--text, #fafafa);
}

/* Related Posts */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle, #1f1f23);
}

.related-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #fafafa);
  margin-bottom: 16px;
}

.related-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-post {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-subtle, #0c0c0e);
  border: 1px solid var(--border-subtle, #1f1f23);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
}

.related-post:hover {
  border-color: var(--border, #27272a);
}

.related-tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--border-subtle, #1f1f23);
  border-radius: 4px;
  color: var(--text-muted, #71717a);
  flex-shrink: 0;
}

.related-title {
  font-size: 0.9375rem;
  color: var(--text-secondary, #a1a1aa);
  transition: color 0.15s;
}

.related-post:hover .related-title {
  color: var(--text, #fafafa);
}

/* Responsive */
@media (max-width: 600px) {
  .post-header .post-title {
    font-size: 1.5rem;
  }
  
  .post-content {
    font-size: 1rem;
  }
  
  .post-content h2 {
    font-size: 1.25rem;
  }
  
  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .author-section {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-links-inline {
    display: none;
  }
}
