/* ===========================
   PROFESSIONAL TESTIMONIALS SECTION
   Modern Reviews Design
   =========================== */

.testimonials-preview {
    position: relative;
    overflow: hidden;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.1), rgba(0, 201, 255, 0.1));
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 119, 190, 0.2);
}

.section-badge i {
    color: var(--accent-color);
    font-size: 16px;
}

.section-badge span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

/* Rating Summary */
.rating-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 50px 0;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 119, 190, 0.1);
}

.rating-overview {
    text-align: center;
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.score-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 6px;
}

.rating-stars i {
    color: #ffa500;
    font-size: 24px;
}

.rating-text {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Platform Badges */
.rating-platforms {
    display: flex;
    gap: 24px;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fafbfc, #f8f9fa);
    border-radius: 16px;
    border: 1px solid rgba(0, 119, 190, 0.1);
    transition: all 0.3s ease;
}

.platform-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 119, 190, 0.15);
}

.platform-badge i {
    font-size: 32px;
}

.platform-badge .fab.fa-google {
    color: #4285f4;
}

.platform-badge .fab.fa-facebook {
    color: #1877f2;
}

.platform-name {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.platform-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 18px;
}

.platform-rating i {
    font-size: 14px;
    color: #ffa500;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Professional Testimonial Card */
.testimonial-card-pro {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 119, 190, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 119, 190, 0.05);
    position: relative;
}

.testimonial-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 119, 190, 0.15);
}

/* Featured Card */
.testimonial-card-pro.featured {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 32px;
    background: linear-gradient(135deg, var(--accent-color), #f39c12);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

.featured-badge i {
    font-size: 14px;
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.testimonial-avatar {
    display: flex;
    gap: 16px;
    align-items: center;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 119, 190, 0.2);
}

.author-info h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.author-title {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2ecc71;
    font-weight: 600;
}

.verified-badge i {
    font-size: 14px;
}

/* Testimonial Rating */
.testimonial-rating {
    text-align: right;
}

.testimonial-rating .stars {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    justify-content: flex-end;
}

.testimonial-rating .stars i {
    color: #ffa500;
    font-size: 16px;
}

.rating-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Quote Icon */
.quote-icon {
    margin-bottom: 16px;
}

.quote-icon i {
    font-size: 32px;
    color: rgba(0, 119, 190, 0.15);
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 20px;
    font-style: italic;
}

/* Testimonial Meta */
.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 119, 190, 0.1);
    font-size: 13px;
}

.service-used,
.review-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
}

.service-used i,
.review-date i {
    color: var(--primary-color);
}

/* Helpful Section */
.helpful-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 119, 190, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.helpful-section > span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.helpful-buttons {
    display: flex;
    gap: 8px;
}

.helpful-btn {
    background: rgba(0, 119, 190, 0.05);
    border: 1px solid rgba(0, 119, 190, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.helpful-btn:hover {
    background: rgba(0, 119, 190, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.helpful-btn i {
    font-size: 14px;
}

/* Testimonials CTA */
.testimonials-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 50px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.testimonials-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.cta-buttons .btn {
    white-space: nowrap;
}

.cta-buttons .btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: transparent;
    color: white;
}

.cta-buttons .btn-primary {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .rating-summary {
        flex-direction: column;
        gap: 32px;
    }
    
    .rating-platforms {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .rating-summary {
        padding: 30px 20px;
    }
    
    .score-number {
        font-size: 3rem;
    }
    
    .rating-platforms {
        flex-direction: column;
        width: 100%;
    }
    
    .platform-badge {
        width: 100%;
        justify-content: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card-pro {
        padding: 24px;
    }
    
    .testimonial-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .testimonial-rating {
        text-align: left;
        width: 100%;
    }
    
    .testimonial-rating .stars {
        justify-content: flex-start;
    }
    
    .testimonial-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .helpful-section {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .testimonials-cta {
        padding: 32px 24px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h3 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 0 16px;
    }
    
    .rating-summary {
        padding: 24px 16px;
    }
    
    .testimonial-avatar {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-circle {
        margin: 0 auto;
    }
    
    .helpful-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .helpful-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card-pro {
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-card-pro:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-card-pro:nth-child(3) {
    animation-delay: 0.2s;
}
