/* Gonemo Testimonials Widget Styles */

.gonemo-testimonials-container {
    margin: 0 auto;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    overflow: hidden;
}

/* Header Styles */
.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1f2937;
}

.highlighted-text {
    color: #3b82f6;
    display: inline-block;
}

.testimonials-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Carousel Container */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.testimonials-track {
    display: flex;
    gap: 30px;
    animation: scroll-infinite 30s linear infinite;
    width: fit-content;
}

.testimonials-carousel:hover .testimonials-track {
    animation-play-state: paused;
}

/* Testimonial Card */
.testimonial-card {
    flex: 0 0 350px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

/* Star Rating */
.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.star {
    font-size: 20px;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.star.filled {
    color: #fcd34d;
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.3);
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #e5e7eb;
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: serif;
    line-height: 1;
}

/* Person Info */
.person-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.person-avatar {
    flex-shrink: 0;
}

.person-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f3f4f6;
}

.person-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    text-transform: uppercase;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.person-details {
    flex: 1;
    min-width: 0;
}

.person-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.person-position {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.company-name {
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* Infinite Scroll Animation */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gonemo-testimonials-container {
        padding: 40px 15px;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
    
    .testimonials-subtitle {
        font-size: 1rem;
    }
    
    .testimonial-card {
        flex: 0 0 280px;
        padding: 20px;
    }
    
    .testimonials-track {
        gap: 20px;
    }
    
    .testimonials-track {
        animation-duration: 40s;
    }
}

@media (max-width: 480px) {
    .testimonials-title {
        font-size: 1.75rem;
    }
    
    .testimonial-card {
        flex: 0 0 250px;
        padding: 18px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .person-name {
        font-size: 0.9rem;
    }
    
    .person-position,
    .company-name {
        font-size: 0.8rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .testimonials-track {
        animation: none;
    }
    
    .testimonial-card {
        transition: none;
    }
    
    .star {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .testimonial-card {
        border: 2px solid #000;
    }
    
    .testimonials-title {
        color: #000;
    }
    
    .highlighted-text {
        color: #0066cc;
    }
}

/* Print styles */
@media print {
    .gonemo-testimonials-container {
        background: white;
        box-shadow: none;
    }
    
    .testimonials-track {
        animation: none;
        flex-wrap: wrap;
    }
    
    .testimonial-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}