/* local/ccpslider/styles/slider.css */

.ccpslider-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.ccpslider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ccpslider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.ccpslider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccpslider-slide.active {
    opacity: 1;
    z-index: 1;
}

.ccpslider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ccpslider-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ccpslider-link:hover {
    transform: scale(1.02);
}

.ccpslider-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
}

.ccpslider-video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.ccpslider-video-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.ccpslider-video-button .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.ccpslider-video-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Navigation buttons */
.ccpslider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ccpslider-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ccpslider-prev {
    left: 20px;
}

.ccpslider-next {
    right: 20px;
}

/* Dots navigation */
.ccpslider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.ccpslider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ccpslider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.ccpslider-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 30px;
    border-radius: 6px;
}

/* Responsive design */
@media (max-width: 768px) {
    .ccpslider-wrapper {
        height: 350px;
        border-radius: 12px;
    }
    
    .ccpslider-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .ccpslider-prev {
        left: 10px;
    }
    
    .ccpslider-next {
        right: 10px;
    }
    
    .ccpslider-dots {
        gap: 8px;
    }
    
    .ccpslider-dot {
        width: 10px;
        height: 10px;
    }
    
    .ccpslider-dot.active {
        width: 24px;
    }
    
    .ccpslider-video-button .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ccpslider-wrapper {
        height: 250px;
        border-radius: 8px;
    }
    
    .ccpslider-container {
        padding: 0 10px;
        margin-bottom: 30px;
    }
}

/* Animation effects */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.ccpslider-slide.slide-in {
    animation: slideIn 0.6s ease-in-out;
}

.ccpslider-slide.slide-out {
    animation: slideOut 0.6s ease-in-out;
}