/*
Theme Name: أخبار السيارات - Akhbar Al-Sayarat
Theme URI: https://example.com/akhbar-sayarat
Author: مبرمج ووردبريس محترف
Author URI: https://example.com
Description: قالب ووردبريس احترافي (الإصدار الثاني المطور 2.0)، فائق السرعة، متجاوب 100% مع كافة شاشات الجوال والأجهزة اللوحية بهيكل موحد بين الهيدر والبودي دون أي اقتصاص أو إزاحة للمحتوى. مصمم خصيصاً لمواقع أخبار ومراجعات وتجارب قيادة السيارات، ومهيأ بأعلى معايير السيو (SEO) وجاهز للإدراج الفوري في Google News و Google Discover مع توافق كامل مع Rank Math SEO ولوحة تحكم شاملة ودعم الوضع الليلي واللغة العربية (RTL).
Version: 2.3.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akhbar-sayarat
Tags: automotive, news, rtl-language-support, fast-loading, seo-ready, custom-menu, theme-options, translation-ready, dark-mode
*/

:root {
    --primary-color: #e60012;
    --primary-hover: #b8000e;
    --secondary-color: #0d131a;
    --accent-blue: #0084ff;
    --dark-bg: #12161c;
    --dark-surface: #1a202c;
    --light-bg: #f4f6f9;
    --light-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-dark: #2d3748;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-heading: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --light-bg: #0b0f15;
    --light-surface: #151c26;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #263142;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-x: clip;
    position: relative;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-main);
    background-color: var(--light-bg);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#page,
.site-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
    overflow-x: clip;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
}

img, video, iframe, embed, object, canvas, svg {
    max-width: 100%;
    height: auto;
}

img, video, iframe {
    display: block;
}

figure, .wp-block-image, .wp-caption {
    max-width: 100% !important;
    width: auto !important;
    margin-inline: auto;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.aligncenter { display: block; margin: 1.25rem auto; text-align: center; }
.alignleft { float: left; margin: 0 1.25rem 1.25rem 0; max-width: 100%; }
.alignright { float: right; margin: 0 0 1.25rem 1.25rem; max-width: 100%; }
@media (max-width: 767px) {
    .alignleft, .alignright {
        float: none !important;
        margin: 1rem auto !important;
        display: block !important;
    }
}
.wp-caption { max-width: 100% !important; margin-bottom: 1.25rem; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }