/**
 * Client Stories Section Styles
 * Reviews/Testimonials Section
 *
 * @package RankExpert
 * @since 1.0.0
 */

/* ========== CLIENT STORIES SECTION ========== */
.client-stories-section {
    padding: clamp(60px, 10vw, 120px) 0;
    background: #ffffff;
}

/* Section Header - Centered */
.section-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(40px, 6vw, 60px);
}

.section-title-center {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title-center::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #00D9A3;
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-description-center {
    font-size: clamp(16px, 1.8vw, 18px);
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(24px, 3vw, 32px);
    margin: 0;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Review Card */
.review-card {
    background: #F8F9FA;
    border-radius: 12px;
    padding: clamp(32px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Rating Stars */
.review-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.review-rating .star {
    font-size: 20px;
    color: #E0E0E0;
    transition: color 0.2s ease;
}

.review-rating .star.filled {
    color: #FFB800;
}

/* Review Content */
.review-content {
    flex: 1;
    font-size: clamp(15px, 1.6vw, 16px);
    line-height: 1.7;
    color: #4A4A4A;
}

.review-content p {
    margin: 0 0 12px 0;
}

.review-content p:last-child {
    margin-bottom: 0;
}

/* Review Author Section */
.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
}

.review-quote-icon {
    flex-shrink: 0;
    width: 40px;
    height: 32px;
    color: #00D9A3;
}

.review-quote-icon svg {
    width: 100%;
    height: 100%;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.author-company {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* No Reviews State */
.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999999;
    font-size: 16px;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

/* Tablet */
@media (max-width: 1023px) {
    .client-stories-section {
        padding: clamp(50px, 8vw, 80px) 0;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .client-stories-section {
        padding: clamp(40px, 10vw, 60px) 0;
    }
    
    .section-header-center {
        margin-bottom: clamp(32px, 8vw, 48px);
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .review-card {
        padding: clamp(24px, 6vw, 32px);
    }
    
    .review-rating .star {
        font-size: 18px;
    }
    
    .review-quote-icon {
        width: 32px;
        height: 26px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .section-title-center::after {
        width: 60px;
        height: 3px;
    }
    
    .review-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .review-quote-icon {
        width: 36px;
        height: 29px;
    }
}

/* ========== ACCESSIBILITY ========== */

/* Focus States */
.review-card:focus-within {
    outline: 2px solid #00D9A3;
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .review-card {
        transition: none;
    }
    
    .review-card:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .review-card {
        border: 2px solid #1a1a1a;
    }
    
    .section-title-center::after {
        background: #000000;
    }
}

/* Print Styles */
@media print {
    .client-stories-section {
        padding: 40px 0;
    }
    
    .review-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #E0E0E0;
    }
}


