/* ===== Elzem Match Schedule - News Section v9.5 ===== */
/* تصميم احترافي مع نيون وتوهج وأنيميشن */

/* ===== قسم الأخبار في الرئيسية ===== */
.home-news-section {
    margin-top: 40px;
    padding: 28px 0;
}
.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--competition-bg, #000);
    position: relative;
}
.news-section-header::after {
    content: '';
    position: absolute;
    bottom: -3px; right: 0;
    width: 80px; height: 3px;
    background: linear-gradient(90deg, var(--neon-color, #00ffff), var(--glow-color, #ff00ff));
}
.news-section-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--team-name-color, #000);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
body.neon-on .news-section-title {
    background: linear-gradient(135deg, var(--team-name-color, #000), var(--neon-color, #00ffff));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.news-section-title i {
    color: var(--competition-bg, #000);
}
body.neon-on .news-section-title i {
    color: var(--neon-color, #00ffff);
    filter: drop-shadow(0 0 6px var(--neon-color, #00ffff));
}
.news-view-all {
    background: linear-gradient(135deg, var(--competition-bg, #000), var(--header-bg-color-2, #333));
    color: var(--competition-text, #fff) !important;
    padding: 10px 20px;
    border-radius: var(--card-radius, 12px);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--anim-speed, 0.3s) ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
body.neon-on .news-view-all {
    border: 1px solid var(--neon-color, #00ffff);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 calc(var(--neon-blur, 15px) * 0.3) var(--neon-color, #00ffff);
}
body.anim-on .news-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ===== شريط التصنيفات ===== */
.news-categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    padding: 14px;
    background: var(--card-bg, #fff);
    border-radius: var(--card-radius, 12px);
    border: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.news-cat-chip {
    padding: 8px 18px;
    border-radius: 25px;
    background: #f1f5f9;
    color: #1e293b !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all var(--anim-speed, 0.3s) ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.anim-on .news-cat-chip:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.news-cat-chip.active {
    background: linear-gradient(135deg, var(--competition-bg, #000), var(--header-bg-color-2, #333));
    color: var(--competition-text, #fff) !important;
    border-color: var(--competition-bg, #000);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
body.neon-on .news-cat-chip.active {
    border-color: var(--neon-color, #00ffff);
    box-shadow: 0 0 calc(var(--neon-blur, 15px) * 0.4) var(--neon-color, #00ffff);
}

/* ===== شبكة الأخبار ===== */
.news-grid {
    display: grid;
    gap: 20px;
}
.news-cols-3 { grid-template-columns: repeat(3, 1fr); }
.news-cols-4 { grid-template-columns: repeat(4, 1fr); }
.news-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .news-cols-5 { grid-template-columns: repeat(4, 1fr); }
    .news-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .news-cols-3, .news-cols-4, .news-cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .news-cols-3, .news-cols-4, .news-cols-5 { grid-template-columns: 1fr; }
}

/* ===== بطاقة الخبر ===== */
.news-card {
    background: var(--card-bg, #fff);
    border-radius: var(--card-radius, 16px);
    overflow: hidden;
    border: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all var(--anim-speed, 0.3s) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
body.anim-on .news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
body.neon-on .news-card:hover {
    border-color: var(--neon-color, #00ffff);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15), 0 0 calc(var(--neon-blur, 15px) * 0.6) var(--neon-color, #00ffff);
}
.news-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-color, #00ffff), var(--glow-color, #ff00ff));
    opacity: 0;
    transition: opacity var(--anim-speed, 0.3s) ease;
    z-index: 3;
}
body.anim-on .news-card:hover::before { opacity: 1; }
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.news-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
body.anim-on .news-card:hover .news-card-image img {
    transform: scale(1.12);
}
.news-card-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #94a3b8;
    font-size: 40px;
}
.news-card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.85);
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.news-card-body {
    padding: 16px 18px 18px;
}
.news-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--team-name-color, #000);
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
    transition: color var(--anim-speed, 0.3s) ease;
}
body.anim-on .news-card:hover .news-title {
    color: var(--neon-color, #00ffff);
}
.news-excerpt {
    font-size: 13px;
    color: var(--time-color, #666);
    margin: 0 0 12px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
    border-top: 1px solid var(--border-color, #e0e0e0);
    padding-top: 12px;
}
.news-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== حالة عدم وجود أخبار ===== */
.no-news {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg, #fff);
    border-radius: var(--card-radius, 16px);
    border: 2px dashed var(--border-color, #e0e0e0);
}
.no-news h3 {
    color: var(--team-name-color, #000);
    font-size: 24px;
    margin-bottom: 8px;
}
.no-news p {
    color: var(--time-color, #666);
    font-size: 14px;
}

/* ===== صفحة المقال ===== */
.article-page {
    background: var(--card-bg, #fff);
    border-radius: var(--card-radius, 16px);
    padding: 36px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
.article-page::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-color, #00ffff), var(--glow-color, #ff00ff));
}
.article-category-tag {
    display: inline-block;
    color: #fff !important;
    padding: 7px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.article-category-tag i { margin-left: 4px; }
.article-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--team-name-color, #000);
    line-height: 1.3;
    margin: 0 0 20px 0;
}
body.neon-on .article-title {
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #64748b;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    margin-bottom: 26px;
}
.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-featured-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: var(--card-radius, 16px);
    margin-bottom: 26px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-excerpt {
    font-size: 18px;
    font-weight: 600;
    color: var(--team-name-color, #000);
    line-height: 1.7;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-right: 4px solid var(--competition-bg, #000);
    border-radius: var(--card-radius, 16px);
    margin-bottom: 28px;
}
.article-content {
    font-size: 16px;
    line-height: 2;
    color: var(--time-color, #333);
}
.article-content p { margin-bottom: 18px; }
.article-content h2, .article-content h3, .article-content h4 {
    color: var(--team-name-color, #000);
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 700;
}
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 19px; }
.article-content h4 { font-size: 17px; }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}
.article-content a {
    color: var(--competition-bg, #1565c0);
    text-decoration: underline;
}
.article-content ul, .article-content ol {
    padding-right: 24px;
    margin-bottom: 18px;
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    border-right: 4px solid var(--competition-bg, #000);
    padding: 14px 24px;
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 10px;
    font-style: italic;
    color: #475569;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}
.article-content table th, .article-content table td {
    border: 1px solid var(--border-color, #e0e0e0);
    padding: 10px;
    text-align: right;
}
.article-content table th {
    background: #f1f5f9;
    font-weight: 700;
}

.article-tags {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color, #e0e0e0);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}
.article-tag {
    background: #f1f5f9;
    color: #1e293b !important;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--anim-speed, 0.3s) ease;
}
body.anim-on .article-tag:hover {
    background: var(--neon-color, #00ffff);
    color: #000 !important;
    transform: translateY(-2px);
}

/* ===== مقالات ذات صلة ===== */
.related-articles { margin-top: 40px; }
.related-title {
    font-size: 22px;
    color: var(--team-name-color, #000);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

/* ===== شارة مثبتة للمباراة ===== */
.pinned-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.5);
}

/* ===== عداد المشاهدات ===== */
.views-counter {
    background: rgba(220, 53, 69, 0.1);
    padding: 4px 12px !important;
    border-radius: 8px;
    color: #dc3545 !important;
}
.views-counter i { color: #dc3545 !important; }

/* ===== ترقيم الصفحات ===== */
.elzem-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 30px 0 10px;
    padding: 12px;
}
.elzem-pagination .page-link {
    padding: 9px 16px;
    border: 1px solid var(--border-color, #e0e0e0);
    background: var(--card-bg, #fff);
    color: var(--team-name-color, #333);
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: all var(--anim-speed, 0.3s) ease;
    min-width: 44px;
    text-align: center;
    display: inline-block;
}
body.anim-on .elzem-pagination .page-link:hover:not(.disabled):not(.active) {
    background: var(--competition-bg, #000);
    color: var(--competition-text, #fff) !important;
    border-color: var(--competition-bg, #000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.elzem-pagination .page-link.active {
    background: linear-gradient(135deg, var(--competition-bg, #000), var(--header-bg-color-2, #333));
    color: var(--competition-text, #fff) !important;
    border-color: var(--competition-bg, #000);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
body.neon-on .elzem-pagination .page-link.active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 calc(var(--neon-blur, 15px) * 0.4) var(--neon-color, #00ffff);
}
.elzem-pagination .page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.elzem-pagination .page-dots {
    padding: 9px 6px;
    color: #94a3b8;
}

/* ===== قائمة الأخبار ===== */
.news-list-page { min-height: 60vh; }

@media (max-width: 768px) {
    .article-page { padding: 20px; }
    .article-title { font-size: 24px; }
    .article-excerpt { font-size: 16px; padding: 14px 18px; }
    .article-content { font-size: 15px; line-height: 1.8; }
    .news-section-title { font-size: 22px; }
    .home-news-section { margin-top: 25px; padding: 18px 0; }
    .news-card-image { height: 160px; }
    .news-title { font-size: 14px; }
}

