/* ================================================
   ملف: public_assets/style.css
   الوظيفة: التنسيقات العامة للموقع (الصفحة العامة)
   ================================================ */

/* ================================================
   1. استيراد الخطوط
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* ================================================
   2. الإعدادات الأساسية
   ================================================ */
* {
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}

body {
    direction: rtl;
    background-color: #f8fafc;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================================================
   3. المتغيرات (الألوان الرئيسية)
   ================================================ */
:root {
    --egypt-red: #CE1126;      /* الأحمر المصري */
    --egypt-gold: #FFD700;     /* الذهبي المصري */
    --nile-blue: #1E3A8A;      /* أزرق النيل */
    --light-bg: #f8fafc;       /* خلفية فاتحة */
}

/* ================================================
   4. الهيدر (الرأس)
   ================================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ================================================
   5. القائمة الجانبية للموبايل
   ================================================ */
.mobile-sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-toggle,
.mobile-menu-btn {
    display: none;
}

/* ================================================
   6. بطاقة تسجيل الدخول
   ================================================ */
.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.29);
}

/* ================================================
   7. الأزرار
   ================================================ */
.btn-primary {
    background: linear-gradient(135deg, #b53eff, #504867);
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(206, 17, 38, 0.3);
}

/* ================================================
   8. حقول الإدخال
   ================================================ */
.form-input {
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--nile-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ================================================
   9. قسم الهيرو (الصفحة الرئيسية)
   ================================================ */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.highlight {
    color: var(--egypt-red);
}

.hero-description {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons .btn {
    margin-left: 15px;
    margin-bottom: 10px;
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================
   10. البطاقات العائمة (القسم الرئيسي)
   ================================================ */
.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 140px;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px);
}

.floating-card i {
    font-size: 2rem;
    color: var(--nile-blue);
    margin-bottom: 10px;
}

.floating-card h4 {
    font-size: 1rem;
    margin: 0;
    color: #334155;
}

/* مواقع البطاقات العائمة */
.card-1 {
    top: 20px;
    right: 20px;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    bottom: 60px;
    left: 40px;
    animation: float 3s ease-in-out infinite 1s;
}

.card-3 {
    top: 100px;
    left: 20px;
    animation: float 3s ease-in-out infinite 2s;
}

.main-hero-icon {
    font-size: 8rem;
    color: var(--nile-blue);
    opacity: 0.1;
}

/* حركة الطفو */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ================================================
   11. قسم المميزات (Features)
   ================================================ */
.features-section {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--nile-blue), var(--egypt-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* ================================================
   12. قسم الإحصائيات (Statistics)
   ================================================ */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--nile-blue), var(--egypt-red));
    color: #fff;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    margin-left: 20px;
    opacity: 0.8;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ================================================
   13. قسم طريقة العمل (How It Works)
   ================================================ */
.how-it-works {
    padding: 100px 0;
    background: #f8fafc;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    height: 100%;
}

.step-number {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 40px;
    background: var(--egypt-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-icon i {
    font-size: 2rem;
    color: #1e293b;
}

.step-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.step-card p {
    color: #64748b;
    line-height: 1.6;
}

/* ================================================
   14. استعلامات الوسائط (Responsive)
   ================================================ */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .desktop-nav {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-description {
        font-size: 1.1rem;
    }
    .hero-image {
        height: 300px;
        margin-top: 40px;
    }
    .floating-card {
        width: 120px;
        padding: 15px;
    }
    .floating-card i {
        font-size: 1.5rem;
    }
    .main-hero-icon {
        font-size: 6rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .stat-item {
        margin-bottom: 30px;
        flex-direction: column;
    }
    .stat-item i {
        margin-left: 0;
        margin-bottom: 15px;
    }
    .step-card {
        margin-bottom: 40px;
    }
}

/* ================================================
   15. تأثيرات الحركة (Animations)
   ================================================ */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   16. روابط التنقل (Navigation Links)
   ================================================ */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--egypt-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--egypt-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ================================================
   17. دعم Alpine.js
   ================================================ */
[x-cloak] {
    display: none !important;
}

/* ================================================
   18. دعم اللغة الإنجليزية (LTR)
   ================================================ */
[dir="ltr"] .fa-chevron-right {
    transform: rotate(180deg);
    display: inline-block;
}

/* ================================================
   19. تنسيق زر اللغة النشط
   ================================================ */
.lang-active {
    background-color: #fef2f2 !important;
    color: #e94560 !important;
}

/* ================================================
   20. تحسينات القوائم المنبثقة للموبايل
   ================================================ */
@media (max-width: 640px) {
    .dropdown-menu {
        position: fixed !important;
        top: 4rem !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        max-width: none !important;
        margin-top: 0 !important;
    }
}

/* ================================================
   21. تخصيص الهيدر (إلغاء الشفافية)
   ================================================ */

/* إلغاء تأثير الزجاج من جميع الهيدرات */
.glass-header,
header.glass-header,
.fixed.glass-header {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* التأكد من أن أي هيدر ليس شفافاً */
header {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* إزالة الشفافية من أي عنصر زجاجي */
[class*="glass"],
[class*="blur"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ================================================
   22. تخصيص البطاقات (Cards)
   ================================================ */

/* تعديل الزوايا للبطاقات */
.rounded-2xl {
    border-radius: 10px !important;
}

/* تعديل سمك الحواف */
.border {
    border-width: 1px !important;
}
/* ================================================
   4. ملف الاسعار
   ================================================ */
body { 
    font-family: 'Tajawal', sans-serif; 
    background-color: #f4f7f6; 
}

/* إضافة مسافة أعلى الصفحة */
.page-header, 
.pricing-header,
h1:first-of-type {
    margin-top: 30px;
    padding-top: 20px;
}

/* أو إذا كان العنوان داخل container */
.container h1,
.container .pricing-header {
    margin-top: 2rem;
    padding-top: 1rem;
}

/* حركات الظهور الناعمة */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
/* ================================================
   4. ملف التتبع الشحنة
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

body { 
    font-family: 'Almarai', sans-serif; 
    background-color: #f8fafc; 
}

/* =========================================
   إعدادات التايم لاين الأساسية
========================================= */
.timeline-steps { 
    position: relative; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    width: 100%; 
    margin: 1.5rem 0; 
}

.timeline-line-bg { 
    position: absolute; 
    top: 25px; 
    left: 10%; 
    right: 10%; 
    height: 3px; 
    background: #e2e8f0; 
    z-index: 1; 
}

.timeline-line-fill { 
    position: absolute; 
    top: 25px; 
    right: 10%; 
    height: 3px; 
    z-index: 2; 
}

.step-item { 
    position: relative; 
    z-index: 3; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    flex: 1; 
}

/* تصميم الدائرة (Desktop) */
.step-icon { 
    position: relative;
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: #fff; 
    border: 3px solid #e2e8f0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #94a3b8; 
}

/* توحيد حجم الأيقونة الداخلية (Desktop) */
.step-icon i {
    font-size: 22px; /* حجم موحد للكل */
    width: 24px;   /* عرض ثابت */
    height: 24px;  /* طول ثابت */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* علامة الصح الخضراء (Desktop) */
.status-badge {
    position: absolute;
    top: -6px; 
    right: -2px; 
    background-color: #22c55e !important; 
    color: #fff !important; 
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border: 2px solid #fff;
    z-index: 50; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step-label { 
    font-size: 12px; 
    font-weight: 700; 
    margin-top: 10px; 
    color: #64748b; 
    text-align: center;
}

/* تأثيرات الحالات */
.step-item:not(.active) { opacity: 0.4; filter: grayscale(1); }
.active .step-icon { border-color: currentColor; background: currentColor; color: #fff !important; }

/* الحالة الحالية */
.current-step .step-icon {
    background: #fff !important;
    border-color: currentColor !important;
    color: currentColor !important;
}

/* =========================================
   ضبط الموبايل (حل مشكلة عدم التنسيق)
========================================= */
@media (max-width: 640px) {
    .timeline-line-bg, .timeline-line-fill { top: 14px; }

    /* الدائرة */
    .step-icon {
        width: 28px; 
        height: 28px;
        border-width: 2px;
    }

    /* توحيد حجم الأيقونة الداخلية على الموبايل (مهم جداً) */
    .step-icon i {
        font-size: 14px !important; /* حجم واحد لكل الأيقونات */
        width: 16px !important;   /* مساحة ثابتة تمنع الشاحنة من التصاغر */
        height: 16px !important;
    }

    /* علامة الصح الخضراء */
    .status-badge {
        width: 13px; 
        height: 13px;
        font-size: 6px;
        top: -4px; 
        right: -3px;
        border-width: 1px;
    }

    .step-label {
        font-size: 8px;
        margin-top: 6px;
        max-width: 50px;
        line-height: 1.1;
    }
}
        @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');
        
        body { font-family: 'Cairo', sans-serif; }

        .nav-link {
            position: relative;
            transition: all 0.3s ease;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            right: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(to left, #dc2626, #2563eb);
            transition: width 0.3s ease;
            border-radius: 2px;
        }

        .nav-link:hover::after, .nav-link.active::after {
            width: 100%;
        }

        .nav-link.active {
            color: #1f2937 !important;
            font-weight: 800 !important;
        }

        .mobile-sidebar {
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateX(100%);
        }

        .mobile-sidebar.open {
            transform: translateX(0);
        }

        .sidebar-overlay {
            display: none;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
        }

        .sidebar-overlay.open {
            display: block;
        }