/* ============================================
   base.css — المتغيرات والإعدادات الأساسية فقط
   يُحمَّل في جميع الصفحات
   ============================================ */

:root {
    --primary:          #2563eb;
    --primary-dark:     #1e40af;
    --primary-hover:    #1d4ed8;
    --accent:           #3b82f6;
    --bg-light:         #f3f4f6;
    --bg-soft:          #f8fafc;
    --text-dark:        #1f2937;
    --text-main:        #1e293b;
    --text-muted:       #6b7280;
    --white:            #ffffff;
    --error-red:        #ef4444;
    --success-green:    #10b981;
    --shadow:           0 4px 10px rgba(0,0,0,0.1);
    --shadow-lg:        0 10px 30px rgba(0,0,0,0.08);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1e4ed8 100%);
    --radius-sm:        8px;
    --radius-md:        12px;
    --radius-lg:        20px;
    --radius-xl:        24px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* حاوية عامة */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* أدوات مساعدة */
.py-5  { padding: 60px 0; }
.py-3  { padding: 30px 0; }
.mb-5  { margin-bottom: 50px; }
.mb-3  { margin-bottom: 30px; }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted) !important; }
.fw-bold      { font-weight: 800; }
.bg-dark      { background: #1e293b !important; }
.text-white   { color: white !important; }
.bg-soft      { background: var(--bg-soft); }
.align-center { align-items: center; }

/* عنوان القسم */
.section-head        { text-align: center; margin-bottom: 50px; }
.section-head h2     { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.section-head p      { color: var(--text-muted); font-size: 1rem; }

/* روابط */
a { color: inherit; }
.active-link  { color: var(--primary); text-decoration: underline; font-weight: bold; }
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* نماذج */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    text-align: right;
}

/* أنيميشن */
.animate-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}