/* Professional & Image-Rich Blog Details Styling */

:root {
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-accent: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Professional Hero Banner */
.blog-details-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.webp') center/cover no-repeat;
    opacity: 0.05;
}

.breadcrumb-classic {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.breadcrumb-classic a:hover {
    color: var(--primary-color);
}

.blog-title-main {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 20px;
}

.blog-meta-classic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    font-weight: 600;
    color: var(--text-secondary);
}

.meta-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.meta-auth img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.meta-dot {
    width: 4px;
    height: 4px;
    background: var(--border-color);
    border-radius: 50%;
}

/* Featured Media */
.blog-content-section {
    padding: 60px 0 100px;
}

.featured-image-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: -100px;
    background: var(--white);
    border: 8px solid var(--white);
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

/* Sticky Share Bar */
.sticky-share-bar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.share-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.share-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.share-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Article Styling */
.blog-post-article {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
}

.lead-text-professional {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.article-h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 60px 0 25px;
}

.article-h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.article-figure {
    margin: 40px 0;
    text-align: center;
}

.article-figure img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.article-figure figcaption {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.article-blockquote {
    border-left: 5px solid var(--primary-color);
    background: #f1f5f9;
    padding: 40px;
    border-radius: 0 16px 16px 0;
    margin: 50px 0;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    color: var(--text-primary);
}

/* Author Card */
.author-card-classic {
    background: var(--bg-accent);
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    object-fit: cover;
    margin-bottom: 20px;
}

.author-card-classic h4 {
    font-weight: 800;
    margin-bottom: 10px;
}

/* Related Posts */
.related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Perfect Square Format */
    object-fit: cover;
}

.related-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-card-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-primary);
}

.related-card-content span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Professional Sidebar */
.sidebar-professional {
    position: sticky;
    top: 120px;
}

.sidebar-widget-classic {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title-classic {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box-sidebar {
    position: relative;
}

.search-box-sidebar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-accent);
    outline: none;
}

.search-box-sidebar button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.cat-list-classic li {
    margin-bottom: 15px;
}

.cat-list-classic a {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-secondary);
}

.cat-list-classic a span {
    color: var(--text-secondary);
    opacity: 0.5;
}

.cat-list-classic a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-sidebar-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 40px 30px;
    border-radius: 24px;
    color: var(--white);
    text-align: center;
}

.newsletter-sidebar-card i {
    font-size: 3rem;
    color: var(--primary-color);
}

.newsletter-sidebar-card h4 { font-weight: 800; margin-bottom: 15px; }

.newsletter-sidebar-card input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: var(--white);
    margin-bottom: 15px;
    outline: none;
}

.btn-theme-primary {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-theme-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsiveness & Mobile Optimization */
@media (max-width: 1200px) {
    .blog-post-article { font-size: 1.1rem; }
}

@media (max-width: 991px) {
    .blog-details-hero { padding: 80px 0 40px; }
    .featured-image-wrapper { 
        margin-top: 20px; 
        border: 4px solid var(--white);
        border-radius: 16px;
    }
    .blog-title-main { font-size: 2.75rem; }
    .blog-content-section { padding: 40px 0 60px; }
    .sidebar-professional { margin-top: 50px; }
}

@media (max-width: 768px) {
    .blog-title-main { font-size: 2.25rem; letter-spacing: -1px; }
    .blog-meta-classic { flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; }
    .blog-meta-classic .meta-dot { display: none; }
    
    .article-h2 { font-size: 1.85rem; margin: 40px 0 20px; }
    .article-h3 { font-size: 1.5rem; }
    .article-blockquote { padding: 30px 20px; font-size: 1.25rem; }
    
    .author-card-classic { padding: 40px 20px; }
    .author-avatar-large { width: 90px; height: 90px; }
    
    .breadcrumb-classic { font-size: 0.75rem; }
}

@media (max-width: 576px) {
    .blog-title-main { font-size: 1.85rem; }
    .blog-details-hero { padding: 60px 0 30px; }
    .featured-image-wrapper { border-radius: 12px; }
    .blog-post-article { font-size: 1.05rem; }
    
    .share-icon { width: 40px; height: 40px; font-size: 1rem; }
    .newsletter-sidebar-card { padding: 30px 20px; }
    
    .mobile-share-bar .share-icon {
        background: var(--bg-accent);
        border-color: var(--border-color);
        display: inline-flex;
    }
}
