/*
Theme Name: jaredaiq
Theme URI: https://jaredaiq.net/jaredaiq
Description: A premium, highly customizable, and high-performance WordPress theme for Arabic news and editorial sites, inspired by Zeteo. Built with a modular queries layer, a hybrid caching layer, RTL support, dynamic sections, and a dark mode.
Version: 1.1.2
Author: Antigravity
Author URI: https://deepmind.google/
Text Domain: jaredaiq
Domain Path: /languages
*/

/* ==========================================================================
   لوحة الألوان المتناسقة المضافة حديثاً (Harmonious Color Palette Overrides)
   ========================================================================== */
:root {
    /* تحديث اللون الذهبي ليكون مشرقاً ودافئاً وفاخراً ويتناسق بشكل رائع مع التركواز */
    --gold: #FFB800; 
    
    /* الألوان المتناسقة الجديدة */
    --accent-coral: #FF6B6B;  /* المرجاني الحيوي (تباين قوي مع التركواز) */
    --accent-lime: #A3E635;   /* الليموني المضيء (طابع عصري/تقني) */
    --accent-indigo: #6366F1; /* البنفسجي النيلي (عمق وفخامة) */
}

/* ==========================================================================
   تحسينات وتعديلات لوحة الإعلانات الفاخرة (Premium Ad Banner Enhancements)
   ========================================================================== */

/* 1. تأثير التوهج المزدوج (Dual-Glow: تركواز ويمين، ذهبي ويسار) */
.ad-banner-glow-2 {
    background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 75%) !important;
}

/* 2. تحسين تفاعل الزر الأساسي (CTA Button) باستخدام التدرج الذهبي/التركوازي عند التمرير */
.ad-banner-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.ad-banner-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--brand) 100%) !important;
    box-shadow: 0 10px 25px rgba(255, 184, 0, 0.4) !important;
    border-color: rgba(255, 184, 0, 0.5) !important;
    transform: translateY(-3px) scale(1.03) !important;
}

/* 3. إضاءة أيقونة الزر بشكل متناسق عند التمرير */
.ad-banner-btn:hover .ad-btn-icon {
    stroke: #ffffff !important;
    transform: rotate(-12deg) scale(1.1) !important;
}

/* 4. إضفاء طابع ذهبي على النصوص الهامة والأوسمة */
.premium-ad-banner:hover .ad-banner-title {
    color: var(--gold) !important;
    text-shadow: 0 2px 12px rgba(255, 184, 0, 0.2);
}

/* 5. تحسين الأيقونات الجانبية للمميزات لتتفاعل بمرونة باللون الذهبي البراق */
.premium-ad-banner:hover .ad-feature-item:nth-child(1) .ad-feature-icon {
    color: var(--gold) !important;
    filter: drop-shadow(0 0 5px rgba(255, 184, 0, 0.5)) !important;
}
.premium-ad-banner:hover .ad-feature-item:nth-child(2) .ad-feature-icon {
    color: var(--brand) !important;
    filter: drop-shadow(0 0 5px rgba(0, 164, 180, 0.5)) !important;
}
.premium-ad-banner:hover .ad-feature-item:nth-child(3) .ad-feature-icon {
    color: var(--accent-coral) !important;
    filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5)) !important;
}

/* 6. تحسين الخط الرابط الجانبي */
.premium-ad-banner:hover .ad-banner-sub-btn {
    color: var(--gold) !important;
    text-shadow: 0 0 8px rgba(255, 184, 0, 0.3) !important;
}

/* ══════════════════════════════════════════════════════════════
   أشكال إضافية مخصصة للوحة الإعلانات (Alternative Themes)
   (يمكنك إضافتها كفئة إضافية مثل: premium-ad-banner ad-coral)
   ══════════════════════════════════════════════════════════════ */

/* طابع المرجاني البراق (Coral Theme) */
.premium-ad-banner.ad-coral {
    border-color: rgba(255, 107, 107, 0.45) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 35px rgba(255, 107, 107, 0.12) !important;
}
.premium-ad-banner.ad-coral .ad-banner-glow-1 {
    background: radial-gradient(circle, rgba(255, 107, 107, 0.25) 0%, transparent 70%) !important;
}
.premium-ad-banner.ad-coral .ad-banner-btn {
    background: linear-gradient(135deg, var(--accent-coral) 0%, #ff8e53 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35) !important;
}

/* طابع الليموني الحديث (Lime Theme) */
.premium-ad-banner.ad-lime {
    border-color: rgba(163, 230, 53, 0.45) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 35px rgba(163, 230, 53, 0.12) !important;
}
.premium-ad-banner.ad-lime .ad-banner-glow-1 {
    background: radial-gradient(circle, rgba(163, 230, 53, 0.25) 0%, transparent 70%) !important;
}
.premium-ad-banner.ad-lime .ad-banner-btn {
    background: linear-gradient(135deg, var(--accent-lime) 0%, var(--brand) 100%) !important;
    box-shadow: 0 6px 20px rgba(163, 230, 53, 0.35) !important;
    color: #000 !important;
}

/* ==========================================================================
   مواءمة خلفية وحدود وألوان البنر مع هوية وتصميم الموقع العام
   ========================================================================== */

/* 1. تصميم البنر الفاخر (الوضع الداكن الموحد لكلا الوضعين) */
.premium-ad-banner,
body.dark-mode .premium-ad-banner {
    border: 1px solid transparent !important;
    background-image: linear-gradient(135deg, #180c30 0%, #0c0618 100%), 
                      linear-gradient(90deg, var(--brand), var(--gold), var(--brand)) !important;
    background-clip: padding-box, border-box !important;
    background-origin: padding-box, border-box !important;
    box-shadow: none !important;
}

.ad-banner-overlay,
body.dark-mode .ad-banner-overlay {
    background: linear-gradient(90deg, rgba(24, 12, 48, 0.96) 0%, rgba(12, 6, 24, 0.88) 50%, rgba(24, 12, 48, 0.96) 100%) !important;
}

/* ألوان النصوص الداكنة الفاخرة للبنر */
.ad-banner-title,
body.dark-mode .ad-banner-title {
    color: #ffffff !important;
}

.ad-banner-desc,
body.dark-mode .ad-banner-desc {
    color: #a0aec0 !important;
}

.ad-banner-sub-btn,
body.dark-mode .ad-banner-sub-btn {
    color: rgba(255, 255, 255, 0.4) !important;
}

.ad-feature-item,
body.dark-mode .ad-feature-item {
    color: #e2e8f0 !important;
}

/* 2. تأثير حركي للحدود عند التمرير (Hover State) */
.premium-ad-banner:hover,
body.dark-mode .premium-ad-banner:hover {
    background-image: linear-gradient(135deg, #180c30 0%, #0c0618 100%), 
                      linear-gradient(90deg, #00e1f5, var(--gold), #00e1f5) !important;
    box-shadow: none !important;
}

/* ==========================================================================
   تعديل لون نص عناوين الأقسام إلى التركوازي (Section Titles color overrides)
   ========================================================================== */
.section-title,
.section-title a {
    color: var(--brand) !important;
}

/* في الوضع الداكن: استخدام درجة تركواز نيون ساطعة ومقروءة */
body.dark-mode .section-title,
body.dark-mode .section-title a {
    color: #00e1f5 !important;
}

/* عند تمرير مؤشر الفأرة على القسم */
.section-header:hover .section-title,
.section-header:hover .section-title a {
    color: var(--brand-dark) !important;
}

body.dark-mode .section-header:hover .section-title,
body.dark-mode .section-header:hover .section-title a {
    color: #ffffff !important;
}

/* ==========================================================================
   تقسيم أخبار قسم التقارير بالتساوي (Reports Grid Equal Split 50%/50%)
   ========================================================================== */
@media (min-width: 1025px) {
    .reports-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ==========================================================================
   تصميم كروت الرأي التراكمي المدمج (Premium Asymmetrical Grid Collage Layout)
   ========================================================================== */
.opinions-split-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 16px;
    height: 480px;
    margin-top: 24px;
}

.opinions-featured-col {
    height: 100%;
}

.opinions-grid-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 100%;
}

.opinion-overlay-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    width: 100%;
    background: #000;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.opinion-bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.opinion-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.opinion-gradient-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.1) 100%);
}

.opinion-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 3;
    color: #ffffff;
    pointer-events: none;
    text-align: right;
}

.opinion-card-content a {
    pointer-events: auto;
}

/* العنوان الرئيسي للخبر الكبير */
.card-large-overlay .opinion-card-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    margin: 0 0 10px 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* عناوين الأخبار الصغيرة */
.card-small-overlay .opinion-card-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.opinion-card-title a {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.opinion-overlay-card:hover .opinion-card-title a {
    color: #00e1f5 !important;
}

/* الميتا والوصف للخبر الكبير */
.opinion-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.opinion-author {
    font-weight: 700;
    color: #00e1f5;
}

.opinion-excerpt {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* تفاعل التمرير (Hover States) */
.opinion-overlay-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.opinion-overlay-card:hover .opinion-bg-image img {
    transform: scale(1.04);
}

/* التجاوب والشاشات المختلفة */
@media (max-width: 1024px) {
    .opinions-split-layout {
        height: auto;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .opinions-featured-col {
        height: 380px;
    }
    
    .opinions-grid-col {
        height: 380px;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .opinions-grid-col {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 180px);
        height: auto;
        gap: 12px;
    }
}

/* ==========================================================================
   ضبط المسافات والهوامش لبنر الفوتر (Footer Ad slot spacing)
   ========================================================================== */
.footer-ad-wrapper {
    margin-top: 56px !important;
    margin-bottom: 48px !important;
    display: block;
    width: 100%;
}

/* في الشاشات الصغيرة: تقليص الهوامش لتلائم الجوال */
@media (max-width: 768px) {
    .footer-ad-wrapper {
        margin-top: 36px !important;
        margin-bottom: 28px !important;
    }
}

/* ==========================================================================
   تنسيق عدد مشاهدات الخبر والأيقونة المرافقة (Post Views count styling)
   ========================================================================== */
.post-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
    font-size: 0.9em;
}

.post-views svg.views-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    opacity: 0.75;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* محاذاة في البطاقات والهوامش التلقائية بين العناصر */
.card-views {
    display: inline-flex;
    align-items: center;
}

.card-meta, .card-h-meta, .hero-card-meta, .opinion-feed-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

/* تباعد متناسق بين عناصر الميتا للبطاقات */
.card-meta > span:not(:last-child)::after, 
.card-h-meta > span:not(:last-child)::after {
    content: "•";
    margin-inline-start: 8px;
    opacity: 0.5;
}

/* ألوان التمرير لشبكات التواصل الجديدة في الشريط الجانبي الثابت */
.sticky-social-tiktok:hover { background: #010101 !important; }
.sticky-social-telegram:hover { background: #0088cc !important; }

/* ANTIGRAVITY-IDE TEST SYNC */



