/* Testimonials Block Styles - Enhanced with ratings and visual polish */
.wp-block-statusdrift-testimonials {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.wp-block-statusdrift-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Header Section */
.wp-block-statusdrift-testimonials .testimonials-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.wp-block-statusdrift-testimonials .testimonials-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wp-block-statusdrift-testimonials .testimonials-header h2 {
    margin-bottom: 1rem;
    color: #111827;
    font-size: 2.5rem;
    font-weight: 800;
}

.wp-block-statusdrift-testimonials .testimonials-header p {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Testimonials Grid */
.wp-block-statusdrift-testimonials .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Testimonial Card */
.wp-block-statusdrift-testimonials .testimonial-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.wp-block-statusdrift-testimonials .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #3B82F6, #10B981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-block-statusdrift-testimonials .testimonial-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.wp-block-statusdrift-testimonials .testimonial-card:hover::before {
    opacity: 1;
}

/* Quote Icon */
.wp-block-statusdrift-testimonials .testimonial-quote-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #8B5CF6;
}

/* Star Rating */
.wp-block-statusdrift-testimonials .testimonial-rating {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 1rem;
    color: #F59E0B;
}

.wp-block-statusdrift-testimonials .testimonial-rating svg {
    width: 18px;
    height: 18px;
}

/* Quote Content */
.wp-block-statusdrift-testimonials .testimonial-content {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    flex-grow: 1;
}

/* Author Section */
.wp-block-statusdrift-testimonials .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.wp-block-statusdrift-testimonials .testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    letter-spacing: 0.025em;
}

.wp-block-statusdrift-testimonials .testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.wp-block-statusdrift-testimonials .testimonial-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

.wp-block-statusdrift-testimonials .testimonial-role {
    font-size: 0.8125rem;
    color: #6b7280;
}

.wp-block-statusdrift-testimonials .testimonial-role strong {
    color: #374151;
    font-weight: 600;
}

/* Trust Indicator Footer */
.wp-block-statusdrift-testimonials .testimonials-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
}

.wp-block-statusdrift-testimonials .testimonials-trust-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wp-block-statusdrift-testimonials .testimonials-trust-stars {
    display: flex;
    gap: 0.125rem;
    color: #F59E0B;
}

.wp-block-statusdrift-testimonials .testimonials-trust-stars svg {
    width: 20px;
    height: 20px;
}

.wp-block-statusdrift-testimonials .testimonials-trust-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.wp-block-statusdrift-testimonials .testimonials-trust-text {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .wp-block-statusdrift-testimonials .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide third card on tablet if needed, or show 2x2 grid */
    .wp-block-statusdrift-testimonials .testimonial-card:nth-child(3) {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .wp-block-statusdrift-testimonials {
        padding: 4rem 0;
    }

    .wp-block-statusdrift-testimonials .testimonials-header h2 {
        font-size: 2rem;
    }

    .wp-block-statusdrift-testimonials .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wp-block-statusdrift-testimonials .testimonial-card:nth-child(3) {
        grid-column: span 1;
        max-width: none;
    }

    .wp-block-statusdrift-testimonials .testimonial-card {
        padding: 1.5rem;
    }

    .wp-block-statusdrift-testimonials .testimonial-content {
        font-size: 0.9375rem;
    }

    .wp-block-statusdrift-testimonials .testimonials-trust {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .wp-block-statusdrift-testimonials .testimonials-header {
        margin-bottom: 2rem;
    }

    .wp-block-statusdrift-testimonials .testimonials-header h2 {
        font-size: 1.75rem;
    }

    .wp-block-statusdrift-testimonials .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    .wp-block-statusdrift-testimonials .testimonial-quote-icon svg {
        width: 24px;
        height: 24px;
    }
}
