/* 
   SlapIA - Reviews/Testimonials Styles
   Extracted from style.css
*/

/* Testimonials / Reviews marquee */
.reviews-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Mask edges for smooth fade */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-inner {
    display: flex;
    /* gap removed to ensure perfect loop math */
    align-items: center;
    white-space: nowrap;
    /* Remove animation for JS handled scrolling */
    animation: none !important;
    width: 100%;
    justify-content: start;
}

.reviews-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* Spacing added here to be part of the width calculation */
    padding-right: 0;
    gap: 36px;
    flex: 0 0 auto;
    width: max-content;
}

.review-item {
    min-width: 320px;
    max-width: 380px;
    width: 320px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(40, 40, 50, 0.8), rgba(20, 20, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.review-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(50, 50, 70, 0.9), rgba(30, 30, 40, 1));
    box-shadow: 0 12px 48px rgba(191, 90, 242, 0.2);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2997ff, #bf5af2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info {
    flex: 1;
}

.review-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.review-item .profession {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    margin-top: 2px;
    font-weight: 500;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 8px 0 0;
    line-height: 1.5;
    font-weight: 400;
    white-space: normal;
    /* Allow text to wrap */
    overflow-wrap: break-word;
    /* Prevent long words from overflowing */
}

/* Scrollable Review Content */
.review-content-scroll {
    max-height: 140px;
    overflow-y: auto;
    padding-right: 4px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.review-content-scroll::-webkit-scrollbar {
    width: 4px;
}

.review-content-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.review-content-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.company-name {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.review-stars {
    color: #ffc857;
    margin-top: 8px;
    font-size: 0.9rem;
}

.review-stars i {
    margin-right: 2px;
}

@keyframes reviews-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 991px) {
    .reviews-track {
        animation-duration: 20s;
    }
}

/* Carousel Navigation */
.reviews-navigation {
    display: flex;
    gap: 12px;
    margin-left: auto;
    /* Push to right if in flex container */
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nav-btn:active {
    transform: scale(0.95);
}