/* 
 * إصلاح مشكلة النصوص البيضاء على الخلفية البيضاء في صفحات التفاصيل
 * Fix for white text on white background in details pages
 */

/* إعدادات عامة لصفحات التفاصيل */
.service-details-section,
.project-details-section {
    background-color: #f8f9fa;
    color: #333;
}

/* محتوى تفاصيل الخدمة */
.service-details-wrapper,
.project-details-wrapper {
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
}

/* العناوين الرئيسية */
.service-details-content h2,
.project-details-content h2,
.service-title,
.project-title {
    color: #2c3e50 !important;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

/* العناوين الفرعية */
.service-details-content h3,
.project-details-content h3 {
    color: #34495e !important;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 30px;
    font-size: 1.8rem;
    border-bottom: 2px solid #6B41FF;
    padding-bottom: 10px;
}

/* العناوين الصغيرة */
.service-details-content h4,
.project-details-content h4,
.feature-content h4 {
    color: #2c3e50 !important;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* النصوص العادية */
.service-details-content p,
.project-details-content p,
.service-subtitle,
.project-category,
.feature-content p {
    color: #555 !important;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

/* بطاقات الميزات */
.service-feature-item,
.feature-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-feature-item:hover,
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(107, 65, 255, 0.15);
    border-color: #6B41FF;
}

/* أيقونات الميزات */
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6B41FF, #A0EA71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ffffff !important;
    font-size: 24px;
}

/* قائمة الفوائد */
.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    color: #555 !important;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    color: #28a745 !important;
    margin-left: 10px;
    font-size: 18px;
}

/* خطوات العمل */
.process-step {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: #6B41FF;
    box-shadow: 0 10px 25px rgba(107, 65, 255, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6B41FF, #A0EA71);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-content h4 {
    margin-top: 10px;
    color: #2c3e50 !important;
}

.step-content p {
    color: #666 !important;
}

/* الشريط الجانبي */
.service-sidebar,
.project-sidebar {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

/* ويدجت معلومات الخدمة/المشروع */
.service-info-widget,
.project-info-widget,
.contact-widget,
.service-share-widget,
.project-share-widget,
.related-projects-widget {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-info-widget h4,
.project-info-widget h4,
.contact-widget h4,
.service-share-widget h4,
.project-share-widget h4,
.related-projects-widget h4 {
    color: #2c3e50 !important;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #6B41FF;
    padding-bottom: 10px;
}

/* قائمة معلومات الخدمة/المشروع */
.service-info-list,
.project-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-info-list li,
.project-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-info-list li:last-child,
.project-info-list li:last-child {
    border-bottom: none;
}

.service-info-list .label,
.project-info-list .label {
    color: #666 !important;
    font-weight: 600;
    flex: 0 0 40%;
}

.service-info-list .value,
.project-info-list .value {
    color: #333 !important;
    flex: 1;
    text-align: left;
}

/* شارات التقنيات */
.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-badge {
    background: linear-gradient(135deg, #6B41FF, #A0EA71);
    color: #ffffff !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}



/* معرض الصور */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 65, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.popup-image {
    color: #ffffff !important;
    font-size: 24px;
    text-decoration: none;
}

/* الإحصائيات */
.stat-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #6B41FF;
    box-shadow: 0 10px 25px rgba(107, 65, 255, 0.1);
}

.stat-item h4 {
    color: #6B41FF !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    color: #666 !important;
    font-weight: 600;
    margin: 0;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .service-details-wrapper,
    .project-details-wrapper {
        padding: 20px;
        margin: 15px;
    }
    
    .service-details-content h2,
    .project-details-content h2 {
        font-size: 2rem;
    }
    
    .service-details-content h3,
    .project-details-content h3 {
        font-size: 1.5rem;
    }
    
    .service-sidebar,
    .project-sidebar {
        margin-top: 30px;
        padding: 20px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .technologies {
        justify-content: center;
    }
}

/* تحسين النصوص للقراءة */
.service-details-content,
.project-details-content {
    line-height: 1.8;
}

/* إضافة تأثيرات بصرية للعناصر التفاعلية */
.service-feature-item,
.feature-item,
.process-step,
.related-project-card,
.related-project-item,
.stat-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تحسين التباين للنصوص */
.service-details-section *,
.project-details-section * {
    text-shadow: none !important;
}

/* التأكد من وضوح النصوص على جميع الخلفيات */
.service-details-section,
.project-details-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}