/**
 * Estilos do YouTube Playlist Carousel Slider
 */

.ypcs-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 50px;
}

.ypcs-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 30px;
}

.ypcs-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.ypcs-carousel-item {
    flex: 0 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.ypcs-video-card {
    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;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ypcs-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ypcs-video-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ypcs-video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

.ypcs-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ypcs-video-card:hover .ypcs-video-thumbnail img {
    transform: scale(1.05);
}

.ypcs-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ypcs-play-button svg {
    width: 30px;
    height: 30px;
    margin-left: 3px;
}

.ypcs-video-card:hover .ypcs-play-button {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.ypcs-video-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ypcs-video-title {
    margin: 0 0 10px 0;
    font-size: 20px!important;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ypcs-video-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ypcs-carousel-button {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.ypcs-carousel-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.ypcs-carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.ypcs-carousel-button svg {
    width: 24px;
    height: 24px;
}

.ypcs-carousel-button-prev {
    left: 0;
}

.ypcs-carousel-button-next {
    right: 0;
}

.ypcs-carousel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ypcs-carousel-button:disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ypcs-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 0;
}

.ypcs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ypcs-dot:hover {
    background: #999;
    transform: scale(1.2);
}

.ypcs-dot.active {
    background: #ff0000;
    width: 14px;
    height: 14px;
}

/* Responsividade */
@media (max-width: 768px) {
    .ypcs-carousel-container {
        padding: 0 40px;
    }
    
    .ypcs-carousel-button {
        width: 35px;
        height: 35px;
    }
    
    .ypcs-carousel-button svg {
        width: 20px;
        height: 20px;
    }
    
    .ypcs-video-title {
        font-size: 16px!important;
    }
    
    .ypcs-video-description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ypcs-carousel-container {
        padding: 0 30px;
    }
    
    .ypcs-carousel-item {
        padding: 0 5px;
    }
    
    .ypcs-carousel-button {
        width: 30px;
        height: 30px;
    }
    
    .ypcs-carousel-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ypcs-carousel-item {
    animation: fadeIn 0.5s ease-out;
}

