

/* حل مشكلة النافبار يغطي المحتوى */
body {
    padding-top: 80px;
}

.articles-page {
    padding-bottom: 2rem;
    background: var(--white);
    min-height: 100vh;
}

/* الهيدر - نفس تصميم المقال الفردي */
.article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    color: var(--white);
    padding: 100px 0 60px;
    margin-top: 0;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    content: "›";
    padding: 0 0.8rem;
    font-size: 1.2rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-category {
    background: var(--accent-color);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-meta i {
    color: var(--accent-color);
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--white);
}

.article-excerpt {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
}

/* محتوى الصفحة */
.article-content-section {
    padding: 80px 0;
    background: var(--white);
}

/* بطاقات المقالات */
.article-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.article-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 2rem;
}

.article-content .article-category {
    background: linear-gradient(135deg, var(--primary-color), #1e4a8a);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.article-content .article-category:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.article-content h3 {
    margin-bottom: 1.2rem;
    line-height: 1.4;
}
.article-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /*! autoprefixer: ignore next */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.article-content h3 a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.article-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /*! autoprefixer: ignore next */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
}

.article-content .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.article-content .article-date,
.article-content .article-author,
.article-content .article-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content .article-date i,
.article-content .article-author i,
.article-content .article-views i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* حالة عدم وجود مقالات */
.no-articles {
    padding: 5rem 2rem;
    color: var(--text-light);
    text-align: center;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.no-articles i {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-articles h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.no-articles p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* الترقيم */
.pagination-nav {
    margin-top: 4rem;
}

.pagination {
    justify-content: center;
}

.page-link {
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    margin: 0 0.3rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), #1e4a8a);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-link:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* السايدبار */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.widget-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    font-size: 1.4rem;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--secondary-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(-8px);
    border-color: var(--primary-color);
}

.category-item.active {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-color: var(--primary-color);
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-item:hover .category-count {
    background: rgba(255, 255, 255, 0.3);
}

/* مقالات شائعة */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popular-article {
    display: flex;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.popular-article:hover {
    transform: translateX(-5px);
}

.popular-article:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.popular-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-article:hover .popular-image img {
    transform: scale(1.1);
}

.popular-content {
    flex: 1;
}

.popular-content h5 {
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.popular-content h5 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-content h5 a:hover {
    color: var(--primary-color);
}

.popular-views {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* تأثيرات إضافية */
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #1e4a8a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

/* أزرار خاصة */
.btn-articles {
    background: linear-gradient(135deg, var(--primary-color), #1e4a8a);
    border: none;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.btn-articles:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-outline-articles {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background: transparent;
    font-size: 1.1rem;
}

.btn-outline-articles:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .article-header {
        padding: 80px 0 40px;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-content-section {
        padding: 60px 0;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-content .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .popular-article {
        flex-direction: column;
    }
    
    .popular-image {
        width: 100%;
        height: 120px;
    }
    
    .page-link {
        padding: 0.6rem 1rem;
        margin: 0 0.2rem;
        font-size: 0.9rem;
    }
}

/* تنسيقات التقييم (لصفحة المقال الفردي) */
.article-rating-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rating-stars i {
    color: #ddd;
    margin: 0 2px;
    font-size: 1.2rem;
}

.rating-stars i.active {
    color: #ffc107;
}

.rating-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
/* تنسيقات الكلمات المفتاحية */
.tags-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--secondary-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(-5px);
    border-color: var(--primary-color);
}

.tag-item.active {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.tag-name {
    font-weight: 600;
}

.tag-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.tag-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.3);
}