/* article.css - استایل اختصاصی برای مقاله */

#article {
    font-family: 'Tahoma', 'Arial', sans-serif;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: right;
    direction: rtl;
}

#article .meta-info {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

#article .article-title {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

#article .toc {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    border-right: 3px solid #3498db;
}

#article .toc h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 20px;
}

#article .toc ul {
    padding-right: 20px;
    list-style-type: none;
}

#article .toc li {
    margin-bottom: 8px;
    position: relative;
    padding-right: 15px;
}

#article .toc li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    right: 0;
}

#article section {
    margin-bottom: 40px;
}

#article h2 {
    color: #2980b9;
    font-size: 24px;
    margin-top: 40px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

#article h3 {
    color: #16a085;
    font-size: 20px;
    margin-top: 25px;
}

#article h4 {
    color: #27ae60;
    font-size: 18px;
}

#article .highlight-box,
#article .tip-box {
    background-color: #e8f4fc;
    padding: 15px;
    border-radius: 5px;
    border-right: 3px solid #3498db;
    margin: 20px 0;
}

#article .info-table {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

#article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

#article th, #article td {
    padding: 12px 15px;
    text-align: right;
}

#article th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

#article tr:nth-child(even) {
    background-color: #f5f5f5;
}

#article tr:hover {
    background-color: #e8f4fc;
}

#article .steps {
    background-color: #f5f5f5;
    padding: 15px 25px;
    border-radius: 5px;
    margin: 20px 0;
    counter-reset: step-counter;
}

#article .steps ol {
    padding-right: 20px;
}

#article .steps li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 25px;
    counter-increment: step-counter;
}

#article .steps li:before {
    content: counter(step-counter);
    color: #3498db;
    font-weight: bold;
    position: absolute;
    right: 0;
}

#article .faq {
    margin: 40px 0;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

#article .faq h3 {
    margin-top: 0;
    color: #2c3e50;
}

#article .faq h4 {
    color: #2980b9;
    cursor: pointer;
    padding: 10px;
    background-color: #e8f4fc;
    border-radius: 5px;
    margin-bottom: 10px;
}

#article .faq h4:hover {
    background-color: #d4e6f1;
}

#article .cta {
    background-color: #e1f5fe;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin: 30px 0;
}

#article .cta-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

#article .cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#article .article-footer {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

#article .author-box {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

#article .author-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

#article .related-articles h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#article .related-articles ul {
    padding-right: 20px;
    list-style-type: none;
}

#article .related-articles li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 15px;
}

#article .related-articles li:before {
    content: "→";
    color: #3498db;
    position: absolute;
    right: 0;
}

#article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 768px) {
    #article {
        padding: 15px;
        margin: 10px;
    }
    
    #article .article-title {
        font-size: 24px;
    }
    
    #article h2 {
        font-size: 22px;
    }
    
    #article h3 {
        font-size: 18px;
    }
    
    #article table {
        font-size: 14px;
    }
    
    #article th, #article td {
        padding: 8px 10px;
    }
}

/* انیمیشن‌ها و افکت‌ها */
#article .cta-button {
    transition: all 0.3s ease;
}

#article section {
    transition: all 0.3s ease;
}

#article a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

#article a:hover {
    color: #2980b9;
    text-decoration: underline;
}