/**
 * ==========================================================================
 * ملف: system_styles.css
 * المسار: /modules/landing/system_styles.css
 * الوظيفة: أنماط الصفحات التفصيلية للأنظمة
 * الإصدار: 1.0
 * تاريخ الإنشاء: 2026-02-23
 * ==========================================================================
 * ملاحظة: --sys-color و --sys-color-light يتم تعيينهم ديناميكياً
 * من system_view.php حسب لون كل نظام
 * ==========================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Zain:wght@400;500;700&display=swap');

:root {
    --brand-color: #446179;
    --brand-color-dark: #3a5368;
    --brand-color-darker: #2c4050;
    --text-color-base: #212529;
    --text-color-muted: #6c757d;
    --border-color: #dee2e6;
    --section-background: #f8f9fa;
    --success-color: #28a745;
    --main-font: 'Zain', Arial, sans-serif;

    /* يتم تعيينها ديناميكياً */
    --sys-color: #446179;
    --sys-color-light: #f0f2f5;
}


/* ==========================================================================
   1. أنماط عامة
   ========================================================================== */

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

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background-color: #fff;
    color: var(--text-color-base);
    direction: rtl;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ==========================================================================
   2. شريط العودة (Top Bar)
   ========================================================================== */

.sys-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sys-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sys-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.sys-back-link:hover {
    color: var(--sys-color);
}

.sys-topbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--brand-color);
}


/* ==========================================================================
   3. Hero Section
   ========================================================================== */

.sys-hero {
    background: linear-gradient(160deg, var(--sys-color) 0%, color-mix(in srgb, var(--sys-color) 70%, #000) 100%);
    color: #fff;
    padding: 70px 20px;
    text-align: center;
}

.sys-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.sys-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.sys-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sys-hero-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.sys-hero-desc {
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 30px;
}

.sys-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--sys-color);
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.sys-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}


/* ==========================================================================
   4. الأقسام العامة
   ========================================================================== */

.sys-section {
    padding: 70px 20px;
}

.sys-section-alt {
    background-color: var(--section-background);
}

.sys-container {
    max-width: 1100px;
    margin: 0 auto;
}

.sys-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sys-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color-base);
    margin-bottom: 10px;
}

.sys-section-header h2 i {
    color: var(--sys-color);
    margin-left: 10px;
}

.sys-section-header p {
    font-size: 1.1rem;
    color: var(--text-color-muted);
}


/* ==========================================================================
   5. بطاقات المميزات
   ========================================================================== */

.sys-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sys-feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px 20px;
    transition: all 0.3s ease;
}

.sys-section-alt .sys-feature-card {
    border-color: #e0e3e7;
}

.sys-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: var(--sys-color);
}

.sys-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
    background: var(--sys-color-light);
    color: var(--sys-color);
}

.sys-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color-base);
    margin-bottom: 8px;
}

.sys-feature-card p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    line-height: 1.6;
}


/* ==========================================================================
   6. القطاعات المستهدفة
   ========================================================================== */

.sys-sectors-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.sys-sector-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s;
}

.sys-sector-item:hover {
    border-color: var(--sys-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sys-sector-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--sys-color-light);
    color: var(--sys-color);
}


/* ==========================================================================
   7. جدول الأسعار
   ========================================================================== */

.sys-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

.sys-pricing-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.sys-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.sys-pricing-card.popular {
    border-color: var(--sys-color);
    transform: scale(1.03);
}

.sys-pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.sys-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sys-color);
    color: #fff;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.sys-plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color-base);
    margin-bottom: 15px;
}

.sys-plan-price {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sys-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sys-color);
}

.sys-price-currency {
    font-size: 1rem;
    color: var(--text-color-muted);
    margin-right: 5px;
}

.sys-price-period {
    font-size: 0.95rem;
    color: var(--text-color-muted);
}

.sys-plan-features {
    list-style: none;
    padding: 0;
    text-align: right;
    margin-bottom: 25px;
    flex-grow: 1;
}

.sys-plan-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-color-base);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sys-plan-features li i {
    color: var(--success-color);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sys-plan-btn {
    display: block;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    color: var(--text-color-base);
    background: #fff;
    transition: all 0.3s;
    margin-top: auto;
}

.sys-plan-btn:hover {
    border-color: var(--sys-color);
    color: var(--sys-color);
}

.sys-plan-btn.primary {
    background: var(--sys-color);
    border-color: var(--sys-color);
    color: #fff;
}

.sys-plan-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.sys-pricing-note {
    text-align: center;
    margin-top: 30px;
    padding: 15px 20px;
    background: var(--sys-color-light);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color-muted);
}

.sys-pricing-note i {
    color: var(--sys-color);
    margin-left: 8px;
}


/* ==========================================================================
   8. CTA النهائي
   ========================================================================== */

.sys-cta-section {
    background: linear-gradient(160deg, var(--sys-color) 0%, color-mix(in srgb, var(--sys-color) 70%, #000) 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.sys-cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.sys-cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.sys-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--sys-color);
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s;
}

.sys-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}


/* ==========================================================================
   9. الفوتر
   ========================================================================== */

.sys-footer {
    background: var(--brand-color-darker);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9rem;
}

.sys-footer strong {
    color: #fff;
}


/* ==========================================================================
   10. التجاوب (Responsive)
   ========================================================================== */

@media (max-width: 992px) {
    .sys-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sys-hero {
        padding: 50px 15px;
    }

    .sys-hero-title {
        font-size: 1.8rem;
    }

    .sys-section {
        padding: 50px 15px;
    }

    .sys-section-header h2 {
        font-size: 1.6rem;
    }

    .sys-features-grid {
        grid-template-columns: 1fr;
    }

    .sys-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .sys-pricing-card.popular {
        transform: none;
    }

    .sys-sectors-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sys-hero-title {
        font-size: 1.5rem;
    }

    .sys-hero-cta,
    .sys-cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}