/**
 * Level6 Testimonial Video Widget Styles
 */

/* Wrapper */
.l6-testimonial-wrapper {
    width: 100%;
}

/* Inner Container */
.l6-testimonial-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Quote Side */
.l6-testimonial-quote-side {
    flex: 1;
    position: relative;
    padding: 20px 0;
}

/* Quote Marks - SVG */
.l6-quote-mark {
    display: block;
    opacity: 0.4;
    line-height: 0;
}

.l6-quote-mark svg {
    width: 60px;
    height: auto;
}

.l6-quote-mark svg path {
    fill: #4ECDC4;
}

.l6-quote-open {
    margin-bottom: -10px;
}

.l6-quote-close {
    margin-top: -20px;
    margin-left: auto;
    width: fit-content;
    transform: rotate(180deg);
}

/* Slider */
.l6-testimonial-slider {
    position: relative;
}

/* Slide */
.l6-testimonial-slide {
    display: none;
}

.l6-testimonial-slide.l6-active {
    display: block;
}

/* Text Row - Contains arrows and quote */
.l6-testimonial-text-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Testimonial Content */
.l6-testimonial-content {
    font-size: 24px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    text-align: center;
    flex: 1;
}

/* Navigation Arrows - Override Elementor button styles */
.l6-nav-arrow,
.l6-nav-arrow.l6-nav-prev,
.l6-nav-arrow.l6-nav-next,
button.l6-nav-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border: 2px solid #4ECDC4 !important;
    border-radius: 50% !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0 !important;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
}

.l6-nav-arrow:hover,
button.l6-nav-arrow:hover {
    background-color: #4ECDC4 !important;
    color: #ffffff !important;
    border-color: #4ECDC4 !important;
}

.l6-nav-arrow svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.l6-nav-arrow svg path {
    stroke: #ffffff;
}

.l6-nav-arrow:hover svg path {
    stroke: #ffffff;
}

/* Author Info */
.l6-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    text-align: center;
}

.l6-author-name {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.l6-author-company {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* Video Container */
.l6-video-container {
    width: 380px;
    flex-shrink: 0;
}

.l6-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
}

.l6-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Color Overlay */
.l6-video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.l6-video-wrapper.l6-playing::before {
    opacity: 0;
}

.l6-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Play Button */
.l6-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #FF6B6B;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.l6-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.l6-play-button svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    margin-left: 3px; /* Visual centering for play icon */
}

/* Video Playing State */
.l6-video-wrapper.l6-playing .l6-video-thumbnail,
.l6-video-wrapper.l6-playing .l6-play-button {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .l6-testimonial-inner {
        gap: 40px;
    }
    
    .l6-testimonial-content {
        font-size: 20px;
    }
    
    .l6-video-container {
        width: 320px;
    }
    
    .l6-quote-mark svg {
        width: 50px;
    }
}

@media (max-width: 768px) {
    .l6-testimonial-inner {
        flex-direction: column;
    }
    
    .l6-video-container {
        width: 100%;
        max-width: 500px;
    }
    
    .l6-testimonial-content {
        font-size: 18px;
    }
    
    .l6-testimonial-text-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .l6-nav-arrow {
        display: none;
    }
    
    .l6-quote-mark svg {
        width: 40px;
    }
}

/* Animation */
.l6-testimonial-slide {
    animation: l6-fadeIn 0.4s ease;
}

@keyframes l6-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Editor styles */
.elementor-editor-active .l6-testimonial-slide {
    display: block !important;
}

.elementor-editor-active .l6-testimonial-slide:not(:first-child) {
    display: none !important;
}
