/* Blog Show Page - Advanced UI Styles */

:root {
    --blog-primary: #006943;
    --blog-primary-light: #e6f2ed;
    --blog-text: #374151;
    --blog-heading: #111827;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 80px; /* Below navbar (h-20 = 80px) */
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

#reading-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--blog-primary), #00b372);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 105, 67, 0.4);
}

/* Aspect Ratio Utility (if not in main CSS) */
.aspect-video {
    aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
    .aspect-md-\[3\/1\] {
        aspect-ratio: 3 / 1;
    }
}

/* Hero Header & Image Container */
header.bg-white {
    border-bottom: 1px solid #f8fafc;
}

.featured-image-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-image-container:hover {
    transform: scale(1.01);
}

.blog-hero-glass {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography & Content */
.blog-content {
    line-height: 1.8;
    color: var(--blog-text);
    font-size: 1.125rem;
}

.blog-content h1, 
.blog-content h2, 
.blog-content h3, 
.blog-content h4 {
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--blog-heading);
    letter-spacing: -0.02em;
}

.blog-content h1 { font-size: 2.5rem; }
.blog-content h2 { font-size: 2rem; border-bottom: 1px solid #f3f4f6; padding-bottom: 0.5rem; }
.blog-content h3 { font-size: 1.5rem; }

.blog-content p {
    margin-bottom: 1.75rem;
}

.blog-content blockquote {
    font-style: italic;
    font-size: 1.25rem;
    color: #4b5563;
    border-left: 4px solid var(--blog-primary);
    padding: 1.5rem 2rem;
    margin: 3rem 0;
    background: #f9fafb;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.blog-content img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft-lg);
    margin: 3rem 0;
}

/* Sticky Social Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 120px;
}

.share-btn-float {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Related Posts */
.related-post-card {
    transition: all 0.4s ease;
}

.related-post-card:hover {
    transform: translateY(-8px);
}

.related-post-image-zoom {
    overflow: hidden;
}

.related-post-image-zoom img {
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image-zoom img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .reading-progress-container {
        top: 80px;
    }
}
