/* Article Content Styles - SEO/GEO Optimized */

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #e5e7eb;
}

/* Headings - SEO Optimized */
.article-content h2.article-heading-2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.3;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    padding-bottom: 0.5rem;
    scroll-margin-top: 100px;
}

.article-content h3.article-heading-3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #f3f4f6;
    line-height: 1.4;
    scroll-margin-top: 100px;
}

.article-content h4.article-heading-4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
    line-height: 1.4;
}

/* Paragraphs */
.article-content p.article-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Lists */
.article-content ul.article-list,
.article-content ol.article-list-ordered {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content ul.article-list li,
.article-content ol.article-list-ordered li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content ul.article-list li::marker {
    color: #3b82f6;
}

.article-content ol.article-list-ordered li::marker {
    color: #3b82f6;
    font-weight: 600;
}

/* Code Blocks */
.article-content code {
    background-color: rgba(55, 65, 81, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: 'Courier New', Courier, monospace;
    color: #fbbf24;
}

.article-content pre.code-block {
    background-color: #1f2937;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.article-content pre.code-block code {
    background: none;
    padding: 0;
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tables */
.article-content table.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-content table.article-table thead {
    background-color: rgba(59, 130, 246, 0.1);
}

.article-content table.article-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.article-content table.article-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
    color: #d1d5db;
}

.article-content table.article-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Links */
.article-content a {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.article-content a:hover {
    color: #60a5fa;
    text-decoration-color: rgba(96, 165, 250, 0.6);
}

/* Strong/Bold */
.article-content strong {
    font-weight: 700;
    color: #ffffff;
}

/* Emphasis/Italic */
.article-content em {
    font-style: italic;
    color: #f3f4f6;
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #9ca3af;
}

/* Horizontal Rules */
.article-content hr {
    border: none;
    border-top: 2px solid rgba(75, 85, 99, 0.3);
    margin: 3rem 0;
}

/* Table of Contents Anchor Links */
.article-content h2[id],
.article-content h3[id] {
    position: relative;
}

.article-content h2[id]:hover::before,
.article-content h3[id]:hover::before {
    content: '#';
    position: absolute;
    left: -1.5rem;
    color: #3b82f6;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
    }
    
    .article-content h2.article-heading-2 {
        font-size: 1.75rem;
        margin-top: 2rem;
    }
    
    .article-content h3.article-heading-3 {
        font-size: 1.35rem;
        margin-top: 1.75rem;
    }
    
    .article-content h4.article-heading-4 {
        font-size: 1.15rem;
    }
    
    .article-content pre.code-block {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .article-content table.article-table {
        font-size: 0.9rem;
    }
    
    .article-content table.article-table th,
    .article-content table.article-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .article-content {
        color: #000;
    }
    
    .article-content h2.article-heading-2,
    .article-content h3.article-heading-3,
    .article-content h4.article-heading-4 {
        color: #000;
        page-break-after: avoid;
    }
    
    .article-content pre.code-block {
        background-color: #f5f5f5;
        border: 1px solid #ddd;
    }
    
    .article-content a {
        color: #0066cc;
        text-decoration: underline;
    }
}

/* Accessibility */
.article-content :focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Selection */
.article-content ::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}
