/* ============================================
   SINGLE BLOG POST STYLES
   ============================================ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform-origin: left;
    z-index: 100;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
    transform: scaleX(0);
    transition: transform 0.1s ease-out;
}

/* Drop Cap */
.drop-cap::first-letter {
    float: left;
    font-size: 3.75rem;
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1;
    margin-right: 0.5rem;
    color: #1c1917;
    margin-top: 0.1em;
}

@media (max-width: 640px) {
    .drop-cap::first-letter {
        font-size: 3rem;
    }
}

/* Ornamental Divider */
.ornamental-divider {
    position: relative;
    text-align: center;
    margin: 3rem 0;
}

.ornamental-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d6d3d1, transparent);
}

.ornamental-divider::after {
    content: '◆';
    position: relative;
    display: inline-block;
    background: #fafaf9;
    padding: 0 1rem;
    color: #a8a29e;
    font-size: 0.75rem;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
}

/* Table of Contents */
.toc-container {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #64748b;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.toc-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.toc-link.active {
    border-color: #2563eb;
    color: #2563eb;
    font-weight: 600;
    background-color: rgba(37, 99, 235, 0.05);
    margin-left: -1rem;
    padding-left: 2rem;
    border-radius: 0 0.75rem 0.75rem 0;
}

/* Sidebar Sticky */
@media (min-width: 1024px) {
    aside {
        position: sticky;
        top: 7rem;
        align-self: flex-start;
    }
}

/* Prose Styling */
.prose {
    max-width: none;
    color: #1e293b;
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1c1917;
    scroll-margin-top: 6rem;
    position: relative;
}

.prose h2[id] {
    position: relative;
}
.prose ul li p{
    
    margin-bottom: 0;
}
.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #292524;
}

.prose p {
    margin-bottom: 1.5rem;
    color: #44403c;
}

.prose ul,
.prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
}

.prose ul {
    list-style: none;
    padding-left: 0;
}

.prose ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.prose ul li::before {
    content: '•';
    color: #2563eb;
    font-weight: 700;
    font-size: 1.25rem;
}

.prose ol li {
    margin-bottom: 0.75rem;
}

/* Blockquote Styles */
.prose blockquote {
    font-style: italic;
    border-left: 4px solid #2563eb;
    padding-left: 2rem;
    margin: 2rem 0;
    color: #44403c;
    font-size: 1.125rem;
}

/* Code Blocks */
.prose code {
    background: #f5f5f4;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #1c1917;
    font-family: 'Courier New', monospace;
}

.prose pre {
    background: #292524;
    color: #fafaf9;
    padding: 1.5rem;
    border-radius: 1rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Link Styles */
.prose a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.prose a:hover {
    border-bottom-color: #2563eb;
}

/* Image Styles */
.prose img {
    border-radius: 1rem;
    margin: 2rem 0;
    width: 100%;
    height: auto;
}

.prose figure {
    margin: 2rem 0;
}

.prose figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Strong and Emphasis */
.prose strong {
    font-weight: 600;
    color: #1c1917;
}

.prose em {
    font-style: italic;
}

/* HR */
.prose hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 3rem 0;
}

/* Author Bio */
.author-bio {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-bio-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-bio-content p {
    color: #64748b;
    margin-bottom: 1rem;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
}

.related-posts-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
}

.comment {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    object-fit: cover;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
}

.comment-date {
    color: #64748b;
    font-size: 0.875rem;
}

.comment-body {
    color: #44403c;
    line-height: 1.6;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.form-textarea {
    width: 100%;
    min-height: 8rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    resize: vertical;
}

/* Print Styles */
@media print {
    header,
    aside,
    .no-print,
    .reading-progress,
    .social-share,
    .comments-section {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .prose {
        max-width: 100%;
    }
    
    .article-featured-image {
        page-break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose {
        font-size: 1rem;
    }
}
.prose table {
  min-width: 100%;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  overflow: hidden;
}
.prose thead {
  background: #0f172a;
  color: #fff;
}
.prose thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
}
.prose tbody tr:nth-child(even) {
  background: #fafaf9;
}
.prose tbody tr:hover {
  background: #f5f5f4;
}
.prose td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #44403c;
  border-top: 1px solid #e7e5e4;
}