/*
Theme Name: زحل - Zuhal
Theme URI: https://zuhalpost.com
Author: مبرمج زحل
Description: قالب إخباري احترافي، متطور، سريع كالبرق، مستوحى من أفضل ميزات قوالب المجلات العالمية، ومبني بأكواد نظيفة متوافقة بالكامل مع محركات البحث (SEO).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zuhal
*/

/* ==========================================================================
   1. إعادة التعيين والتنسيقات العامة (Reset & General Styles)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9fb;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff2c55; /* لون الأكشن المثير */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.zuhal-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. الشريط العلوي والأخبار العاجلة (Top Bar & Breaking News)
   ========================================================================== */
.top-nav-bar {
    background-color: #11151c;
    color: #fff;
    font-size: 13px;
    border-bottom: 1px solid #222;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    flex-grow: 1;
}

.current-date {
    color: #aaa;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.current-date i {
    font-size: 16px;
    color: #ff2c55;
}

/* شريط عاجل الذكي */
.breaking-news-ticker {
    display: flex;
    align-items: center;
    background-color: #1a1f2c;
    border-radius: 4px;
    overflow: hidden;
    height: 30px;
    flex-grow: 1;
    max-width: 700px;
}

.ticker-title {
    background-color: #ff2c55;
    color: #fff;
    padding: 0 15px;
    font-weight: bold;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
}

.ticker-list {
    list-style: none;
    margin: 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
    width: 100%;
}

.ticker-list li {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: tickerFade 6s infinite;
}

.ticker-list li a {
    color: #eee;
    font-weight: 500;
}

.ticker-list li a:hover {
    color: #ff2c55;
}

@keyframes tickerFade {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-social-icons {
    display: flex;
    gap: 12px;
}

.top-social-icons .social-icon {
    color: #ccc;
    font-size: 16px;
    transition: color 0.2s;
}

.top-social-icons .social-icon:hover {
    color: #fff;
}

/* ==========================================================================
   3. منطقة الشعار والإعلان الهيدر (Header Main Area)
   ========================================================================== */
header.site-header {
    background-color: #fff;
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-main-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* حاوية الشعار الديناميكية والآمنة لقالب زحل */
.site-branding {
    display: inline-block;
    flex-shrink: 0;
}

.site-branding .site-title a {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
}

.site-branding .site-description {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

/* بنر الإعلانات المتناسق */
.header-ads-area {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.mock-ad-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================================================
   4. شريط القائمة الرئيسية (Main Navigation Bar)
   ========================================================================== */
.main-navigation {
    background-color: #0f172a; /* اللون النيلي الداكن الفخم */
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.navigation-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
}

/* تنسيق عناصر القائمة المجرّدة */
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-menu > li {
    position: relative;
    height: 100%;
}

.nav-menu > li > a {
    color: #f8fafc;
    font-weight: 700;
    font-size: 15px;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a {
    color: #ff2c55;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom-color: #ff2c55;
}

/* الأزرار المساعدة (البحث والمود الليلي) */
.nav-buttons-right {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.nav-buttons-right button {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 18px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-buttons-right button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ==========================================================================
   5. هيكل المحتوى العام والتجاوب (Layout & Responsiveness)
   ========================================================================== */
.site-content {
    padding: 40px 0;
}

@media (max-width: 992px) {
    .header-main-area {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-ads-area {
        display: none; /* إخفاء بنر الإعلان الكبير في الشاشات الصغيرة لتجنب تشويه التنسيق */
    }
    .top-bar-inner {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        gap: 10px;
    }
}
/* ==========================================================================
   6. شبكة الأخبار المميزة (Featured News Grid Styles)
   ========================================================================== */
.zuhal-featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.featured-main-post {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: 6px;
}

.featured-sub-posts-wrap {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    height: 420px;
}

.featured-sub-post {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.featured-post-link {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

.featured-post-link:hover .featured-img {
    transform: scale(1.05);
}

.featured-post-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 30px 20px 20px;
    color: #fff;
}

.featured-post-cat a {
    background-color: #ff2c55;
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    margin-bottom: 10px;
    display: inline-block;
}

.featured-post-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #fff;
}

.featured-post-meta {
    font-size: 12px;
    color: #cbd5e1;
}

.featured-post-overlay-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 15px;
    color: #fff;
}

.featured-sub-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

.featured-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1e293b;
}

/* ==========================================================================
   7. هيكل التخطيط والمقالات والودجات (Main Layout & Cards)
   ========================================================================== */
.zuhal-main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.block-title {
    font-size: 18px;
    font-weight: 800;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.block-title span {
    border-bottom: 2px solid #ff2c55;
    padding-bottom: 10px;
    margin-left: -2px;
}

.zuhal-posts-loop {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zuhal-news-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #edf2f7;
    display: flex;
    gap: 20px;
    padding: 15px;
    transition: transform 0.3s;
}

.zuhal-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.news-card-thumbnail {
    width: 220px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.news-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-cat a {
    color: #ff2c55;
    font-size: 12px;
    font-weight: bold;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 5px 0 8px;
}

.news-card-title a {
    color: #0f172a;
}

.news-card-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.news-card-meta i {
    color: #94a3b8;
}

.news-card-excerpt {
    font-size: 14px;
    color: #475569;
}

/* الودجات والعمود الجانبي */
.zuhal-sidebar-area .widget {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
    margin-bottom: 25px;
}

.zuhal-sidebar-area .widget-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff2c55;
    padding-bottom: 5px;
    display: inline-block;
}

/* التجاوب للشاشات الصغيرة */
@media (max-width: 768px) {
    .zuhal-featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-sub-posts-wrap {
        height: auto;
        grid-template-rows: repeat(3, 120px);
    }
    .zuhal-main-layout {
        grid-template-columns: 1fr;
    }
    .zuhal-news-card {
        flex-direction: column;
    }
    .news-card-thumbnail {
        width: 100%;
        height: 200px;
    }
}
/* ==========================================================================
   8. تنسيقات تذييل الموقع (Footer & Copyright Bar Styles)
   ========================================================================== */
footer.site-footer {
    background-color: #11151c; /* الرمادي/الأسود الإخباري الفخم المتناسق مع شريط عاجل */
    color: #cbd5e1;
    margin-top: 5px;
    border-top: 4px solid #ff2c55; /* شريط علوي بلون الأكشن الرئيسي لإعطاء لمسة جمالية */
}

.footer-widgets-wrap {
    padding: 50px 0 30px;
    border-bottom: 1px solid #1e293b;
}

.footer-widgets-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column .widget h4.footer-widget-title,
.footer-column .footer-widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff2c55;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    color: #94a3b8;
}

.footer-links-fallback {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-fallback li {
    margin-bottom: 10px;
}

.footer-links-fallback li a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links-fallback li a:hover {
    color: #fff;
    padding-right: 5px; /* تأثير إزاحة بسيط وجميل عند تمرير الماوس */
}

/* شريط الحقوق السفلي */
.site-info-bar {
    background-color: #0b0e14;
    padding: 20px 0;
    font-size: 13px;
    color: #64748b;
}

.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text a {
    color: #cbd5e1;
    font-weight: bold;
}

.copyright-text a:hover {
    color: #ff2c55;
}

.scroll-to-top-btn {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scroll-to-top-btn:hover {
    color: #fff;
}

/* توافق الفوتر مع الشاشات الصغيرة لجوال */
@media (max-width: 768px) {
    .footer-widgets-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .site-info-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* ==========================================================================
   9. تنسيقات صفحة المقال المنفرد (Single Post Page Styles)
   ========================================================================== */
.zuhal-single-article {
    background-color: #fff;
    padding: 35px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    margin-bottom: 30px;
}

.entry-header-single {
    margin-bottom: 25px;
}

.single-post-cat-tag a {
    background-color: #0f172a;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 12px;
}

.single-post-cat-tag a:hover {
    background-color: #ff2c55;
}

.single-main-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 15px;
}

.single-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #64748b;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 15px;
}

.single-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-meta-info i {
    color: #94a3b8;
}

.single-post-thumbnail-wrap {
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
}

.single-post-thumbnail-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* تنسيق فقرات ونصوص القراءة الاحترافية */
.entry-content-single p {
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 22px;
    text-align: justify;
}

.entry-content-single h2, 
.entry-content-single h3 {
    color: #0f172a;
    margin: 35px 0 15px;
    font-weight: 700;
}

.entry-content-single h2 { font-size: 22px; }
.entry-content-single h3 { font-size: 19px; }

/* منطقة الوسوم أسفل المقال */
.single-post-tags-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-title {
    font-size: 14px;
    font-weight: bold;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tags-links-wrap a {
    display: inline-block;
    background-color: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.tags-links-wrap a:hover {
    background-color: #ff2c55;
    color: #fff;
}

.comments-section-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 40px 0;
}

/* توافق الشاشات للجوال */
@media (max-width: 768px) {
    .zuhal-single-article {
        padding: 20px;
    }
    .single-main-title {
        font-size: 22px;
    }
    .entry-content-single p {
        font-size: 16px;
    }
}
/* ==========================================================================
   10. تنسيقات صفحة أرشيف الأقسام (Archive Page Styles)
   ========================================================================== */
.archive-header-area {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    margin-bottom: 35px;
    border-right: 4px solid #ff2c55; /* تمييز حافة القسم بلون الأكشن الإخباري */
}

.archive-main-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.archive-description-text {
    font-size: 14px;
    color: #64748b;
    margin-top: 10px;
    line-height: 1.6;
}
