/* ========================================
   VCW Video Carousel Widget Styles
   ======================================== */

/* Main Wrapper */
.vcw-video-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* ========================================
   Main Featured Video Section
   ======================================== */

.vcw-main-video {
    position: relative;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.vcw-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.6) 100%);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.vcw-main-video:hover .vcw-video-overlay {
    opacity: 0.7;
}

.vcw-video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 20px;
}

.vcw-video-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    transition: transform 0.3s ease;
}

.vcw-main-video:hover .vcw-video-title {
    transform: translateY(-5px);
}

/* Play Button */
.vcw-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #ffb106;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 177, 6, 0.4);
    position: relative;
}

.vcw-play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffb106;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.vcw-play-button:hover {
    transform: scale(1.1);
    background-color: #ffffff;
    box-shadow: 0 6px 25px rgba(255, 177, 6, 0.6);
}

.vcw-play-button i {
    font-size: 40px;
    color: #ffffff;
    margin-left: 4px;
}

.vcw-play-button:hover i {
    color: #ffb106;
}

/* ========================================
   Thumbnail Row Section
   ======================================== */

.vcw-thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.vcw-thumbnails-scroll-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.vcw-thumbnails-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.vcw-thumbnails-scroll-container.show-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #ffb106 #2a2a2a;
}

.vcw-thumbnails-scroll-container.show-scrollbar::-webkit-scrollbar {
    display: block;
    height: 8px;
}

.vcw-thumbnails-scroll-container.show-scrollbar::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.vcw-thumbnails-scroll-container.show-scrollbar::-webkit-scrollbar-thumb {
    background: #ffb106;
    border-radius: 4px;
}

.vcw-thumbnails-scroll-container.show-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #ffc933;
}

.vcw-thumbnails-container {
    display: flex;
    gap: 15px;
    padding: 5px 0;
}

/* Thumbnail Items */
.vcw-thumbnail-item {
    position: relative;
    width: 250px;
    min-width: 250px;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.vcw-thumbnail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.vcw-thumbnail-item.active {
    border-color: #ffb106;
    box-shadow: 0 0 20px rgba(255, 177, 6, 0.5);
}

/* Hover Effects */
.vcw-video-carousel-wrapper[data-hover-effect="scale"] .vcw-thumbnail-item:hover {
    transform: scale(1.05);
}

.vcw-video-carousel-wrapper[data-hover-effect="lift"] .vcw-thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.vcw-thumbnail-item:hover::before {
    opacity: 0.5;
}

.vcw-thumbnail-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vcw-thumbnail-item:hover .vcw-thumbnail-overlay {
    opacity: 1;
}

.vcw-thumbnail-overlay i {
    font-size: 30px;
    color: #ffffff;
    background-color: #ffb106;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.vcw-thumbnail-item:hover .vcw-thumbnail-overlay i {
    background-color: #ffffff;
    color: #ffb106;
}

.vcw-thumbnail-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Navigation Arrows
   ======================================== */

.vcw-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffb106;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    z-index: 10;
}

.vcw-arrow:hover {
    background-color: #ffc933;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 177, 6, 0.5);
}

.vcw-arrow:active {
    transform: scale(0.95);
}

.vcw-arrow i {
    font-size: 20px;
    color: #000000;
}

.vcw-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vcw-arrow:disabled:hover {
    transform: none;
    background-color: #ffb106;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .vcw-main-video {
        height: 400px;
        margin-bottom: 25px;
    }

    .vcw-video-title {
        font-size: 28px;
    }

    .vcw-play-button {
        width: 70px;
        height: 70px;
    }

    .vcw-play-button i {
        font-size: 35px;
    }

    .vcw-thumbnail-item {
        width: 200px;
        min-width: 200px;
        height: 120px;
    }

    .vcw-arrow {
        width: 35px;
        height: 35px;
    }

    .vcw-arrow i {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .vcw-main-video {
        height: 300px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .vcw-video-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .vcw-play-button {
        width: 60px;
        height: 60px;
    }

    .vcw-play-button i {
        font-size: 30px;
    }

    .vcw-thumbnail-item {
        width: 180px;
        min-width: 180px;
        height: 100px;
    }

    .vcw-thumbnail-title {
        font-size: 12px;
        padding: 8px;
    }

    .vcw-thumbnails-wrapper {
        gap: 10px;
    }

    .vcw-thumbnails-container {
        gap: 10px;
    }

    .vcw-arrow {
        width: 32px;
        height: 32px;
    }

    .vcw-arrow i {
        font-size: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .vcw-main-video {
        height: 250px;
    }

    .vcw-video-title {
        font-size: 18px;
    }

    .vcw-play-button {
        width: 50px;
        height: 50px;
    }

    .vcw-play-button i {
        font-size: 25px;
    }

    .vcw-thumbnail-item {
        width: 150px;
        min-width: 150px;
        height: 85px;
    }

    .vcw-arrow {
        display: none;
        /* Hide arrows on very small screens */
    }

    .vcw-thumbnails-wrapper {
        gap: 0;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.vcw-play-button:focus,
.vcw-arrow:focus,
.vcw-thumbnail-item:focus {
    outline: 2px solid #ffb106;
    outline-offset: 2px;
}

/* Keyboard Navigation */
.vcw-thumbnail-item:focus-visible {
    border-color: #ffb106;
    box-shadow: 0 0 0 3px rgba(255, 177, 6, 0.3);
}

/* ========================================
   Loading State
   ======================================== */

.vcw-video-carousel-wrapper.loading .vcw-main-video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 177, 6, 0.3);
    border-top-color: #ffb106;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   Elementor Editor Specific
   ======================================== */

.elementor-editor-active .vcw-video-carousel-wrapper {
    pointer-events: auto;
}

.elementor-editor-active .vcw-thumbnail-item {
    cursor: pointer;
}