/**
 * Custom Typography Styles for Single Post Content
 * تنسيق مخصص للعناوين والروابط داخل محتوى المقال
 */

/* ===== العناوين - النموذج الأول (الكلاسيكي) ===== */
.single-post .entry-content h1.model1,
.single-post .entry-content h2.model1,
.single-post .entry-content h3.model1,
.single-post .entry-content h4.model1,
.single-post .entry-content h5.model1,
.single-post .entry-content h6.model1 {
    color: var(--headings-color, #2c3e50);
    font-weight: 600;
    line-height: 1.4;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
    transition: all 0.3s ease;
}

.single-post .entry-content h1.model1 {
    font-size: 2.2em;
    border-bottom: 3px solid #3498db;
}

.single-post .entry-content h2.model1 {
    font-size: 1.8em;
    border-bottom: 2px solid #3498db;
}

.single-post .entry-content h3.model1 {
    font-size: 1.5em;
    border-bottom: 1px solid #3498db;
}

.single-post .entry-content h4.model1,
.single-post .entry-content h5.model1,
.single-post .entry-content h6.model1 {
    font-size: 1.3em;
    border-bottom: 1px solid #3498db;
}

/* ===== العناوين - النموذج الثاني (العصري) ===== */
.single-post .entry-content h1.model2,
.single-post .entry-content h2.model2,
.single-post .entry-content h3.model2,
.single-post .entry-content h4.model2,
.single-post .entry-content h5.model2,
.single-post .entry-content h6.model2 {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.4;
    margin: 25px 0 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.single-post .entry-content h1.model2 {
    font-size: 2.2em;
    padding: 20px 25px;
}

.single-post .entry-content h2.model2 {
    font-size: 1.8em;
    padding: 18px 22px;
}

.single-post .entry-content h3.model2 {
    font-size: 1.5em;
    padding: 15px 20px;
}

.single-post .entry-content h4.model2,
.single-post .entry-content h5.model2,
.single-post .entry-content h6.model2 {
    font-size: 1.3em;
    padding: 12px 18px;
}

.single-post .entry-content h1.model2:hover,
.single-post .entry-content h2.model2:hover,
.single-post .entry-content h3.model2:hover,
.single-post .entry-content h4.model2:hover,
.single-post .entry-content h5.model2:hover,
.single-post .entry-content h6.model2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== العناوين - النموذج الثالث (المميز) ===== */
.single-post .entry-content h1.model3,
.single-post .entry-content h2.model3,
.single-post .entry-content h3.model3,
.single-post .entry-content h4.model3,
.single-post .entry-content h5.model3,
.single-post .entry-content h6.model3 {
    color: var(--headings-color, #2c3e50);
    font-weight: 700;
    line-height: 1.4;
    margin: 30px 0 20px 0;
    padding: 20px 25px;
    position: relative;
    background: linear-gradient(45deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid #3498db;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.single-post .entry-content h1.model3 {
    font-size: 2.4em;
    border-left: 8px solid #e74c3c;
}

.single-post .entry-content h2.model3 {
    font-size: 2em;
    border-left: 6px solid #f39c12;
}

.single-post .entry-content h3.model3 {
    font-size: 1.6em;
    border-left: 5px solid #3498db;
}

.single-post .entry-content h4.model3,
.single-post .entry-content h5.model3,
.single-post .entry-content h6.model3 {
    font-size: 1.4em;
    border-left: 4px solid #9b59b6;
}

.single-post .entry-content h1.model3::before,
.single-post .entry-content h2.model3::before,
.single-post .entry-content h3.model3::before,
.single-post .entry-content h4.model3::before,
.single-post .entry-content h5.model3::before,
.single-post .entry-content h6.model3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1) 0%, rgba(231, 76, 60, 0.1) 100%);
    transition: width 0.4s ease;
    border-radius: 0 10px 10px 0;
}

.single-post .entry-content h1.model3:hover::before,
.single-post .entry-content h2.model3:hover::before,
.single-post .entry-content h3.model3:hover::before,
.single-post .entry-content h4.model3:hover::before,
.single-post .entry-content h5.model3:hover::before,
.single-post .entry-content h6.model3:hover::before {
    width: 100%;
}

.single-post .entry-content h1.model3:hover,
.single-post .entry-content h2.model3:hover,
.single-post .entry-content h3.model3:hover,
.single-post .entry-content h4.model3:hover,
.single-post .entry-content h5.model3:hover,
.single-post .entry-content h6.model3:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ===== الروابط - النموذج الأول (البسيط) ===== */
.single-post .entry-content a.model1 {
    color: var(--links-color, #3498db);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.single-post .entry-content a.model1:hover {
    color: var(--links-hover-color, #2980b9);
    border-bottom: 1px solid var(--links-hover-color, #2980b9);
    text-decoration: none;
}

/* ===== الروابط - النموذج الثاني (المميز) ===== */
.single-post .entry-content a.model2 {
    color: #ffffff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.single-post .entry-content a.model2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.single-post .entry-content a.model2:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.single-post .entry-content a.model2:hover::before {
    left: 100%;
}

/* ===== الروابط - النموذج الثالث (المتقدم) ===== */
.single-post .entry-content a.model3 {
    color: var(--links-color, #3498db);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 4px 8px;
    transition: all 0.4s ease;
    background: linear-gradient(45deg, transparent 30%, rgba(52, 152, 219, 0.1) 50%, transparent 70%);
    background-size: 200% 100%;
    background-position: 100% 0;
    border-radius: 4px;
}

.single-post .entry-content a.model3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12);
    transition: width 0.4s ease;
}

.single-post .entry-content a.model3::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.single-post .entry-content a.model3:hover {
    color: var(--links-hover-color, #2980b9);
    text-decoration: none;
    background-position: 0 0;
}

.single-post .entry-content a.model3:hover::before {
    width: 100%;
}

.single-post .entry-content a.model3:hover::after {
    width: 100%;
    height: 100%;
}

/* ===== التجاوب مع الشاشات المختلفة ===== */
@media (max-width: 768px) {
    .single-post .entry-content h1.model1,
    .single-post .entry-content h1.model2,
    .single-post .entry-content h1.model3 {
        font-size: 1.8em;
    }
    
    .single-post .entry-content h2.model1,
    .single-post .entry-content h2.model2,
    .single-post .entry-content h2.model3 {
        font-size: 1.5em;
    }
    
    .single-post .entry-content h3.model1,
    .single-post .entry-content h3.model2,
    .single-post .entry-content h3.model3 {
        font-size: 1.3em;
    }
    
    .single-post .entry-content h4.model1,
    .single-post .entry-content h4.model2,
    .single-post .entry-content h4.model3,
    .single-post .entry-content h5.model1,
    .single-post .entry-content h5.model2,
    .single-post .entry-content h5.model3,
    .single-post .entry-content h6.model1,
    .single-post .entry-content h6.model2,
    .single-post .entry-content h6.model3 {
        font-size: 1.2em;
    }
    
    .single-post .entry-content h1.model2,
    .single-post .entry-content h2.model2,
    .single-post .entry-content h3.model2,
    .single-post .entry-content h4.model2,
    .single-post .entry-content h5.model2,
    .single-post .entry-content h6.model2 {
        padding: 12px 16px;
    }
    
    .single-post .entry-content h1.model3,
    .single-post .entry-content h2.model3,
    .single-post .entry-content h3.model3,
    .single-post .entry-content h4.model3,
    .single-post .entry-content h5.model3,
    .single-post .entry-content h6.model3 {
        padding: 15px 18px;
    }
}

/* ===== متغيرات CSS للتحكم في الألوان ===== */
:root {
    --headings-color: #2c3e50;
    --links-color: #3498db;
    --links-hover-color: #2980b9;
}

/* ===== تطبيق الألوان المخصصة ===== */
.single-post .entry-content h1.model1,
.single-post .entry-content h2.model1,
.single-post .entry-content h3.model1,
.single-post .entry-content h4.model1,
.single-post .entry-content h5.model1,
.single-post .entry-content h6.model1,
.single-post .entry-content h1.model3,
.single-post .entry-content h2.model3,
.single-post .entry-content h3.model3,
.single-post .entry-content h4.model3,
.single-post .entry-content h5.model3,
.single-post .entry-content h6.model3 {
    color: var(--headings-color, #2c3e50);
}

.single-post .entry-content a.model1,
.single-post .entry-content a.model3 {
    color: var(--links-color, #3498db);
}

.single-post .entry-content a.model1:hover,
.single-post .entry-content a.model3:hover {
    color: var(--links-hover-color, #2980b9);
}

