/* Divi Scrolling Reviews Module Styles */

.dsr-scrolling-reviews {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: transparent;
    white-space: nowrap;
    padding: 20px 0;
}

.dsr-marquee {
    display: inline-flex;
    gap: 30px;
    animation: dsr-scroll 30s linear infinite;
    will-change: transform;
}

/* Pause animation on hover */
.dsr-scrolling-reviews:hover .dsr-marquee {
    animation-play-state: paused;
}

.dsr-review-item {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-width: 350px;
    max-width: 350px;
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    white-space: normal;
    vertical-align: top;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dsr-review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Circular Profile Images */
.dsr-review-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.dsr-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dsr-review-content {
    flex: 1;
    text-align: left;
}

/* Star Rating */
.dsr-review-rating {
    margin-bottom: 10px;
}

.dsr-star {
    color: #ffc107;
    font-size: 16px;
    margin-right: 2px;
}

.dsr-star-filled {
    color: #ffc107;
}

.dsr-star-empty {
    color: #e0e0e0;
}

.dsr-review-text {
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px 0;
    font-style: italic;
}

.dsr-review-author {
    color: #666666;
    font-size: 13px;
    font-weight: 600;
}

.dsr-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dsr-author-image {
    width: var(--dsr-image-size, 60px);
    height: var(--dsr-image-size, 60px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dsr-author-placeholder {
    width: var(--dsr-image-size, 60px);
    height: var(--dsr-image-size, 60px);
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.dsr-author-placeholder::before {
    content: '👤';
}

.dsr-author-name {
    font-weight: 600;
    color: var(--dsr-text-color, #333333);
    font-size: 16px;
    opacity: 0.8;
}

/* Keyframe animation for scrolling */
@keyframes dsr-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dsr-review-item {
        min-width: 280px;
        max-width: 280px;
        padding: 20px;
    }
    
    .dsr-marquee-track {
        gap: 20px;
    }
    
    .dsr-review-text {
        font-size: 14px;
    }
    
    .dsr-author-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .dsr-scrolling-reviews {
        padding: 15px 0;
    }
    
    .dsr-review-item {
        min-width: 250px;
        max-width: 250px;
        padding: 15px;
    }
    
    .dsr-review-text {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .dsr-stars {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .dsr-marquee-track {
        animation: none;
    }
    
    .dsr-scrolling-reviews {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
    }
    
    .dsr-marquee-track {
        width: max-content;
    }
}

/* RTL Support */
[dir="rtl"] .dsr-marquee-track {
    animation-direction: reverse;
}

[dir="rtl"] .dsr-author {
    flex-direction: row-reverse;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dsr-review-item {
        border: 2px solid currentColor;
    }
    
    .dsr-author-image {
        border: 2px solid currentColor;
    }
}

/* Keyframe Animation for Scrolling */
@keyframes dsr-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
