/**
 * Post Content Enhancements - تحسينات محتوى المقال
 * @package Lahzat_News
 * @version 1.0
 */

/* ========================================
   🏷️ الوسوم (Tags) - 4 أشكال مختلفة
   ======================================== */

/* قاعدة مشتركة */
.post-tags-section {
    margin: 30px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    width: 100%;
}

.post-tags-section .tags-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    padding: 0 0 15px 0;
    border-bottom: 3px solid #00A859;
    text-align: right;
    width: 100%;
    display: block;
    position: relative;
}

.post-tags-section .tags-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 30%;
    height: 3px;
    background: rgba(0, 168, 89, 0.3);
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    direction: rtl;
}

.tag-item {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Style 1: كلاسيكي - خلفية ملونة وحواف دائرية */
.tags-style1 .tag-item {
    background: linear-gradient(135deg, #00A859, #00c46e);
    color: #fff;
    border-radius: 25px;
}

.tags-style1 .tag-item:hover {
    background: linear-gradient(135deg, #008f4a, #00A859);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 89, 0.3);
}

/* Style 2: بوردر فقط - بدون خلفية */
.tags-style2 .tag-item {
    background: transparent;
    color: #00A859;
    border: 2px solid #00A859;
    border-radius: 8px;
}

.tags-style2 .tag-item:hover {
    background: #00A859;
    color: #fff;
    transform: scale(1.05);
}

/* Style 3: جراديانت - خلفية متدرجة ملونة */
.tags-style3 .tag-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.tags-style3 .tag-item:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

/* Style 4: Minimal - بسيط مع خط فاصل */
.tags-style4 .tag-item {
    background: transparent;
    color: #333;
    border-bottom: 2px solid #00A859;
    border-radius: 0;
    padding: 6px 12px;
}

.tags-style4 .tag-item:hover {
    color: #00A859;
    border-bottom-width: 3px;
    transform: translateY(-1px);
}

/* ========================================
   🔗 الروابط في المقال - 4 أشكال مختلفة
   ======================================== */

/* Style 1: تحته خط - رابط أزرق مع خط عند التمرير */
.post-content.link-style1 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title) {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content.link-style1 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title):hover {
    color: #004499;
    border-bottom-color: #004499;
}

/* Style 2: خلفية ملونة - رابط بخلفية خضراء فاتحة */
.post-content.link-style2 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title) {
    color: #00A859;
    background: rgba(0, 168, 89, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-content.link-style2 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title):hover {
    background: rgba(0, 168, 89, 0.2);
    transform: translateY(-1px);
}

/* Style 3: بوردر سفلي - خط سميك ملون */
.post-content.link-style3 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title) {
    color: #333;
    text-decoration: none;
    border-bottom: 3px solid #00A859;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.post-content.link-style3 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title):hover {
    color: #00A859;
    border-bottom-color: #667eea;
}

/* Style 4: مع أيقونة - سهم خارجي */
.post-content.link-style4 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title) {
    color: #00A859;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.post-content.link-style4 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title)::after {
    content: ' ↗';
    font-size: 14px;
    transition: all 0.3s ease;
}

.post-content.link-style4 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title):hover {
    color: #004499;
}

.post-content.link-style4 a:not(.share-btn):not(.tag-item):not(.google-news-btn-post):not(.item-title):hover::after {
    transform: translateX(-3px) translateY(-3px);
}

/* ========================================
   📝 العناوين الفرعية (H2, H3) - 4 أشكال مختلفة
   ======================================== */

/* Style 1: بوردر جانبي - خط ملون على الجانب */
.post-content.heading-style1 h2,
.post-content.heading-style1 h3 {
    border-right: 5px solid #00A859;
    padding-right: 15px;
    padding: 12px 0 12px 15px;
    margin: 25px 0 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.post-content.heading-style1 h2 {
    font-size: 24px;
    border-right-color: #00A859;
}

.post-content.heading-style1 h3 {
    font-size: 20px;
    border-right-color: #667eea;
}

/* Style 2: خلفية كاملة - عنوان بخلفية ملونة */
.post-content.heading-style2 h2,
.post-content.heading-style2 h3 {
    background: linear-gradient(135deg, #00A859, #00c46e);
    color: #fff;
    padding: 15px 20px;
    margin: 25px 0 15px;
    border-radius: 8px;
    font-weight: 700;
}

.post-content.heading-style2 h2 {
    font-size: 24px;
}

.post-content.heading-style2 h3 {
    font-size: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Style 3: خط سفلي - عنوان مع خط ملون تحته */
.post-content.heading-style3 h2,
.post-content.heading-style3 h3 {
    padding-bottom: 12px;
    margin: 25px 0 15px;
    border-bottom: 3px solid #00A859;
    color: #1a1a1a;
    font-weight: 700;
}

.post-content.heading-style3 h2 {
    font-size: 24px;
}

.post-content.heading-style3 h3 {
    font-size: 20px;
    border-bottom-color: #667eea;
}

/* Style 4: مع أيقونة - عنوان مع أيقونة قبله */
.post-content.heading-style4 h2,
.post-content.heading-style4 h3 {
    padding: 12px 0;
    margin: 25px 0 15px;
    color: #1a1a1a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-content.heading-style4 h2::before {
    content: '📌';
    font-size: 24px;
}

.post-content.heading-style4 h3::before {
    content: '✨';
    font-size: 20px;
}

.post-content.heading-style4 h2 {
    font-size: 24px;
}

.post-content.heading-style4 h3 {
    font-size: 20px;
}

/* ========================================
   Responsive - استجابة للموبايل
   ======================================== */

@media (max-width: 768px) {
    .post-tags-section {
        padding: 0;
    }
    
    .post-tags-section .tags-title {
        font-size: 18px;
        text-align: right;
    }
    
    .tag-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .post-content.heading-style1 h2,
    .post-content.heading-style2 h2,
    .post-content.heading-style3 h2,
    .post-content.heading-style4 h2 {
        font-size: 20px;
    }
    
    .post-content.heading-style1 h3,
    .post-content.heading-style2 h3,
    .post-content.heading-style3 h3,
    .post-content.heading-style4 h3 {
        font-size: 18px;
    }
}

