/* Video Testimonial Slider - CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables with defaults */
:root {
    --vts-play-button-color: #00D4D4;
    --vts-name-color: #FFFFFF;
    --vts-title-color: #CCCCCC;
    --vts-card-radius: 12px;
    --vts-card-height: 450px;
    --vts-gap: 20px;
    --vts-dot-active: #333333;
    --vts-dot-inactive: #CCCCCC;
}

/* Reset */
.vts-slider-container,
.vts-slider-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main Container */
.vts-slider-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0px;
}

/* Slider Wrapper */
.vts-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

/* Slider Track */
.vts-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: var(--vts-gap);
}

/* Individual Slide */
.vts-slide {
    flex: 0 0 calc((100% - (var(--vts-gap) * 2)) / 3);
    min-width: 0;
}

/* Card */
.vts-card {
    position: relative;
    height: var(--vts-card-height);
    border-radius: var(--vts-card-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vts-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Thumbnail */
.vts-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.vts-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
}

/* Play Button */
.vts-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 3px solid var(--vts-play-button-color);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.vts-play-button svg {
    width: 24px;
    height: 24px;
    color: #fff;
    margin-left: 4px;
}

.vts-play-button:hover {
    background: var(--vts-play-button-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.vts-play-button:hover svg {
    color: #fff;
}

/* Info Section */
.vts-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    z-index: 2;
}

.vts-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--vts-name-color);
    margin-bottom: 6px;
    line-height: 1.3;
}

.vts-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--vts-title-color);
    line-height: 1.4;
    opacity: 0.9;
}

/* Navigation Arrows */
.vts-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.vts-arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.vts-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vts-arrow svg {
    width: 24px;
    height: 24px;
    color: #333;
}

.vts-arrow-prev {
    left: 15px;
}

.vts-arrow-next {
    right: 15px;
}

/* Pagination Dots */
.vts-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.vts-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--vts-dot-inactive);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.vts-dot:hover {
    background: var(--vts-dot-active);
    opacity: 0.7;
}

.vts-dot.active {
    width: 30px;
    border-radius: 10px;
    background: var(--vts-dot-active);
}

/* Modal Styles */
.vts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.vts-modal.active {
    display: flex;
}

.vts-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.vts-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 1;
}

.vts-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.vts-modal-close svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.vts-modal-close:hover {
    transform: scale(1.1);
}

.vts-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.vts-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
    .vts-slide {
        flex: 0 0 calc((100% - var(--vts-gap)) / 2);
    }

    .vts-card {
        --vts-card-height: 400px;
    }

    .vts-play-button {
        width: 60px;
        height: 60px;
    }

    .vts-play-button svg {
        width: 20px;
        height: 20px;
    }

    .vts-arrow {
        width: 44px;
        height: 44px;
    }

    .vts-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .vts-slider-container {
        padding: 15px 0 50px;
    }

    .vts-slide {
        flex: 0 0 100%;
    }

    .vts-card {
        --vts-card-height: 380px;
    }

    .vts-name {
        font-size: 16px;
    }

    .vts-title {
        font-size: 13px;
    }

    .vts-play-button {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }

    .vts-play-button svg {
        width: 18px;
        height: 18px;
    }

    .vts-arrow {
        width: 40px;
        height: 40px;
    }

    .vts-arrow-prev {
        left: 10px;
    }

    .vts-arrow-next {
        right: 10px;
    }

    .vts-arrow svg {
        width: 18px;
        height: 18px;
    }

    .vts-dots {
        gap: 8px;
        margin-top: 25px;
    }

    .vts-dot {
        width: 8px;
        height: 8px;
    }

    .vts-dot.active {
        width: 24px;
    }

    .vts-modal-content {
        width: 95%;
    }

    .vts-modal-close {
        top: -45px;
        right: 5px;
    }

    .vts-modal-close svg {
        width: 26px;
        height: 26px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .vts-card {
        --vts-card-height: 320px;
    }

    .vts-info {
        padding: 20px 15px;
    }

    .vts-name {
        font-size: 15px;
    }

    .vts-title {
        font-size: 12px;
    }

    .vts-play-button {
        width: 50px;
        height: 50px;
    }

    .vts-play-button svg {
        width: 16px;
        height: 16px;
        margin-left: 3px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .vts-card:hover {
        transform: none;
        box-shadow: none;
    }

    .vts-play-button:hover {
        background: rgba(0, 0, 0, 0.3);
        transform: translate(-50%, -50%);
    }
}

/* Animation for slide entrance */
@keyframes vtsSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vts-slide {
    animation: vtsSlideIn 0.5s ease forwards;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .vts-slider-track {
        transition: none;
    }

    .vts-card,
    .vts-play-button,
    .vts-arrow,
    .vts-dot,
    .vts-modal-close {
        transition: none;
    }

    .vts-slide {
        animation: none;
    }
}