/**
 * Modern Rich Testimonials Design
 * Premium, high-end testimonial cards with verified badges, gradients, and modern styling
 */

/* Grid layout is now in grid-symmetry-fix.css */

/* ============================================
   MODERN TESTIMONIAL CARD
   ============================================ */
.testimonial-card.modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f3f5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card.modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    border-color: #e0e7ff;
}

.testimonial-card.modern:hover::before {
    opacity: 1;
}

/* ============================================
   TESTIMONIAL HEADER
   ============================================ */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.author-avatar-modern {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.author-avatar-modern::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.author-name-row strong {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verified-badge {
    color: #3b82f6;
    font-size: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
    animation: verifiedPulse 2s ease-in-out infinite;
}

@keyframes verifiedPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.author-role-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.author-role-row i {
    font-size: 14px;
}

/* ============================================
   RATING ROW
   ============================================ */
.testimonial-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f5;
}

.stars-modern {
    display: flex;
    gap: 4px;
}

.stars-modern i {
    color: #fbbf24;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.rating-text {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-left: -4px;
}

.time-ago {
    font-size: 13px;
    color: #9ca3af;
    margin-left: auto;
    white-space: nowrap;
}

/* ============================================
   REVIEW TEXT
   ============================================ */
.testimonial-text-modern {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimonial-text-modern::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 48px;
    font-family: Georgia, serif;
    color: #e5e7eb;
    line-height: 1;
    font-style: normal;
}

/* ============================================
   STATS BOX - Modern Design
   ============================================ */
.testimonial-stats-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.stat-row + .stat-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #bbf7d0;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #065f46;
}

.stat-label i {
    font-size: 14px;
    color: #059669;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

.stat-growth {
    color: #059669;
}

/* ============================================
   PLATFORM HANDLE
   ============================================ */
.testimonial-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.testimonial-handle:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.testimonial-handle i {
    font-size: 14px;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 767px) {
    .testimonial-card.modern {
        padding: 20px;
    }

    .author-avatar-modern {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .author-name-row strong {
        font-size: 15px;
    }

    .testimonial-text-modern {
        font-size: 14px;
        padding-left: 16px;
    }

    .testimonial-text-modern::before {
        font-size: 36px;
        top: -6px;
    }

    .testimonial-stats-box {
        padding: 12px;
    }

    .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stat-row + .stat-row {
        margin-top: 10px;
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .testimonial-card.modern {
        padding: 16px;
        border-radius: 16px;
    }

    .testimonial-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .testimonial-rating-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .time-ago {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
.testimonials-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.testimonials-grid.loading .testimonial-card {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   SECTION HEADER
   ============================================ */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.testimonials-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-section-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-section-header p {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-section-header .trust-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.trust-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-stat-item strong {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-stat-item strong i {
    color: #fbbf24;
    font-size: 24px;
}

.trust-stat-item span {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-section-header {
        margin-bottom: 40px;
    }

    .testimonials-section-header h2 {
        font-size: 32px;
    }

    .testimonials-section-header p {
        font-size: 16px;
    }

    .trust-stat-item strong {
        font-size: 24px;
    }

    .trust-stat-item strong i {
        font-size: 18px;
    }
}
