/* Project: بوابة الدفاع العربي
   File: assets/css/main.css
   Description: القواعد العامة والمتغيرات الأساسية
*/

:root {
    --primary: #1a1a1a;
    --brand-red: #c00;
    --gold-accent: #b08d57;
    --bg-body: #ffffff;
    --bg-alt: #f9f9f9;
    --border: #ececec;
    --text-dark: #222;
    --text-light: #666;
    --container-width: 1200px;
}

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

body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    text-align: right;
}

/* الطباعة */
@media print {
    body { font-size: 12pt; background: white !important; }
    nav, .top-bar, footer, .header-ads { display: none !important; }
}

/* ====== الهيكل العام للمحتوى ====== */
main {
    min-height: 70vh;
    padding: 40px 0;
    position: relative;
    z-index: 1; /* ضمان بقائه تحت الهيدر */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== تنسيق الروابط العام ====== */
a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s;
}

a:hover {
    color: var(--brand-red);
}

/* ====== استجابة الموبايل العامة ====== */
/* ملاحظة: تم حذف تنسيقات الهيدر من هنا لمنع التداخل مع header.css */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0 15px;
    }
    
    main {
        padding: 20px 0;
    }
}

/* ====== أزرار وعناصر الإدخال الموحدة ====== */
input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 5px rgba(176, 141, 87, 0.2);
}

button, .button, input[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ====== فائدة: إخفاء العناصر ====== */
.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;
}

/* تحسين الصور */
img {
    max-width: 100%;
    height: auto;
    display: block;
}