/* Arabic Blog Styles */
.arabic-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.arabic-article {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-intro {
    background: linear-gradient(135deg, #e1f0ff 0%, #f0f8ff 100%);
    padding: 25px;
    border-radius: var(--radius-md);
    border-right: 4px solid var(--accent-blue);
    margin-bottom: 40px;
}

[data-theme="dark"] .article-intro {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.15) 0%, rgba(0, 113, 227, 0.05) 100%);
}

.article-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}

.table-of-contents h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 12px;
}

.table-of-contents a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s;
    display: inline-block;
}

.table-of-contents a:hover {
    transform: translateX(-5px);
    color: var(--accent-blue-hover);
}

/* Tutorial Steps */
.tutorial-step {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.tutorial-step h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    background: var(--accent-blue);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.tutorial-step p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.code-header {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
}

.code-title {
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: var(--success);
}

.code-block pre {
    margin: 0;
    padding: 25px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Explanation Box */
.explanation-box {
    background: #fff9e6;
    border-right: 4px solid #ffc107;
    padding: 25px;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

[data-theme="dark"] .explanation-box {
    background: rgba(255, 193, 7, 0.1);
}

.explanation-box h4 {
    color: #f57c00;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

[data-theme="dark"] .explanation-box h4 {
    color: #ffb74d;
}

.explanation-box ul {
    list-style: none;
    padding: 0;
}

.explanation-box li {
    padding: 10px 0;
    padding-right: 25px;
    position: relative;
    color: #5d4037;
    line-height: 1.6;
}

[data-theme="dark"] .explanation-box li {
    color: var(--text-secondary);
}

.explanation-box li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Success Box */
.success-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-right: 4px solid var(--success);
    padding: 25px;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

[data-theme="dark"] .success-box {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.15) 0%, rgba(52, 199, 89, 0.05) 100%);
}

.success-box h4 {
    color: #2e7d32;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

[data-theme="dark"] .success-box h4 {
    color: #81c784;
}

.success-box p {
    color: #1b5e20;
    margin: 0;
    font-size: 1.05rem;
}

[data-theme="dark"] .success-box p {
    color: var(--text-secondary);
}

/* Tips Box */
.tips-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-right: 4px solid #2196f3;
    padding: 25px;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

[data-theme="dark"] .tips-box {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.05) 100%);
}

.tips-box h4 {
    color: #1565c0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

[data-theme="dark"] .tips-box h4 {
    color: #64b5f6;
}

.tips-box ul {
    list-style: none;
    padding: 0;
}

.tips-box li {
    padding: 10px 0;
    padding-right: 25px;
    position: relative;
    color: #0d47a1;
    line-height: 1.6;
}

[data-theme="dark"] .tips-box li {
    color: var(--text-secondary);
}

.tips-box li::before {
    content: "💡";
    position: absolute;
    right: 0;
    font-size: 1.1rem;
}

/* Article Footer */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--bg-light);
}

.share-section h4 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* Responsive */
@media (max-width: 768px) {
    .arabic-container {
        padding: 100px 15px 40px;
    }
    
    .arabic-article {
        padding: 30px 20px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .tutorial-step h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .code-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .code-block pre {
        padding: 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
