/* ==================================================================
   orders.css — تنسيقات صفحة "طلباتي" (بتصميم الزجاج الفخم)
   ================================================================== */

body.orders-page {
    background-color: #060606; /* خلفية أعمق وأغمق عشان تبرز تأثير الزجاج */
    color: #ffffff;
    font-family: 'Poppins', 'Cairo', sans-serif;
    min-height: 100vh;
    padding-top: 90px; /* مسافة عشان النافبار الثابت */
}

/* ---------- الشريط العلوي والثابت ---------- */
.orders-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    direction: ltr;
    display: flex;
    align-items: center;
    padding: 18px 40px;
    background: rgba(12, 12, 12, 0.75); /* زجاج داكن للنافبار */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* زرار الملف الشخصي — أيقونة بيضاء دائرية على طرف الشريط الأيمن */
.orders-profile-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.orders-profile-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* ---------- الحاوية الرئيسية ---------- */
.orders-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 30px 80px;
}

/* ---------- رأس الصفحة: زرار السلة على الشمال + العنوان على اليمين ---------- */
.orders-header {
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.orders-header h1 {
    direction: rtl;
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
}

.orders-title-group {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 16px;
}

.orders-header-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* تأثير زجاجي خفيف لزر الرجوع */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.orders-header-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.06);
}

.orders-cart-btn {
    direction: rtl;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* زرار سلة بتصميم زجاجي */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.orders-cart-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ---------- قائمة الطلبات ---------- */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---------- كارت الطلب (شكل الزجاج الفخم - Glassmorphism) ---------- */
.order-card {
    direction: rtl;
    text-align: right;
    /* تأثير الزجاج هنا */
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    border-radius: 16px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

/* الجزء اليمين: رقم الطلب + التاريخ */
.order-card-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.order-card-info span {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* عناصر الطلب (أسماء المنتجات) */
.order-card-items {
    flex: 1;
    min-width: 200px;
    color: #d1d5db;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* الجزء الشمال: الحالة + السعر */
.order-card-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.order-status {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.order-status.status-delivered {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.order-status.status-processing {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.order-status.status-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.order-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.order-card-view {
    color: #9ca3af;
    font-size: 0.8rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.order-card-view:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- حالة عدم وجود طلبات (زجاجية أيضاً) ---------- */
.orders-empty-card {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: right;
    direction: rtl;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ---------- تجاوب مع الشاشات الصغيرة ---------- */
@media (max-width: 700px) {
    .orders-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 14px;
    }

    .order-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-card-meta {
        width: 100%;
        justify-content: space-between;
    }
}