/* Blog Detail Page - Main Styles */
.prose {
    max-width: none;
}

/* Layout improvements for sticky footer */
.blog-detail-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blog-detail-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Enhanced Typography */
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.prose h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.prose h2 {
    font-size: 1.875rem;
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Lists - ensure proper styling like markdown preview */
.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    line-height: 1.6;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
}

.prose ul ul ul {
    list-style-type: square;
}

.prose ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.5rem;
}

.prose ol ol ol {
    list-style-type: lower-roman;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    display: list-item;
}

.prose li p {
    margin-bottom: 0.5rem;
}

/* Footer list styles reset to prevent extra bullets */
footer ul {
    list-style: none !important;
    padding-left: 0 !important;
}

footer li {
    list-style: none !important;
    display: block !important;
}

.prose a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.prose a:hover {
    color: var(--brand-secondary);
    text-decoration: none;
    background-color: var(--bg-secondary);
    padding: 2px 4px;
    border-radius: 4px;
    transform: translateY(-1px);
}

/* Inline Code */
.prose code:not([class*="language-"]) {
    background: var(--bg-secondary);
    color: var(--brand-primary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-weight: 600;
    border: 1px solid var(--border-primary);
}

/* Color Support for HTML content */
.prose span[style*="color"] {
    font-weight: 500;
}

.prose span[style*="background-color"] {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-secondary);
    z-index: 9999;
    transition: width 0.1s ease;
}

.share-sticky {
    position: sticky;
    top: 100px;
}

/* Table of Contents Active State */
.toc-link.toc-active {
    color: var(--brand-primary) !important;
    background-color: var(--bg-tertiary) !important;
    border-left-color: var(--brand-primary) !important;
    font-weight: 600;
}

.toc-link.toc-active:hover {
    color: var(--brand-primary) !important;
    background-color: var(--bg-tertiary) !important;
}

/* Additional CSS classes for compatibility */
.border-primary { 
    border-color: var(--border-primary) !important; 
}

.bg-surface { 
    background-color: var(--bg-card) !important; 
}

.bg-surface-light { 
    background-color: var(--bg-tertiary) !important; 
}

.text-text-primary { 
    color: var(--text-primary) !important; 
}

.text-text-secondary { 
    color: var(--text-secondary) !important; 
}

.border-border { 
    border-color: var(--border-primary) !important; 
}

.text-primary:hover { 
    color: var(--brand-primary) !important; 
}

.hover\:text-primary:hover { 
    color: var(--brand-primary) !important; 
}

.hover\:bg-surface-light:hover { 
    background-color: var(--bg-tertiary) !important; 
}

/* Article and content styling */
.article-content article {
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.article-content h3 {
    color: var(--text-primary);
}



/* Share buttons and tags */
.share-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.share-section h3 {
    color: var(--text-primary);
}

/* Sidebar */
.sidebar-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.sidebar-section h3 {
    color: var(--text-primary);
}

.sidebar-section a:hover {
    color: var(--brand-primary);
}

.related-post {
    border: 1px solid var(--border-primary);
    background-color: var(--bg-secondary);
}

.related-post h4 {
    color: var(--text-primary);
}

.related-post p {
    color: var(--text-secondary);
}

.related-post .meta {
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-sticky {
        position: static;
        top: auto;
    }
    
    .prose h1 {
        font-size: 1.875rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
    }
    
    /* Mobile share buttons improvements */
    .share-buttons-container {
        justify-content: center;
    }
    
    .share-buttons-container > div {
        width: 100%;
    }
    
    .share-buttons-container .flex {
        justify-content: center;
    }
    
    /* Ensure proper mobile layout for sticky footer */
    .blog-detail-body {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .blog-detail-main {
        padding-bottom: 2rem;
    }
} 