/**
 * custom.css - أنماط مخصصة للموقع (صفحات المستخدم والرئيسية)
 * المسار: /assets/css/custom.css
 * تاريخ التحديث: 2026-03-13
 */

/* ============================================
   المتغيرات العامة
   ============================================ */
:root {
    --primary-color: #0d6efd;
    --primary-gradient: linear-gradient(135deg, #0d6efd, #0099ff);
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-radius: 20px;
    --box-shadow: 0 15px 35px rgba(13, 110, 253, 0.1);
}

/* ============================================
   تنسيقات عامة
   ============================================ */
body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* روابط نظيفة */
a {
    text-decoration: none;
}

/* ============================================
   القسم الرئيسي (Hero Section) من index.php
   ============================================ */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0;
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
    width: 100%;
    left: 0;
    right: 0;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(25deg);
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* أزرار مخصصة في hero */
.btn-custom-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-custom-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: #0b5ed7;
}

.btn-custom-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 33px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* ============================================
   بطاقات المميزات (features)
   ============================================ */
.feature-card {
    transition: transform 0.4s, box-shadow 0.4s;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.1);
    height: 100%;
    padding: 30px 20px;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 45px rgba(13, 110, 253, 0.2);
}

.feature-icon {
    width: 90px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

/* ============================================
   بطاقات الإحصائيات (stats)
   ============================================ */
.stats-card {
    background: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.1);
    transition: transform 0.3s;
    height: 100%;
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(13, 110, 253, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    text-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.stat-label {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 500;
}

/* ============================================
   بطاقات الخدمات / العروض
   ============================================ */
.service-showcase {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    margin: 60px 0;
    transition: transform 0.3s;
}

.service-showcase:hover {
    transform: scale(1.02);
}

/* ============================================
   أزرار متدرجة
   ============================================ */
.btn-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0099ff 0%, #0d6efd 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.4);
    color: white;
}

.btn-gradient:hover::before {
    opacity: 1;
}

/* ============================================
   بطاقات الدفع
   ============================================ */
.payment-card {
    background: white;
    border: none;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(13, 110, 253, 0.15);
}

.payment-methods img {
    height: 50px;
    margin: 15px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s;
    cursor: pointer;
}

.payment-methods img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================
   عناوين الأقسام
   ============================================ */
.section-title {
    position: relative;
    margin-bottom: 50px;
    font-weight: 800;
    color: var(--dark-text);
    text-align: center;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ============================================
   بطاقات الملف الشخصي
   ============================================ */
.profile-card {
    border-radius: var(--border-radius);
    border: none;
    background: white;
    box-shadow: var(--box-shadow);
}

.avatar-wrapper {
    text-align: center;
    padding: 2rem;
}

.avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* ============================================
   تنسيقات صفحة الطلبات
   ============================================ */
.orders-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.filter-btn {
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    margin: 0.2rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.filter-btn:hover:not(.active) {
    background: #e9ecef;
}

/* ============================================
   شارات الحالة للطلبات
   ============================================ */
.badge-status {
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
}

.bg-pending {
    background: #fff3cd;
    color: #856404;
}

.bg-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.bg-completed {
    background: #d4edda;
    color: #155724;
}

.bg-partial {
    background: #e2e3e5;
    color: #383d41;
}

.bg-canceled,
.bg-failed {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   تنسيقات صفحة الخدمات (services)
   ============================================ */
.service-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-right: 3px solid var(--primary-color);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.info-item .label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-item .value {
    font-weight: bold;
    font-size: 1.1rem;
}

.service-description {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px dashed #dee2e6;
}

/* ============================================
   تنسيقات صفحة التذاكر
   ============================================ */
.ticket-card {
    border-radius: 20px;
    border: none;
    background: white;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s;
}

.ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 2rem rgba(13, 110, 253, 0.1);
}

.reply-item {
    border-right: 3px solid var(--primary-color);
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.reply-item.admin {
    border-right-color: #198754;
    background: #e8f5e9;
}

/* ============================================
   تنسيقات الإشعارات
   ============================================ */
.notification-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
    transition: background 0.2s;
}

.notification-item.unread {
    background: #f0f7ff;
    border-right: 4px solid var(--primary-color);
}

.notification-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ============================================
   تنسيقات Bootstrap Modals مخصصة
   ============================================ */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-radius: 20px 20px 0 0;
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ============================================
   تنسيقات شريط البحث
   ============================================ */
.search-box {
    margin-bottom: 15px;
}

/* ============================================
   تحسينات للهواتف
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    .btn-custom-primary,
    .btn-custom-outline,
    .btn-gradient {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .service-showcase {
        padding: 30px 20px;
    }
    .payment-card {
        padding: 25px 15px;
    }
    .payment-methods img {
        height: 40px;
        margin: 10px;
    }
    .service-info-grid {
        grid-template-columns: 1fr;
    }
}