/* SD Videos - Frontend Styles */

.sd-videos-grid-wrapper {
    width: 100%;
    margin: 0 auto 40px auto;
}

.sd-videos-grid {
    width: 100%;
    display: grid;
    margin-bottom: 20px;
}

.sd-video-item {
    width: 100%;
    margin-bottom: 20px;
}

.sd-video-embed {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.sd-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.sd-video-spacer {
    display: block;
    clear: both;
    height: 1px;
}

/* Video Featured */
.sd-video-featured-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 40px auto;
}

.sd-video-featured-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.sd-video-featured-embed {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sd-video-featured-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Pagination */
.sd-videos-pagination {
    margin-top: 30px;
    text-align: center;
    clear: both;
    display: block;
}

.sd-videos-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.sd-videos-pagination li {
    margin: 0;
}

.sd-videos-pagination a,
.sd-videos-pagination span {
    display: block;
    padding: 8px 16px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.sd-videos-pagination a:hover {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.sd-videos-pagination .current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* Empty states */
.sd-videos-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.sd-videos-empty-state p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.sd-videos-featured-empty,
.sd-videos-featured-error {
    text-align: center;
    padding: 60px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.sd-videos-featured-empty p,
.sd-videos-featured-error p {
    color: #856404;
    font-size: 16px;
    margin: 0;
}

/* Responsive - Mobile ONLY */
@media (max-width: 768px) {
    /* Forcer l'affichage en 1 colonne */
    .sd-videos-grid-wrapper {
        display: block;
        width: 100%;
    }
    
    .sd-videos-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    .sd-video-item {
        width: 100%;
        display: block;
        margin-bottom: 20px;
    }
    
    .sd-video-embed {
        width: 100%;
        display: block;
    }
    
    .sd-video-spacer {
        display: none;
    }
    
    .sd-video-featured-wrapper {
        display: block;
        width: 100%;
    }
    
    .sd-video-featured-embed {
        width: 100%;
        display: block;
    }
    
    .sd-video-featured-title {
        font-size: 22px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .sd-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

