/* أنماط خاصة بالمقالات */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #334155;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #475569;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content li:last-child {
    margin-bottom: 0;
}

.article-content blockquote {
    border-left: 4px solid #2dd4bf;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.article-content .reference {
    font-size: 0.875rem;
    color: #64748b;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    border-left: 4px solid #94a3b8;
}

.article-content .reference strong {
    color: #475569;
    display: block;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.article-tag {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.article-tag:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

/* تنسيقات للصور داخل المقالات */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-style: italic;
}

/* تنسيقات للجداول */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-content th {
    background-color: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.article-content td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}

.article-content tr:hover {
    background-color: #f8fafc;
}

/* تنسيقات للرموز الرياضية والعلمية */
.article-content code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #dc2626;
}

.article-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* تنسيقات للاقتباسات العلمية */
.scientific-quote {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    border: 1px solid #ccfbf1;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2.5rem 0;
    position: relative;
}

.scientific-quote::before {
    content: '"';
    font-size: 4rem;
    color: #2dd4bf;
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-family: Georgia, serif;
    opacity: 0.3;
}

/* تنسيقات للفواصل */
.article-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 3rem 0;
}

/* تنسيقات للأجهزة المحمولة */
@media (max-width: 768px) {
    .article-content {
        padding: 0 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}