/* Typography Improvements */
.article-title {
    font-family: 'Georgia', serif;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.article-body {
    line-height: 1.6;
    font-size: 16px;
    color: #34495e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Heading Styles */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-body h1 {
    font-size: 1.75rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.25rem;
}

.article-body h2 {
    font-size: 1.5rem;
    color: #34495e;
}

.article-body h3 {
    font-size: 1.375rem;
    color: #34495e;
}

.article-body h4 {
    font-size: 1.25rem;
    color: #34495e;
}

.article-body h5 {
    font-size: 1.125rem;
    color: #34495e;
}

.article-body h6 {
    font-size: 1rem;
    color: #34495e;
}

/* Paragraph Improvements */
.article-body p {
    font-size: 16px;
    margin-bottom: 1rem;
    text-align: justify;
    text-justify: inter-word;
}

/* List Improvements */
.article-body ul,
.article-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

/* Quote Styles */
.article-body blockquote {
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Code Styles */
.article-body code {
    background: #f1f2f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #e74c3c;
}

.article-body pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Line break improvements */
.article-body br {
    display: block;
    content: "";
    margin: 0.25rem 0;
    line-height: 1;
}

/* Image improvements */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    display: block;
}

/* Featured Image */
.featured-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
}

.featured-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Article Meta Styling */
.article-meta {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Sidebar Improvements */
.sidebar-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.related-article:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.5rem;
    transition: all 0.3s ease;
}

/* Share Section Improvements */
.article-share-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-share-section h5 {
    color: white !important;
}

.article-share-section p {
    color: rgba(255, 255, 255, 0.8);
}

/* Social Media Buttons */
.btn-facebook {
    background: #3b5998;
    color: white;
    border: none;
}

.btn-facebook:hover {
    background: #2d4373;
    color: white;
    transform: translateY(-2px);
}

.btn-twitter {
    background: #1da1f2;
    color: white;
    border: none;
}

.btn-twitter:hover {
    background: #1a91da;
    color: white;
    transform: translateY(-2px);
}

.btn-linkedin {
    background: #0077b5;
    color: white;
    border: none;
}

.btn-linkedin:hover {
    background: #005885;
    color: white;
    transform: translateY(-2px);
}

.btn-copy {
    background: #6c757d;
    color: white;
    border: none;
}

.btn-copy:hover {
    background: #545b62;
    color: white;
    transform: translateY(-2px);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hover Effects */
.hover-link:hover {
    color: #3498db !important;
    transition: color 0.3s ease;
}

.hover-shadow-sm:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Sticky sidebar for desktop */
@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 2rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 15px;
    }

    .article-body h1 {
        font-size: 1.5rem;
    }

    .article-body h2 {
        font-size: 1.375rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 1rem !important;
    }

    .sidebar {
        margin-top: 3rem;
    }

    .article-share-section {
        padding: 1.5rem;
    }

    .article-share-section .btn span {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .article-share-section {
        padding: 1rem;
    }

    .article-share-section .d-flex.gap-2 {
        justify-content: center;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body p {
        text-align: left;
    }
}

/* Print Styles */
@media print {

    .sidebar,
    .article-share-section,
    .breadcrumb {
        display: none !important;
    }

    .article-body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
}