/*
Theme Name: Atta hani news
Theme URI: https://elomda.net/
Author: Ekramy Hani
Description: قالب إخباري عصري جداً بخطوط بريميوم.
Version: 8.0
Text Domain: attahaninews
*/

:root {
    --primary: #2563eb; /* أزرق أغمق وأشيك */
    --dark: #0f172a;
    --text-color: #334155;
    --border: #e2e8f0;
    --bg-color: #f8fafc;
}

* { box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif; /* الخط الجديد العبقري */
    margin: 0; padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
}

/* ==================== الهيدر العصري الجديد ==================== */
.site-header { background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }

/* اللوجو والبحث */
.top-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #f1f5f9; max-width: 1150px; margin: 0 auto; width: 100%; }
.logo { font-size: 26px; font-weight: 800; color: var(--dark); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }

.search-icon { background: none; border: none; color: #64748b; padding: 5px; cursor: pointer; }
.search-icon svg { width: 24px; height: 24px; }

/* شريط الأقسام السحابي */
.bottom-header { max-width: 1150px; margin: 0 auto; }
.swipe-menu { 
    display: flex; 
    overflow-x: auto; 
    white-space: nowrap; 
    padding: 0 20px; 
    margin: 0; 
    list-style: none; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.swipe-menu::-webkit-scrollbar { display: none; }
.swipe-menu li { display: inline-block; }
.swipe-menu a { 
    display: block; 
    color: #64748b; 
    font-size: 15px; 
    font-weight: 700; 
    padding: 12px 10px; 
    text-decoration: none; 
    border-bottom: 3px solid transparent; /* خط سفلي بدل البوكسات المزعجة */
    transition: all 0.2s;
}
.swipe-menu .current-menu-item a, .swipe-menu a:hover { 
    color: var(--primary); 
    border-bottom: 3px solid var(--primary); 
}

/* ==================== الحاوية ==================== */
.container { max-width: 1150px; margin: 0 auto; padding: 0; }
.main-layout { display: grid; grid-template-columns: 2.5fr 1fr; gap: 30px; padding: 20px; }

/* ==================== تنسيق الخبر المريح للعين ==================== */
.single-article { background: #fff; border-radius: 0; padding: 25px 20px; border-bottom: 1px solid var(--border); }
.article-meta { color: #94a3b8; font-size: 13px; font-weight: 500; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; }
.article-title { font-size: 26px; line-height: 1.5; margin: 0 0 20px 0; color: var(--dark); font-weight: 800; }

.featured-image { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 25px; }
.article-content img { max-width: 100% !important; height: auto !important; border-radius: 6px; margin: 20px auto; display: block; }

.article-content { font-size: 19px; color: #1e293b; line-height: 2; font-weight: 500; }
.article-content p { margin-bottom: 25px; }
.article-content h2, .article-content h3 { color: var(--dark); line-height: 1.5; margin-top: 35px; margin-bottom: 15px; font-weight: 800; }
.article-content h2 { font-size: 22px; border-right: 4px solid var(--primary); padding-right: 12px; }

/* ==================== أزرار المشاركة ==================== */
.share-clean { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--border); }
.share-icon { width: 40px !important; height: 40px !important; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; text-decoration: none; }
.share-icon svg { width: 20px !important; height: 20px !important; fill: currentColor; } 
.btn-fb { background: #1877f2; } .btn-x { background: #000000; } .btn-wa { background: #25d366; } .btn-tg { background: var(--primary); } 

/* ==================== الإعلانات ==================== */
.ad-space { background: #f1f5f9; border: 1px solid #cbd5e1; padding: 10px; text-align: center; color: #94a3b8; font-size: 12px; margin: 25px 0; }

/* ==================== الموبايل ==================== */
@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; padding: 0; gap: 0; }
    .single-article { padding: 20px 15px; }
    .top-header { padding: 10px 15px; }
    .logo { font-size: 24px; }
    .article-title { font-size: 24px; }
    .article-content { font-size: 18px; line-height: 1.9; }
}