/**
 * NSPR Clients Carousel Styles
 * File: includes/shortcodes/assets/clients-carousel.css
 */

.nspr-carousel-wrapper {
    width: 100%;
    margin: 0 auto;
}

.nspr-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    width: fit-content;
    transition: transform 0.5s ease;
}

.carousel-track.animating {
    transition: none;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.carousel-track.paused {
    animation-play-state: paused;
}

.carousel-slide {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.carousel-slide:last-child {
    border-right: none;
}

.carousel-slide-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-slide-inner a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-slide-inner a:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.carousel-slide-placeholder {
    background: #f0f0f0;
    color: #999;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* Navigation Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #333;
    font-weight: bold;
}

.carousel-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Toggle Button */
.carousel-toggle-wrapper {
    margin-top: 20px;
    text-align: center;
}

.carousel-toggle-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-toggle-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-toggle-btn:active {
    transform: translateY(0);
}

.carousel-toggle-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.carousel-toggle-btn.paused {
    background: #f44336;
}

.carousel-toggle-btn.paused:hover {
    background: #da190b;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-controls {
        padding: 0 10px;
    }
    
    .carousel-slide-inner {
        padding: 15px;
    }
    
    .carousel-toggle-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .carousel-slide-inner {
        padding: 10px;
    }
    
    .carousel-toggle-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Accessibility */
.carousel-btn:focus-visible,
.carousel-toggle-btn:focus-visible {
    outline: 3px solid #4CAF50;
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .carousel-controls,
    .carousel-toggle-wrapper {
        display: none;
    }
    
    .carousel-track.animating {
        animation: none;
    }
}
