/*
Theme Name: قالب الشرق NOW
Description: قالب ووردبريس إخباري عالي التقنية - تصميم فلات وأسود
Author: المطور
Version: 1.1.0
Text Domain: asharq-now
*/

* { box-sizing: border-box; font-family: 'Cairo', sans-serif; }

/* ================= الخلفية العامة للموقع (أبيض/رمادي فاتح) ================= */
body { margin: 0; padding: 0; background-color: #f4f6f9; color: #111; overflow-x: hidden; }

/* ================= شريط الهيدر العلوي (أسود دائم) ================= */
.asharq-header {
    position: absolute; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 100%);
}
.header-right { display: flex; align-items: center; gap: 20px; }
.menu-icon { font-size: 20px; cursor: pointer; color: #fff; }
.logo { font-size: 22px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; color: #fff; letter-spacing: -0.5px;}
.logo .now { font-family: Arial, sans-serif; font-weight: bold; font-size: 18px; color: #ff1827; }

.header-center { display: flex; gap: 25px; }
.header-center a { color: #ccc; text-decoration: none; font-size: 13px; font-weight: 600; transition: 0.3s; }
.header-center a:hover, .header-center a.active { color: #fff; }

.header-left { display: flex; align-items: center; gap: 20px; }
.search-icon { font-size: 16px; cursor: pointer; color: #fff; }
.login-btn {
    border: 1px solid rgba(255,255,255,0.4); background: transparent; color: #fff;
    padding: 5px 18px; border-radius: 20px; font-weight: 600; font-size: 12px; cursor: pointer; transition: 0.3s;
}
.login-btn:hover { background: #fff; color: #000; }

/* ================= السلايدر الرئيسي (القسم الأسود) ================= */
.hero-swiper { width: 100%; height: 70vh; min-height: 450px; max-height: 600px; background-color: #000; }
.hero-section {
    position: relative; width: 100%; height: 100%;
    background-size: cover; background-position: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(270deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}
.hero-content {
    position: absolute; top: 50%; right: 6%; transform: translateY(-50%);
    z-index: 10; max-width: 550px; text-align: right;
}
.category-badge {
    display: inline-block; background: #ff1827; color: #fff;
    padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-bottom: 15px;
}
.hero-title { font-size: 42px; font-weight: 800; margin: 0 0 10px 0; line-height: 1.3; color: #fff; }
.hero-subtitle { font-size: 14px; color: #ccc; margin: 0 0 15px 0; font-weight: 600; }
.hero-desc { font-size: 16px; color: #ddd; line-height: 1.7; margin: 0 0 30px 0; font-weight: 500; }

.hero-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-start; }
.btn-red {
    background: #ff1827; color: #fff; border: none; padding: 10px 25px;
    border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; gap: 8px; transition: 0.3s; text-decoration: none;
}
.btn-red:hover { background: #d6111d; }
.btn-icon {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff;
    width: 44px; height: 44px; border-radius: 6px; display: flex; justify-content: center; align-items: center;
    font-size: 16px; cursor: pointer; transition: 0.3s; text-decoration: none;
}
.btn-icon:hover { background: rgba(255,255,255,0.3); }


/* ================= إعدادات الأقسام الفلات (الأبيض) ================= */
.main-content-container { max-width: 1250px; margin: 50px auto; padding: 0 20px; }
.section-title {
    font-size: 24px; font-weight: 800; margin-bottom: 25px; position: relative; padding-right: 15px; color: #111; text-align: right;
}
.section-title::before {
    content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 75%; background: #ff1827; border-radius: 3px;
}

/* ================= قسم تقارير القرار بوست (فلات ستايل) ================= */
.section-container { max-width: 1200px; width: 100%; position: relative; margin: 60px auto; padding: 0 20px;}
.cards-wrapper { position: relative; display: flex; gap: 20px; justify-content: center; align-items: center; }

.card {
    position: relative; width: 350px; height: 220px; border-radius: 12px; overflow: hidden;
    background-color: #fff; background-size: cover; background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, opacity 0.3s ease;
}
.side-card { opacity: 0.6; }
.side-card:hover { opacity: 1; transform: translateY(-5px); }
.center-card { transform: scale(1.05); z-index: 5; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); border: 2px solid #fff;}
.card-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }
.card-title-box { 
    position: absolute; bottom: 0; left: 0; right: 0; 
    background-color: #ffffff; /* أبيض صلب */
    padding: 15px; text-align: center; 
    border-top: 3px solid #ff1827; z-index: 5; 
}
.card-title { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.5; color:#111;}


/* ================= قسم التصنيفات ================= */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 50px; }
.category-card {
    position: relative; height: 120px; border-radius: 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: #fff; background-size: cover; background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: 0.3s;
}
.category-card::before {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.5); z-index: 1; transition: 0.3s;
}
.category-card h3 { position: relative; z-index: 2; font-size: 20px; font-weight: 700; margin: 0; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); }
.category-card:hover::before { background: rgba(0,0,0,0.65); }


/* ================= قسم الحرب والرياضة (البطاقات البيضاء الفلات) ================= */
.war-grid, .news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.war-card, .news-card {
    background-color: #ffffff; display: flex; flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04); overflow: hidden;
    border: 1px solid #eaeaea; transition: 0.3s ease; border-radius: 8px;
}
.war-card:hover, .news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: #ddd; }

.war-card { border-bottom: 4px solid transparent; }
.border-red { border-bottom-color: #ff1827; }
.border-green { border-bottom-color: #2b7a2b; }
.border-teal { border-bottom-color: #1c7a70; }

.war-card img, .news-card-img { width: 100%; height: 180px; object-fit: cover; display: block; border-bottom: 1px solid #f4f4f4;}
.war-card-content, .news-card-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.war-card-title, .news-card-title {
    font-size: 16px; font-weight: 800; color: #111; line-height: 1.5;
    margin: 0 0 15px 0; text-align: right; text-decoration: none; transition: 0.3s;
}
.war-card-title:hover, .news-card-title:hover { color: #ff1827; }

.war-card-tag { background-color: #f1f3f5; color: #333; font-size: 11px; font-weight: 700; padding: 4px 10px; align-self: flex-end; border-radius: 4px; }
.news-date { font-size: 12px; color: #888; font-weight: 600; }

/* ================= صفحة الخبر (Single Post) تصميم فلات ================= */
.single-page-wrapper {
    background-color: #f4f6f9;
    padding: 120px 20px 60px 20px; /* المسافة العلوية لتعويض الهيدر الأسود */
}
.article-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}
.article-category {
    display: inline-block; background: #ff1827; color: #fff;
    padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; margin-bottom: 15px;
}
.article-title {
    font-size: 36px; font-weight: 900; color: #111; line-height: 1.4; margin: 0 0 20px 0;
}
.article-meta {
    display: flex; gap: 20px; align-items: center; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
    padding: 15px 0; margin-bottom: 30px; color: #666; font-size: 13px; font-weight: 600;
}
.article-meta i { color: #ff1827; margin-left: 5px; }
.article-featured-img {
    width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 8px; margin-bottom: 30px;
}
.article-content {
    font-size: 18px; color: #333; line-height: 1.9; font-weight: 500;
}
.article-content p { margin-bottom: 20px; }
.article-content h2, .article-content h3 { color: #111; font-weight: 800; margin-top: 30px; }

/* ================= التجاوب مع شاشات الموبايل ================= */
@media (max-width: 1024px) {
    .war-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .header-center { display: none; }
    .hero-title { font-size: 28px; }
    .article-container { padding: 25px; }
    .article-title { font-size: 26px; }
    
    .cards-wrapper { flex-direction: row; gap: 8px; padding: 0 5px;}
    .card { width: 33%; height: 130px; border-radius: 6px; } 
    .side-card { opacity: 0.8; }
    .center-card { transform: scale(1.05); }
    .card-title-box { padding: 6px; border-top: 2px solid #ff1827; }
    .card-title { font-size: 11px; } 
}

@media (max-width: 600px) {
    .war-grid, .news-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .war-card img, .news-card-img { height: 110px; }
    .war-card-content { padding: 10px; }
    .war-card-title, .news-card-title { font-size: 13px; margin: 0 0 10px 0; }
    .war-card-tag { font-size: 10px; padding: 3px 6px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px;}
    .single-page-wrapper { padding-top: 100px; }
    .article-content { font-size: 16px; }
}