/**
 * Testimonial/Quote component styles for filterable components
 * Follows the JPK theme's design system
 */

.filterable-system {
    /* Testimonial/Quote component styling */
    & .filterable-card[data-type="testimonial-quote"] {
        position: relative;
        overflow: hidden;
        padding: var(--spacing-md);
        background: linear-gradient(to bottom, #959595 0%, #ffffff 100%);
 
        
        & .card-content {
            height: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            color:#000000;
        }
        
        & .testimonial-quote-content {
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            
            /* Quote container */
            & .quote-container {
                flex-grow: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
            
            /* Individual quote slides */
            & .quote-slide {
                opacity: 0;
                position: absolute;
                width: 100%;
                transform: translateX(20px);
                transition: opacity 0.4s ease, transform 0.4s ease;
                pointer-events: none;
                
                &.active {
                    opacity: 1;
                    position: relative;
                    transform: translateX(0);
                    pointer-events: auto;
                }
                .quote-image {
                    width: 292px;

                    @media (max-width: 1200px) {
                        width: 50%;
                    }
                    @media (max-width: 576px) {
                        width: 100%;
                        padding-bottom: var(--spacing-md);
                    }
                    img {
                        display: block;
                        width: 100%;
                        border-radius: var(--border-radius-secondary);
                    }
                }
                .quote-content {
                    width: calc(100% - 292px);
                    padding-left: var(--spacing-md);
                    padding-bottom: 90px;
                    font-size: 1.2rem;

                    @media (max-width: 1200px) {
                        width: 50%;
                    }
                    @media (max-width: 576px) {
                        width: 100%;
                        padding-left: 0px;
                    }
                }
                &.prev-slide {
                    transform: translateX(-20px);
                }
                
                & .quote-text {
                    margin-bottom: var(--spacing-sm);
                }
                
                & .quote-author {
                    font-family: var(--font-heading-primary);
                    font-weight: bold;
                    text-transform: uppercase;
                }
            }
            
            /* Quote controls */
            & .quote-controls {
                display: flex;
                justify-content: flex-start;
                gap: var(--spacing-sm);
                margin-top: var(--spacing-md);
                
                & button {
                    background: none;
                    border: none;
                    cursor: pointer;
                    padding: 0;
                    width: 30px;
                    height: 30px;
                    
                    &:hover {
                        opacity: 0.8;
                    }
                }
            }
            
        }
    }
    
    /* Quote icon - moved outside the nested structure for proper positioning */
    & .filterable-card[data-type="testimonial-quote"] .quote-icon {
        position: absolute;
        bottom:-60px;
        right: calc(var(--spacing-md));
        width: 160px;
        height: 160px;
        z-index: 1;
    }
}

/* No responsive scaling as per user request */

.home {
    .filterable-system {
        & .filterable-card[data-type="testimonial-quote"] {
            & .card-content {
                padding-bottom: 110px;
            }
            & .testimonial-quote-content {
                & .quote-slide {
                    .quote-image {
                        display: none;
                    }
                    .quote-content {
                        width: 100%;
                        padding-left: 0;
                        padding-bottom: 0;
                    }
                }
            }
        }
    }
}