/**
 * HDev Library Module - Video Carousel Tab Styles
 * Tab 2: Videos Carousel with center scaling effect
 */

/* ===================================
   VIDEOS CAROUSEL
   =================================== */
.hdev-videos-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.hdev-videos-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 0 120px;
}

.hdev-videos-track {
    display: flex;
    gap: 10px;
    transition: transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    will-change: transform;
    padding: 30px 0;
    align-items: center;
}

.hdev-video-item {
    flex: 0 0 380px;
    min-width: 380px;
    transition: all 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    opacity: 0.4;
    transform: scale(0.7);
    cursor: pointer;
}

.hdev-video-item.center {
    opacity: 1;
    transform: scale(1.3);
    z-index: 2;
}

.hdev-video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    border: 4px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hdev-video-item.center .hdev-video-thumbnail {
    border-color: #daa520;
    box-shadow: 0 20px 60px rgba(218, 165, 32, 0.4);
}

.hdev-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hdev-video-item.center:hover .hdev-video-thumbnail img {
    transform: scale(1.05);
}

.hdev-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.hdev-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.hdev-video-item.center .hdev-video-play-button {
    opacity: 1;
}

.hdev-video-item.center:hover .hdev-video-play-button {
    transform: translate(-50%, -50%) scale(1.15);
}

.hdev-video-play-button svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* ===================================
   CASE 1: SINGLE VIDEO
   =================================== */
.hdev-videos-carousel-wrapper.single-video .hdev-videos-track {
    justify-content: center;
    transform: none !important;
}

.hdev-videos-carousel-wrapper.single-video .hdev-video-item {
    opacity: 1;
    transform: scale(1);
}

.hdev-videos-carousel-wrapper.single-video .hdev-video-item.center .hdev-video-thumbnail {
    border-color: #daa520;
    box-shadow: 0 20px 60px rgba(218, 165, 32, 0.4);
}

/* ===================================
   CASE 2: TWO VIDEOS
   =================================== */
.hdev-videos-carousel-wrapper.two-videos .hdev-videos-track {
    justify-content: center;
    gap: 30px;
    transform: none !important;
}

.hdev-videos-carousel-wrapper.two-videos .hdev-video-item {
    opacity: 1;
    transform: scale(1);
}

.hdev-videos-carousel-wrapper.two-videos .hdev-video-item:hover .hdev-video-thumbnail {
    border-color: #daa520;
    box-shadow: 0 20px 60px rgba(218, 165, 32, 0.4);
}

.hdev-videos-carousel-wrapper.two-videos .hdev-video-item:hover .hdev-video-play-button {
    opacity: 1;
}

/* Navigation Arrows */
.hdev-videos-nav {
    position: absolute;
    top: 25%;
    width: 70px;
    height: 70px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #2c3e50;
    padding: 0;
}

.hdev-videos-prev {
    left: 0;
}

.hdev-videos-next {
    right: 0;
}

/* Video Info */
.hdev-videos-info {
    text-align: center;
}

.hdev-videos-title {
    font-family: 'UTM Americana', serif;
    font-size: 24px;
    font-weight: 400;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 20px 0;
}

/* Diamond Pagination */
.hdev-videos-pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.hdev-videos-dot {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.hdev-videos-dot:hover {
    color: rgba(0, 0, 0, 0.6);
}

.hdev-videos-dot.active {
    color: #2c3e50;
    transform: scale(1.3);
}

/* ===================================
   RESPONSIVE DESIGN - VIDEO CAROUSEL
   =================================== */

/* Laptop screens (850px to 1599px) */
@media (max-width: 1599px) and (min-width: 850px) {
    .hdev-videos-carousel-wrapper {
        padding: 0px 80px;
    }
}

/* Videos Carousel Responsive */
@media (max-width: 1400px) {
    .hdev-videos-carousel-wrapper {
        padding: 20px 80px;
    }

    .hdev-video-item {
        flex: 0 0 300px;
        min-width: 300px;
    }

    .hdev-video-item.center {
        transform: scale(1.1);
    }
}

@media (max-width: 992px) {
    .hdev-videos-carousel-wrapper {
        padding: 40px 60px;
    }

    .hdev-video-item {
        flex: 0 0 260px;
        min-width: 260px;
    }

    .hdev-videos-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hdev-videos-carousel-wrapper {
        padding: 30px 40px;
    }

    .hdev-videos-track {
        gap: 20px;
    }

    .hdev-video-item {
        flex: 0 0 220px;
        min-width: 220px;
    }

    .hdev-video-item.center {
        transform: scale(1.25);
    }

    .hdev-videos-nav {
        display: none;
        /* Hide arrows on mobile - users can swipe */
    }

    .hdev-videos-title {
        font-size: 18px;
        letter-spacing: 2px;
    }
}