/* 
* Salista Beauty - sliders.css
* أنماط عناصر السلايدر
* تاريخ التحديث: 2025-04-12
*/

/* قسم التعليقات */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials:after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: var(--primary-light);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
}

/* حاوية السلايدر الرئيسية */
.testimonial-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 40px 0 60px;
    z-index: 1;
}

/* حاوية العناصر */
.testimonial-container {
    display: flex;
    width: 100%;
    position: relative;
}

/* عناصر التعليقات */
.testimonial-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 35px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    opacity: 0;
    display: none;
    border: 1px solid rgba(229, 121, 101, 0.1);
}

.testimonial-item:before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--primary-light);
    opacity: 0.3;
}

/* صورة العميل */
.client-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(229, 121, 101, 0.25);
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* تقييم العميل */
.client-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    color: #FFD700;
}

/* تعليق العميل */
.client-comment {
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-color, #171614);
    font-size: 16px;
    line-height: 1.7;
    min-height: 85px;
}

/* اسم ومعلومات العميل */
.client-name {
    text-align: center;
    font-weight: 700;
    color: var(--primary-color, #e57965);
    font-size: 18px;
    margin-bottom: 5px;
}

.client-title {
    text-align: center;
    color: var(--light-text, #7a7a7a);
    font-size: 14px;
}

/* أزرار التنقل */
.testimonial-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 15px;
}

#testimonialsLeft,
#testimonialsRight {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--secondary-color, #171614);
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

#testimonialsLeft {
    left: 15px;
}

#testimonialsRight {
    right: 15px;
}

#testimonialsLeft:hover,
#testimonialsRight:hover {
    background-color: var(--primary-color, #e57965);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(229, 121, 101, 0.3);
}

#testimonialsLeft.disabled,
#testimonialsRight.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* نقاط التنقل */
.testimonial-dots,
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}

.testimonial-dot,
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(229, 121, 101, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testimonial-dot.active,
.slider-dot.active {
    background-color: var(--primary-color, #e57965);
    transform: scale(1.2);
}

.testimonial-dot:focus,
.slider-dot:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* تنسيقات متجاوبة للشاشات المختلفة */
/* للأجهزة المكتبية الكبيرة */
@media (min-width: 1200px) {
    .testimonial-slider {
        padding: 70px 90px;
    }
    
    #testimonialsLeft {
        left: 25px;
    }
    
    #testimonialsRight {
        right: 25px;
    }
    
    .testimonial-item {
        padding: 40px 50px;
        max-width: 75%;
        margin: 0 auto;
        border-radius: 20px;
    }
    
    .client-comment {
        font-size: 18px;
        min-height: 100px;
        max-width: 90%;
        margin: 0 auto 25px;
    }
}

/* تعديلات للأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 1199px) {
    .testimonial-slider {
        padding: 55px 65px;
    }
    
    .testimonial-item {
        padding: 32px 40px 45px; /* زيادة المساحة من أسفل */
        max-width: 85%;
        margin: 0 auto;
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
        transform: rotate(-1deg); /* إمالة خفيفة للشمال */
    }
    
    #testimonialsLeft,
    #testimonialsRight {
        width: 42px;
        height: 42px;
    }
    
    #testimonialsLeft {
        left: 20px;
    }
    
    #testimonialsRight {
        right: 20px;
    }
    
    .client-image {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    
    .client-comment {
        font-size: 16px;
        line-height: 1.6;
        min-height: 90px;
        max-width: 92%;
        margin: 0 auto 20px;
    }
    
    .client-name {
        font-size: 17px;
        margin-bottom: 8px; /* زيادة المسافة بين الاسم والبلد */
    }
    
    .client-title {
        font-size: 14px;
        margin-bottom: 12px; /* إضافة مساحة لمنع القطع من الأسفل */
    }
}

/* تعديلات للهواتف */
@media (max-width: 767px) {
    .testimonial-slider {
        padding: 25px 15px 60px;
    }
    
    .testimonial-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 15px;
        margin: 0 5px;
    }
    
    #testimonialsLeft,
    #testimonialsRight {
        width: 40px;
        height: 40px;
    }
    
    #testimonialsLeft {
        left: 5px;
    }
    
    #testimonialsRight {
        right: 5px;
    }
    
    .client-comment {
        font-size: 15px;
        min-height: auto;
        margin-bottom: 15px;
    }
    
    .client-image {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .testimonial-slider {
        padding: 20px 10px 55px;
    }
    
    .testimonial-item {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .client-comment {
        font-size: 14px;
    }
    
    .client-image {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
        border-width: 3px;
    }
    
    .testimonial-item:before {
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
}