@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

/* ==================================================
   1. المتغيرات والأساسيات
   ================================================== */
:root {
    --bg-matrix: #F3F6FD; --surface-matrix: #FFFFFF; --text-matrix: #0F172A;
    --text-muted: #64748B; --accent-matrix: #10B981; --border-matrix: rgba(0,0,0,0.06);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.04); --x-color: #000000;
    --gnews-color: #4285F4; --ease-matrix: cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --bg-matrix: #07090E; --surface-matrix: #121723; --text-matrix: #F8FAFC;
    --text-muted: #9CA3AF; --border-matrix: rgba(255,255,255,0.06);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; outline: none; }
ul, li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
li::before, li::after { display: none !important; }

body { background: var(--bg-matrix); color: var(--text-matrix); font-family: 'Tajawal', sans-serif; margin: 0; direction: rtl; line-height: 1.8; transition: background 0.3s; overflow-x: hidden; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; border-radius: 16px; }
body.no-scroll { overflow: hidden !important; }

/* ==================================================
   2. الهيدر والبحث والموبايل بانل
   ================================================== */
.main-header-2030 { background: var(--surface-matrix); border-bottom: 1px solid var(--border-matrix); height: 85px; position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; backdrop-filter: blur(15px); }
.header-container-fluid { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.matrix-logo-img { height: 42px !important; width: auto !important; display: block; }
.header-nav-center-2030 { flex: 1; display: flex; justify-content: center; }
.elite-nav-links { display: flex; gap: 30px; }
.elite-nav-links li a { font-weight: 800; padding: 10px; color: var(--text-matrix); font-size: 16px; transition: 0.3s; }
.elite-nav-links li a:hover { color: var(--accent-matrix); }

.header-tools-left-2030 { display: flex; gap: 12px; align-items: center; }
.tool-action-btn { background: var(--bg-matrix); border: 1px solid var(--border-matrix); color: var(--text-matrix); width: 45px; height: 45px; border-radius: 12px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.3s var(--ease-matrix); }
.tool-action-btn:hover { background: var(--accent-matrix); color: #fff; transform: translateY(-3px); }

.elite-search-overlay { position: fixed; inset: 0; width: 100%; height: 100vh; background: rgba(11, 15, 25, 0.96); backdrop-filter: blur(20px); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.4s var(--ease-matrix); }
.elite-search-overlay.open { opacity: 1; visibility: visible; }
.search-inner-2030 { width: 100%; max-width: 800px; position: relative; padding: 0 25px; }
.search-form-2030 { display: flex; width: 100%; position: relative; }
.search-field-2030 { width: 100%; height: 80px; border-radius: 40px; border: 2px solid var(--accent-matrix); background: transparent; color: #fff; font-size: 24px; padding: 0 35px 0 85px; font-family: 'Tajawal'; }
.search-btn-2030 { position: absolute; left: 12px; top: 12px; height: 56px; width: 56px; border-radius: 50%; background: var(--accent-matrix); border: none; font-size: 22px; cursor: pointer; color: #fff; }
.close-search-2030 { position: absolute; top: -70px; left: 20px; background: none; border: none; color: #fff; font-size: 55px; cursor: pointer; }

.side-panel-2030 { position: fixed; top: 0; right: -320px; width: 310px; height: 100vh; background: var(--surface-matrix); z-index: 2000; transition: 0.4s var(--ease-matrix); box-shadow: -15px 0 40px rgba(0,0,0,0.15); }
.side-panel-2030.open { right: 0; }
.panel-header-matrix { padding: 30px 25px; border-bottom: 1px solid var(--border-matrix); display: flex; justify-content: space-between; align-items: center; }
.panel-logo-img { height: 38px; width: auto; }
.close-panel-2030 { font-size: 40px; background: none; border: none; cursor: pointer; color: var(--text-matrix); }
.panel-items-list li a { display: block; padding: 20px 25px; font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--border-matrix); text-align: right; }
.panel-dimmer-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; z-index: 1999; backdrop-filter: blur(5px); }

/* ==================================================
   3. سيو والمقال الرئيسي
   ================================================== */
.seo-breadcrumbs { padding: 25px 0 10px; font-size: 14px; color: var(--text-muted); font-weight: 500; }
.breadcrumbs-inner { text-align: center; }
.seo-breadcrumbs a:hover { color: var(--accent-matrix); text-decoration: underline; }
.seo-breadcrumbs .sep { margin: 0 10px; opacity: 0.4; }

/* Grid System */
.article-layout-wrapper { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin-top: 15px; align-items: start; }

.single-article { background: var(--surface-matrix); padding: 50px; border-radius: 28px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-matrix); margin-bottom: 35px; }
.single-header-center { text-align: center; margin-bottom: 45px; }
.single-title { font-size: 40px; font-weight: 900; color: var(--text-matrix); margin: 0 0 20px 0; line-height: 1.35; }
.single-meta-centered { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--text-muted); font-size: 15px; font-weight: 700; }
.meta-separator { color: var(--border-matrix); font-weight: 300; margin: 0 5px; }
.author-link { color: var(--accent-matrix); font-weight: 800; }

.single-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); margin-bottom: 40px; }
.article-body { font-size: 21px; line-height: 2.2; color: var(--text-matrix); text-align: justify; }
.article-body p { margin-bottom: 28px; }
.article-body h2, .article-body h3 { margin: 45px 0 25px; font-weight: 900; color: var(--text-matrix); padding-right: 15px; border-right: 5px solid var(--accent-matrix); }

/* ==================================================
   4. الأزرار والمقالات ذات الصلة
   ================================================== */
.modern-action-bar-2026 { display: flex; align-items: center; gap: 15px; background: var(--surface-matrix); padding: 12px 22px; border-radius: 60px; border: 1px solid var(--border-matrix); margin: 40px 0; box-shadow: var(--shadow-soft); }
.gnews-pill { flex: 1; display: flex; align-items: center; gap: 12px; background: #f1f3f4; padding: 12px 22px; border-radius: 40px; font-weight: 900; font-size: 15px; color: #3c4043; transition: 0.3s; }
.gnews-pill:hover { background: #e8eaed; transform: translateY(-2px); }
.gnews-pill img { width: 22px; height: 22px; }
.social-mini-group { display: flex; gap: 10px; }
.mini-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: 0.3s var(--ease-matrix); }
.mini-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.x-btn { background: #000; }
.fb-btn { background: #1877F2; }

.related-posts-section { background: var(--surface-matrix); padding: 40px; border-radius: 28px; border: 1px solid var(--border-matrix); margin-bottom: 35px; box-shadow: var(--shadow-soft); }
.related-title { font-size: 24px; font-weight: 900; margin-bottom: 30px; color: var(--text-matrix); padding-right: 15px; border-right: 5px solid var(--accent-matrix); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card a { display: block; background: var(--bg-matrix); border-radius: 20px; overflow: hidden; border: 1px solid var(--border-matrix); transition: 0.3s; height: 100%; }
.post-card a:hover { transform: translateY(-6px); border-color: var(--accent-matrix); box-shadow: var(--shadow-soft); }
.post-card img { width: 100%; height: 170px; object-fit: cover; transition: 0.4s; }
.card-content { padding: 18px; }
.card-content h3 { font-size: 16px; font-weight: 800; line-height: 1.5; margin: 0; color: var(--text-matrix); }

/* ==================================================
   5. القائمة الجانبية (VIP Sports Sidebar) 🔥
   ================================================== */
.article-sidebar {
    position: sticky; top: 110px; display: flex; flex-direction: column; gap: 30px;
}

/* الكارت الأساسي */
.elite-widget {
    background: var(--surface-matrix);
    border-radius: 24px;
    padding: 30px 25px;
    border: 1px solid var(--border-matrix);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

/* لمسة رياضية أعلى الكارت */
.elite-widget::before {
    content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--accent-matrix), #34e89e);
}

/* عنوان الودجت */
.widget-meta-title {
    font-size: 20px; font-weight: 900; margin: 0 0 25px 0;
    color: var(--text-matrix); display: flex; align-items: center; gap: 10px;
}
.widget-meta-title::before {
    content: ''; display: inline-block; width: 12px; height: 12px;
    border-radius: 50%; background: var(--accent-matrix);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* 🏆 أزرار الإحصائيات الفخمة */
.portal-buttons { display: flex; flex-direction: column; gap: 15px; }
.matrix-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 16px; border-radius: 16px; font-weight: 900; font-size: 16px;
    transition: all 0.4s var(--ease-matrix); position: relative; z-index: 1;
}
/* زر رئيسي (Dark / Premium) */
.matrix-btn.primary-btn {
    background: var(--text-matrix); color: var(--surface-matrix); border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.matrix-btn.primary-btn:hover {
    background: var(--accent-matrix); transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.3);
}
/* زر ثانوي (Light) */
.matrix-btn.secondary-btn {
    background: var(--bg-matrix); color: var(--text-matrix); border: 2px solid transparent;
}
.matrix-btn.secondary-btn:hover {
    background: var(--surface-matrix); border-color: var(--accent-matrix);
    color: var(--accent-matrix); transform: translateY(-5px);
}

/* 🏷️ تاجات الخبر (كبسولات متطورة) */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tags-cloud a {
    background: var(--bg-matrix); padding: 10px 18px; border-radius: 50px;
    font-size: 14px; font-weight: 800; color: var(--text-muted);
    border: 1px solid var(--border-matrix); transition: 0.3s;
}
.tags-cloud a::before { content: '#'; margin-left: 4px; opacity: 0.5; }
.tags-cloud a:hover {
    background: var(--accent-matrix); color: #fff; border-color: var(--accent-matrix);
    transform: scale(1.05); box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}

/* 🖼️ الكاريكاتير المتجاوب */
.caricature-wrapper {
    border-radius: 16px; overflow: hidden; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: 4px solid var(--bg-matrix);
}
.caricature-wrapper img { width: 100%; height: auto; display: block; transition: transform 0.5s; }
.caricature-wrapper:hover img { transform: scale(1.05); }

/* 🛡️ صندوق الموثوقية E-E-A-T (Dark Mode دائم) */
.trust-widget {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
    color: #fff; text-align: center; border: none;
}
.trust-widget::before { display: none; } /* إلغاء الخط الأخضر العلوي هنا */
.trust-icon { font-size: 45px; display: block; margin-bottom: 15px; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.trust-content h4 { font-size: 20px; font-weight: 900; margin: 0 0 12px; color: #fff; }
.trust-content p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; margin: 0; }


/* ==================================================
   6. التعليقات الاحترافية
   ================================================== */
.comments-wrapper { background: var(--surface-matrix); padding: 45px; border-radius: 28px; border: 1px solid var(--border-matrix); box-shadow: var(--shadow-soft); margin-bottom: 50px; }
.comment-reply-title { font-size: 24px; font-weight: 900; margin-bottom: 35px; display: flex; justify-content: space-between; align-items: center; }
#cancel-comment-reply-link { font-size: 14px; background: rgba(239, 68, 68, 0.1); color: #ef4444; padding: 7px 15px; border-radius: 10px; font-weight: 800; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body-inner { background: var(--bg-matrix); padding: 30px; border-radius: 24px; margin-bottom: 25px; border: 1px solid var(--border-matrix); transition: 0.3s; }
.comment-body-inner:hover { border-color: var(--accent-matrix); }
.comment-header { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.author-avatar img { width: 55px; height: 55px; border-radius: 50%; border: 3px solid var(--surface-matrix); box-shadow: var(--shadow-soft); }
.author-name { font-weight: 900; color: var(--text-matrix); font-size: 17px; margin: 0; }
.comment-date { font-size: 13px; color: var(--text-muted); }
.comment-text { font-size: 17.5px; line-height: 1.8; color: var(--text-matrix); }
.comment-actions a { display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1); color: var(--accent-matrix); padding: 8px 18px; border-radius: 12px; font-weight: 800; font-size: 14px; margin-top: 15px; }
.children { padding-right: 30px; border-right: 3px solid rgba(16, 185, 129, 0.15); margin-right: 30px; margin-top: 20px; }
.modern-comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.modern-comment-form input, .modern-comment-form textarea { width: 100%; background: var(--bg-matrix); border: 2px solid transparent; color: var(--text-matrix); padding: 20px; border-radius: 18px; font-family: 'Tajawal'; font-size: 16px; margin-bottom: 20px; transition: 0.3s; }
.modern-comment-form input:focus, .modern-comment-form textarea:focus { border-color: var(--accent-matrix); background: var(--surface-matrix); }
.submit-btn { background: var(--accent-matrix); color: #fff; border: none; padding: 18px; border-radius: 15px; font-size: 19px; font-weight: 900; width: 100%; cursor: pointer; transition: 0.3s; }

/* ==================================================
   7. الفوتر
   ================================================== */
.elite-footer-2030 { background: var(--surface-matrix); border-top: 1px solid var(--border-matrix); padding: 70px 0 30px; margin-top: 70px; }
.footer-grid-2030 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-logo img { height: 48px; margin-bottom: 20px; }
.footer-links-col h3 { font-size: 20px; font-weight: 900; margin-bottom: 25px; position: relative; padding-bottom: 12px; }
.footer-links-col h3::after { content: ''; position: absolute; right: 0; bottom: 0; width: 40px; height: 4px; background: var(--accent-matrix); border-radius: 2px; }
.footer-menu-list li a { color: var(--text-matrix); font-weight: 700; font-size: 15px; transition: 0.3s; display: block; margin-bottom: 12px; }
.footer-menu-list li a:hover { color: var(--accent-matrix); transform: translateX(-5px); }
.social-icons-wrapper { display: flex; gap: 15px; }
.social-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--bg-matrix); display: flex; justify-content: center; align-items: center; border: 1px solid var(--border-matrix); transition: 0.4s; }
.social-icon.youtube:hover { background: #FF0000; color: #fff; border-color: #FF0000; }
.footer-bottom-2030 { text-align: center; border-top: 1px solid var(--border-matrix); padding-top: 30px; font-size: 15px; opacity: 0.8; }

/* ==================================================
   8. الموبايل (إخفاء السايد بار بالكامل كخدعة SEO)
   ================================================== */
@media (max-width: 992px) {
    .hide-mobile, .seo-breadcrumbs { display: none !important; }
    
    /* الخدعة هنا: يختفي التصميم عن الزائر ويبقى في كود السورس لجوجل */
    .article-sidebar { display: none !important; }
    .article-layout-wrapper { grid-template-columns: 1fr; gap: 0; }
    
    .main-header-2030 { height: 75px; }
    .mobile-menu-toggle-btn { display: flex !important; }
    #searchTrigger { display: none !important; } 

    .single-container { padding: 0; }
    .single-article { border-radius: 0; border: none; padding: 35px 20px; margin-bottom: 0; }
    .single-title { font-size: 28px; }
    .article-body { font-size: 19.5px; }

    .modern-action-bar-2026 { margin: 25px 15px; padding: 12px 15px; border-radius: 20px; }
    .gnews-pill { padding: 10px 15px; gap: 8px; }
    .gnews-pill span { font-size: 11.5px; }
    .gnews-pill img { width: 18px; }
    .mini-btn { width: 42px; height: 42px; }

    .related-posts-section { padding: 35px 20px; border-radius: 0; border: none; border-top: 8px solid var(--bg-matrix); }
    .related-grid { display: flex; overflow-x: auto; gap: 15px; padding-bottom: 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .related-grid::-webkit-scrollbar { display: none; }
    .post-card { flex: 0 0 85%; scroll-snap-align: center; }

    .comments-wrapper { padding: 40px 20px; border-radius: 0; border: none; border-top: 8px solid var(--bg-matrix); }
    .modern-comment-form .form-row { grid-template-columns: 1fr; }
    .children { padding-right: 18px; margin-right: 15px; }
    .comment-body-inner { padding: 25px 15px; }

    .footer-grid-2030 { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-logo img { margin: 0 auto; }
    .footer-links-col h3::after { right: 0; left: 0; margin: 0 auto; }
    .social-icons-wrapper { justify-content: center; }
}