/* 
   BLOG DETAIL UI ENHANCEMENTS - CLEAN & PROFESSIONAL 
*/

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--highlight);
    /* Highlights use the blue accent */
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Blog Layout Grid */
.blog-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .blog-layout-grid {
        grid-template-columns: 1fr 320px;
        /* Content + Sidebar */
    }
}

/* Typography Enhancements */
.drop-cap-wrapper::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding: 0.1em 0.1em 0 0;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-right: 0.5rem;
}

.blog-main-content .content-body h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.blog-main-content .content-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.blog-main-content .content-body p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #334155;
}

.blog-main-content .content-body ul,
.blog-main-content .content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-main-content .content-body li {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: #334155;
}

.blog-main-content .content-body blockquote {
    border-left: 4px solid var(--highlight);
    background: #f8fafc;
    padding: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Author Bio - Clean */
.author-bio {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(to right, #f8fafc, white);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    margin-top: 4rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
}

.author-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.author-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* Sidebar & Sticky Widget */
.blog-sidebar {
    margin-top: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
    transition: box-shadow 0.2s;
}

.sidebar-widget:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
}

.widget-title {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-gray);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

/* Share Links */
.share-links-vertical {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .share-links-vertical {
        flex-direction: column;
    }
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-gray);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--highlight);
    color: var(--highlight);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.share-btn.whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.share-btn.email:hover {
    color: #EA4335;
    border-color: #EA4335;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.2);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--primary);
    color: white;
    border: none;
    background: linear-gradient(135deg, var(--primary), #1e3a8a);
}

.newsletter-widget .widget-title {
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.newsletter-widget .text-sm {
    color: blue;
    /* Changed from text-gray to blue-100/white mixture for visibility */
    color: rgba(255, 255, 255, 0.85);
}

.form-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid white;
    color: #333;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.form-input:focus {
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-input::placeholder {
    color: #666;
}

.newsletter-widget .btn {
    background: white !important;
    color: var(--primary) !important;
    border: none !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.newsletter-widget .btn:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Share Links */
.share-links-vertical {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .share-links-vertical {
        flex-direction: row;
        /* Changed to row for better look in sidebar */
        justify-content: space-between;
    }
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    /* Slightly larger */
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    /* Thicker border */
    background: white;
    color: var(--text-gray);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    padding-left: 12px;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--primary);
    border-left-color: var(--highlight);
    background: linear-gradient(to right, rgba(14, 165, 233, 0.05), transparent);
}

/* Community Widget */
.community-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.community-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid transparent;
    color: white !important;
    /* Force white text */
}

.community-btn span {
    flex: 1;
}

/* YouTube */
.community-btn.youtube {
    background: #FF0000;
    border-color: #FF0000;
}

.community-btn.youtube:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

/* Facebook Group */
.community-btn.facebook {
    background: #1877F2;
    border-color: #1877F2;
}

.community-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

/* WhatsApp Community */
.community-btn.whatsapp-group {
    background: #25D366;
    border-color: #25D366;
}

.community-btn.whatsapp-group:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}