/* Elementor Videos Widget Styles */

.eall-videos-widget {
    width: 100%;
    margin: 0;
    padding: 0;
}

.eall-videos-widget .eall-videos-title {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.eall-videos-widget .eall-videos-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 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 {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.eall-videos-list .eall-video-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.eall-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.eall-video-wrapper iframe,
.eall-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.eall-video-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.eall-video-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #000;
    line-height: 1.4;
}

.eall-video-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.no-videos {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* Play Button Overlay */
.eall-video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.eall-video-wrapper::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    font-size: 32px;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.eall-video-item:hover .eall-video-wrapper::before,
.eall-video-item:hover .eall-video-wrapper::after {
    opacity: 1;
}

/* Slider Layout (optional) */
.eall-videos-slider .eall-videos-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.eall-videos-slider .eall-video-item {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
}

.eall-videos-slider .eall-videos-list::-webkit-scrollbar {
    height: 8px;
}

.eall-videos-slider .eall-videos-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.eall-videos-slider .eall-videos-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.eall-videos-slider .eall-videos-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 1200px) {
    .eall-videos-grid.columns-4 .eall-videos-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .eall-videos-slider .eall-video-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .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;
    }
    
    .eall-videos-list {
        gap: 20px;
    }
    
    .eall-video-title {
        font-size: 16px;
    }
    
    .eall-video-description {
        font-size: 13px;
    }
    
    .eall-videos-slider .eall-video-item {
        flex: 0 0 calc(100% - 10px);
    }
}

@media (max-width: 480px) {
    .eall-videos-grid .eall-videos-list {
        grid-template-columns: 1fr;
    }
    
    .eall-videos-widget .eall-videos-title {
        font-size: 22px;
    }
    
    .eall-video-content {
        padding: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .eall-video-item {
        background: #1a1a1a;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .eall-video-title {
        color: #000;
    }
    
    .eall-video-description {
        color: #b3b3b3;
    }
}