/* ============================================================================
   WS-TESTIMONIALS — Component public
   ============================================================================ */

.ws-testimonials {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Track */
.ws-testimonials-track {
    display: flex;
    overflow: visible;
    transition: transform 0.5s ease;
    will-change: transform;
    cursor: grab;
}

.ws-testimonials-track.ws-dragging {
    cursor: grabbing;
    transition: none !important;
}

/* Slides */
.ws-testimonial-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--background-color-secondary, #f8f8f8);
    padding: 40px 30px 30px;
    transition: transform 0.4s ease;
}

/* Avatar */
.ws-testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: #ddd;
    flex-shrink: 0;
}

.ws-testimonial-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quote */
.ws-testimonial-quote {
    line-height: 1.7;
    font-style: italic;
    color: var(--text-color, #333);
    margin: 0 0 20px 0;
    flex: 1;
}

/* Author */
.ws-testimonial-author {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
}

.ws-testimonial-author strong {
    font-weight: 600;
    color: var(--text-color, #333);
}

/* Organization */
.ws-testimonial-org {
    margin: 0;
    color: var(--text-color, #333);
    opacity: 0.5;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Arrows */
.ws-testimonials-prev,
.ws-testimonials-next {
    position: fixed !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    width: 48px !important;
    height: 48px !important;
    cursor: pointer !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 48px !important;
    text-align: center !important;
    transition: background 0.2s, opacity 0.3s !important;
    z-index: 100 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: block !important;
}

.ws-testimonials-prev:hover,
.ws-testimonials-next:hover {
    background: rgba(0, 0, 0, 0.9) !important;
}

.ws-testimonials-prev { position: fixed !important; left: 16px !important; right: auto !important; }
.ws-testimonials-next { position: fixed !important; right: 16px !important; left: auto !important; }

.ws-testimonials-prev.ws-hidden,
.ws-testimonials-next.ws-hidden {
    opacity: 0;
    pointer-events: none;
}

.ws-testimonials[data-arrows="false"] .ws-testimonials-prev,
.ws-testimonials[data-arrows="false"] .ws-testimonials-next {
    display: none;
}

/* Dots */
.ws-testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 8px;
}

.ws-testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.ws-testimonials-dot.ws-active {
    background: var(--accent-color, #333);
    transform: scale(1.3);
}

.ws-testimonials[data-dots="false"] .ws-testimonials-dots {
    display: none;
}

/* Empty state (editor) */
.ws-testimonials-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    color: #999;
    font-size: 14px;
    gap: 8px;
}

.ws-testimonials-empty i {
    font-size: 32px;
    opacity: 0.5;
}

/* Responsive: en mobil les fletxes ajusten posició */
@media (max-width: 768px) {
    .ws-testimonials-prev {
        left: 8px !important;
    }
    .ws-testimonials-next {
        right: 8px !important;
    }
}
