/* ========================================
   قسم آراء العملاء - Testimonials Section
   الملف: public/web/css/testimonials.css
======================================== */

/* الخلفية العامة */
.testimonials-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.testimonials-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://mohammed-almalgami.com/public/web/img/pattern-3.jpg');
    opacity: 0.03;
    pointer-events: none;
}

/* الأشكال الزخرفية */
.testimonials-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.testimonials-shapes .shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent 70%);
    top: -200px;
    left: -200px;
    animation: floatShape 25s ease-in-out infinite;
}

.testimonials-shapes .shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    bottom: -200px;
    right: -200px;
    animation: floatShape 20s ease-in-out infinite reverse;
}

.quote-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 400px;
    color: rgba(255, 215, 0, 0.02);
    pointer-events: none;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

/* ========================================
   رأس القسم
======================================== */
.testimonials-section .section-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.testimonials-section .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    color: #ffd700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.testimonials-section .section-badge i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.testimonials-section .section-title {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.testimonials-section .section-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.title-decoration .line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 3px;
}

.title-decoration i {
    color: #ff6b6b;
    font-size: 18px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========================================
   إحصائيات سريعة
======================================== */
.testimonials-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    padding: 30px 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.testimonials-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonials-stats .stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    border-radius: 15px;
    color: #ffd700;
    font-size: 24px;
}

.testimonials-stats .stat-info {
    text-align: right;
}

.testimonials-stats .stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.testimonials-stats .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   سلايدر الآراء
======================================== */
.testimonials-slider-wrapper {
    position: relative;
    padding: 20px 60px;
}

/* أزرار التنقل */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    border: none;
    border-radius: 50%;
    color: #1a1a2e;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.slider-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.slider-nav.prev-btn {
    right: 0;
}

.slider-nav.next-btn {
    left: 0;
}

/* السلايدر */
.testimonials-slider {
    overflow: hidden;
    border-radius: 20px;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   بطاقات الآراء
======================================== */
.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.testimonial-card .card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px;
    z-index: 2;
    transition: all 0.4s ease;
}

.testimonial-card:hover .card-inner {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* الخلفية المتدرجة */
.card-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.testimonial-card:hover .card-bg-gradient {
    opacity: 1;
}

/* ألوان البطاقات المختلفة */
.testimonial-card.gold .card-bg-gradient {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
}

.testimonial-card.blue .card-bg-gradient {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
}

.testimonial-card.purple .card-bg-gradient {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent);
}

.testimonial-card.green .card-bg-gradient {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), transparent);
}

.testimonial-card.orange .card-bg-gradient {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), transparent);
}

/* أيقونة الاقتباس */
.quote-icon {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    border-radius: 15px;
    color: #ffd700;
    font-size: 22px;
    transition: all 0.4s ease;
}

.testimonial-card:hover .quote-icon {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    color: #1a1a2e;
    transform: rotate(10deg) scale(1.1);
}

/* التقييم */
.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.testimonial-rating i.filled {
    color: #ffd700;
}

.testimonial-rating i.empty {
    color: rgba(255, 255, 255, 0.2);
}

.testimonial-rating i.half {
    background: linear-gradient(90deg, #ffd700 50%, rgba(255, 255, 255, 0.2) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonial-card:hover .testimonial-rating i {
    transform: scale(1.2);
}

.rating-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
    margin-right: 10px;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* محتوى الرأي */
.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* معلومات المؤلف */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 215, 0, 0.3);
    transition: all 0.4s ease;
}

.testimonial-card:hover .author-image img {
    border-color: #ffd700;
    transform: scale(1.05);
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #00c853, #00a844);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    border: 2px solid #1a1a2e;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}

.author-position {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.author-position .company {
    color: #ffd700;
}

/* تاريخ الرأي */
.testimonial-date {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
}

/* مؤشرات السلايدر */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-dots .dot.active {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    width: 35px;
    border-radius: 10px;
}

/* ========================================
   قسم إضافة رأي
======================================== */
.add-review-section {
    margin-top: 60px;
}

.review-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-content > i {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700, #ffab00);
    border-radius: 15px;
    color: #1a1a2e;
    font-size: 26px;
}

.cta-text h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}

.cta-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.add-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    border: none;
    border-radius: 50px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.add-review-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
}

/* ========================================
   نافذة إضافة رأي - Modal
======================================== */
.review-modal .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
}

.review-modal .modal-header {
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.review-modal .modal-title i {
    color: #ffd700;
}

.close-modal {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #ff4757;
    transform: rotate(90deg);
}

.review-modal .modal-body {
    padding: 30px;
}

.review-modal .form-group {
    margin-bottom: 25px;
}

.review-modal label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #ffd700;
    font-size: 18px;
}

.input-wrapper.textarea-wrapper i {
    top: 20px;
    transform: none;
}

.review-modal input,
.review-modal textarea {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.review-modal input:focus,
.review-modal textarea:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.review-modal input::placeholder,
.review-modal textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* تقييم النجوم */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #ffd700;
    transform: scale(1.1);
}

/* زر الإرسال */
.submit-review-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    border: none;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.submit-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

/* ========================================
   التجاوب مع الشاشات
======================================== */
@media (max-width: 1199px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 991px) {
    .testimonials-section {
        padding: 80px 0;
    }
    
    .testimonials-section .section-title {
        font-size: 40px;
    }
    
    .testimonials-stats {
        flex-wrap: wrap;
        gap: 30px;
        padding: 25px 30px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .testimonials-slider-wrapper {
        padding: 20px 50px;
    }
}

@media (max-width: 767px) {
    .testimonials-section .section-title {
        font-size: 32px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .testimonials-slider-wrapper {
        padding: 10px 0;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .slider-nav.prev-btn {
        right: -10px;
    }
    
    .slider-nav.next-btn {
        left: -10px;
    }
    
    .testimonials-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonials-stats .stat-item {
        flex-direction: column;
    }
    
    .testimonials-stats .stat-info {
        text-align: center;
    }
    
    .review-cta {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 25px;
    }
    
    .cta-content {
        flex-direction: column;
    }
    
    .testimonial-card .card-inner {
        padding: 25px;
    }
}

@media (max-width: 575px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-section .section-title {
        font-size: 28px;
    }
    
    .testimonials-section .section-badge {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .quote-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .testimonial-date {
        display: none;
    }
    
    .author-image {
        width: 50px;
        height: 50px;
    }
    
    .author-name {
        font-size: 16px;
    }
}
/* ========================================
   إضافات جديدة - شارة نوع المشروع
======================================== */
.project-badge {
    position: absolute;
    top: 20px;
    right: 70px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-badge i {
    font-size: 14px;
}

.testimonial-card.gold .project-badge { color: #ffd700; border-color: rgba(255, 215, 0, 0.3); }
.testimonial-card.blue .project-badge { color: #00d4ff; border-color: rgba(0, 212, 255, 0.3); }
.testimonial-card.green .project-badge { color: #00c853; border-color: rgba(0, 200, 83, 0.3); }
.testimonial-card.purple .project-badge { color: #a855f7; border-color: rgba(168, 85, 247, 0.3); }
.testimonial-card.orange .project-badge { color: #ff6b00; border-color: rgba(255, 107, 0, 0.3); }
.testimonial-card.teal .project-badge { color: #14b8a6; border-color: rgba(20, 184, 166, 0.3); }

/* ========================================
   بلد العميل
======================================== */
.author-country {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.author-country i {
    color: #ff6b6b;
    font-size: 11px;
}

/* ========================================
   شريط الدول
======================================== */
.countries-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    margin-bottom: 30px;
}

.countries-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    font-size: 16px;
    font-weight: 600;
}

.countries-title i {
    font-size: 22px;
}

.countries-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.country-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.country-flag {
    font-size: 22px;
}

.country-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ========================================
   لون Teal للبطاقات
======================================== */
.testimonial-card.teal .card-bg-gradient {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), transparent);
}

.testimonial-card.teal:hover .quote-icon {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

/* ========================================
   تحسينات إحصائيات
======================================== */
.testimonials-stats .stat-suffix {
    font-size: 20px;
    color: #ffd700;
    font-weight: 700;
}

/* ========================================
   تحسين CTA
======================================== */
.review-cta .cta-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700, #ffab00);
    border-radius: 20px;
    color: #1a1a2e;
    font-size: 28px;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
}

/* ========================================
   التجاوب - شريط الدول
======================================== */
@media (max-width: 991px) {
    .countries-bar {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }
    
    .countries-list {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .project-badge {
        position: static;
        margin-bottom: 15px;
    }
    
    .country-item {
        padding: 6px 12px;
    }
    
    .country-flag {
        font-size: 18px;
    }
    
    .country-name {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .countries-list {
        gap: 10px;
    }
}