/* Article Preview Styles */
#article-preview {
    display: none;
    position: absolute;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    padding: 0;
    z-index: 1000;
    direction: rtl;
    font-family: 'Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    font-size: 1em;
    color: #04020f;
}

.preview-content {
    padding: 16px;
}

.preview-title {
    font-family: 'Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    margin: 0 0 12px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #04020f;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.preview-text {
    margin: 0;
    line-height: 1.6;
    color: #04020f;
    text-align: justify;
}

.preview-loading,
.preview-error {
    padding: 16px;
    text-align: center;
    font-size: 14px;
}

.preview-loading {
    color: #666;
    background: #f8f9fa;
}

.preview-error {
    color: #e74c3c;
    background: #fff5f5;
}

/* Hover effect for article links */
.article-link {
    transition: color 0.2s ease;
}

.article-link:hover {
    color: #3498db;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #article-preview {
        max-width: 300px;
        font-size: 13px;
    }
    
    .preview-title {
        font-size: 14px;
    }
    
    .preview-text {
        font-size: 12px;
    }
}