/* Product Videos Frontend Styles */

.product-videos {
    margin: 30px 0;
    padding: 20px;
}

.videos-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-content {
    padding: 15px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.video-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.no-videos {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Elementor Widget Styles */
.eall-videos-widget {
    margin: 30px 0;
}

.eall-videos-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.eall-videos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Grid Layout */
.eall-videos-grid .eall-videos-list {
    display: grid;
    gap: 30px;
}

.eall-videos-grid.columns-1 .eall-videos-list {
    grid-template-columns: 1fr;
}

.eall-videos-grid.columns-2 .eall-videos-list {
    grid-template-columns: repeat(2, 1fr);
}

.eall-videos-grid.columns-3 .eall-videos-list {
    grid-template-columns: repeat(3, 1fr);
}

.eall-videos-grid.columns-4 .eall-videos-list {
    grid-template-columns: repeat(4, 1fr);
}

/* List Layout */
.eall-videos-list .eall-video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eall-videos-list .eall-video-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.eall-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.eall-video-wrapper iframe,
.eall-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.eall-video-content {
    padding: 15px;
}

.eall-video-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.eall-video-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.eall-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eall-video-item:hover .eall-video-overlay {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .eall-videos-grid.columns-4 .eall-videos-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-grid,
    .eall-videos-grid.columns-3 .eall-videos-list,
    .eall-videos-grid.columns-4 .eall-videos-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .eall-videos-grid.columns-2 .eall-videos-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .videos-grid,
    .eall-videos-grid .eall-videos-list {
        grid-template-columns: 1fr;
    }
    
    .video-title,
    .eall-video-title {
        font-size: 16px;
    }
    
    .video-description,
    .eall-video-description {
        font-size: 13px;
    }
}