/*!
 * Theme Name: سوريا ميديا - Elementor Theme
 * Theme URI: https://syriamedia.com
 * Author: Syria Media
 * Author URI: https://syriamedia.com
 * Description: قالب Elementor احترافي لوكالة دعاية وإعلان سوريا ميديا
 * Version: 1.0.0
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: syria-media
 * Domain Path: /languages
 * Requires at least: 5.0
 * Requires PHP: 7.4
 * Elementor tested up to: 3.20
 * Elementor Pro tested up to: 3.20
 */

/* ============================================
   إعادة تعيين وأساسيات
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    direction: rtl;
    text-align: right;
}

/* ============================================
   الخطوط
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   الحاويات
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   الأقسام
   ============================================ */
.elementor-section {
    padding: 5rem 0;
}

.elementor-section-wrap {
    width: 100%;
}

/* ============================================
   الأزرار
   ============================================ */
button,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
}

/* ============================================
   النماذج
   ============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   الجداول
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

table th,
table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

table th {
    background-color: #f9fafb;
    font-weight: 600;
}

table tr:hover {
    background-color: #f9fafb;
}

/* ============================================
   الروابط
   ============================================ */
a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #3b82f6;
}

/* ============================================
   الصور
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0;
}

/* ============================================
   قوائم
   ============================================ */
ul, ol {
    margin-bottom: 1.5rem;
    margin-right: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ============================================
   الاقتباسات
   ============================================ */
blockquote {
    border-right: 4px solid #1e3a8a;
    padding-right: 1rem;
    margin-right: 1rem;
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-style: italic;
}

/* ============================================
   الأكواد
   ============================================ */
code,
pre {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
}

code {
    padding: 0.25rem 0.5rem;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

pre code {
    background: none;
    border: none;
    padding: 0;
}

/* ============================================
   الرأس والتذييل
   ============================================ */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-footer {
    background: #1e3a8a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

/* ============================================
   المحتوى الرئيسي
   ============================================ */
.site-content {
    min-height: calc(100vh - 200px);
}

/* ============================================
   التعليقات
   ============================================ */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.comment-list {
    list-style: none;
    margin-right: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ============================================
   الاستجابة
   ============================================ */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .elementor-section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 15px;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .elementor-section {
        padding: 1.5rem 0;
    }

    .container {
        padding: 0 10px;
    }

    input[type="text"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px; /* منع التكبير التلقائي على iOS */
    }
}

/* ============================================
   طباعة
   ============================================ */
@media print {
    body {
        background: white;
    }

    a {
        text-decoration: underline;
    }

    .no-print {
        display: none;
    }
}

/* ============================================
   الأداة الجانبية
   ============================================ */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e3a8a;
}

.widget ul {
    list-style: none;
    margin-right: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    display: block;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

.widget ul li a:hover {
    background-color: #f9fafb;
    padding-right: 1rem;
}

/* ============================================
   الإشعارات
   ============================================ */
.notice {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #1e3a8a;
    background-color: #f0f9ff;
    border-radius: 0.25rem;
}

.notice.notice-success {
    border-left-color: #10b981;
    background-color: #f0fdf4;
}

.notice.notice-error {
    border-left-color: #ef4444;
    background-color: #fef2f2;
}

.notice.notice-warning {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
}

/* ============================================
   التوافقية
   ============================================ */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.aligncenter {
    text-align: center;
    margin: 0 auto 1rem;
}

.clear {
    clear: both;
}
