/**
 * Enhanced Article Styling - Hire Programmers
 * 
 * World-class article presentation with:
 * - Clean, readable typography
 * - No dark/black backgrounds
 * - Smart internal linking styles
 * - YouTube video embeds
 * - Related articles section
 * - Mobile-first responsive design
 */

/* ============================================
   RESET & BASE STYLES - Remove any dark backgrounds
   ============================================ */
.bl-blog-single-post,
.bl-trending-post-content,
.bl-post-content,
.article-content,
.article-wrapper {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
}

/* Main content area - ensure clean white background */
main.bl-page-main {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

.bl-section {
    background: transparent !important;
}

/* ============================================
   ARTICLE CONTAINER
   ============================================ */
.article-enhanced-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

/* ============================================
   FEATURED IMAGE - Hero Style
   ============================================ */
.article-hero-image {
    position: relative;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.article-hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
}

/* ============================================
   ARTICLE HEADER
   ============================================ */
.article-header {
    padding: 30px 40px 20px;
    background: #ffffff;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 16px;
    font-family: 'Georgia', serif;
}

/* Article Meta Info */
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.article-meta-item i {
    color: #3b82f6;
    font-size: 1rem;
}

.article-category-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   ARTICLE CONTENT - Clean Typography
   ============================================ */
.article-body {
    padding: 20px 40px 40px;
    background: #ffffff;
}

.article-body p {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #374151;
    margin-bottom: 1.5rem;
    font-family: 'Georgia', serif;
}

.article-body p:first-of-type {
    font-size: 1.25rem;
    color: #1f2937;
}

/* Headings */
.article-body h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3b82f6;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 0.75rem;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.5rem;
}

/* Lists */
.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 0.75rem;
}

.article-body ul li::marker {
    color: #3b82f6;
}

/* Blockquotes */
.article-body blockquote {
    border-left: 4px solid #3b82f6;
    background: #f1f5f9;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    color: #475569;
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    margin-bottom: 0;
}

/* ============================================
   INTERNAL LINKS - Smart Hyperlinking Style
   ============================================ */
.internal-article-link {
    color: #2563eb;
    text-decoration: none;
    background: linear-gradient(180deg, transparent 60%, #dbeafe 60%);
    padding: 0 4px;
    border-radius: 2px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.internal-article-link:hover {
    background: linear-gradient(180deg, transparent 0%, #bfdbfe 0%);
    color: #1d4ed8;
}

.internal-article-link::after {
    content: ' →';
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.2s;
}

.internal-article-link:hover::after {
    opacity: 1;
}

/* External links */
.article-body a:not(.internal-article-link) {
    color: #0891b2;
    text-decoration: underline;
    text-decoration-color: #67e8f9;
    text-underline-offset: 3px;
}

.article-body a:not(.internal-article-link):hover {
    color: #0e7490;
    text-decoration-color: #0e7490;
}

/* ============================================
   YOUTUBE VIDEO EMBED
   ============================================ */
.article-video-container {
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-video-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-video-header i {
    font-size: 1.5rem;
}

.article-video-header span {
    font-weight: 600;
}

.article-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.article-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-video-caption {
    background: #f8fafc;
    padding: 15px 20px;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}

/* ============================================
   RELATED ARTICLES - Spider Web Links
   ============================================ */
.related-articles-section {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 30px 40px;
    margin-top: 40px;
    border-radius: 12px;
}

.related-articles-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-articles-section h3 i {
    color: #3b82f6;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-article-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-article-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-article-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.related-article-card .read-more {
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

/* ============================================
   SIDEBAR - More Trends
   ============================================ */
.widget.latest-news-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.widget-title h4 {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 700;
}

ul.latest-news-lists {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.latest-news-lists li {
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

ul.latest-news-lists li:hover {
    background: #f1f5f9;
    border-left-color: #3b82f6;
}

.lnl-content h6 {
    color: #334155 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.lnl-content p {
    color: #94a3b8 !important;
}

/* ============================================
   SOCIAL SHARING - Enhanced
   ============================================ */
.social-share-enhanced {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.social-share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-share-btn:hover {
    transform: scale(1.1);
}

.social-share-btn.facebook { background: #1877f2; }
.social-share-btn.twitter { background: #1da1f2; }
.social-share-btn.linkedin { background: #0a66c2; }
.social-share-btn.pinterest { background: #e60023; }
.social-share-btn.reddit { background: #ff4500; }
.social-share-btn.whatsapp { background: #25d366; }

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.article-toc-enhanced {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 25px;
    margin: 25px 0;
}

.article-toc-enhanced h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-toc-enhanced h4 i {
    color: #3b82f6;
}

.article-toc-enhanced ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc-enhanced li {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.article-toc-enhanced li:last-child {
    border-bottom: none;
}

.article-toc-enhanced a {
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.article-toc-enhanced a:hover {
    color: #3b82f6;
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.article-author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 30px 0;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .article-header,
    .article-body,
    .related-articles-section {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-body p {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-meta-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .reading-progress-bar,
    .social-share-enhanced,
    .related-articles-section,
    .widget {
        display: none !important;
    }
    
    .article-body {
        padding: 0;
    }
    
    .article-body a {
        color: #000;
    }
}

