/* KS Logo Slider - Frontend Styles */

.ksls-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ksls-slider-wrapper * {
    box-sizing: border-box;
}

/* Track */
.ksls-track {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Slide group - seamless infinite scroll */
.ksls-slide-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: max-content;
}

/* Keyframe animation */
@keyframes ksls-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ksls-animate {
    animation: ksls-scroll linear infinite;
}

/* Pause on hover */
.ksls-pause-hover:hover .ksls-animate {
    animation-play-state: paused;
}

/* Logo items */
.ksls-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ksls-logo-item img {
    display: block;
    max-width: 100%;
    transition: all 0.3s ease;
}

.ksls-logo-item:hover img {
    transform: scale(1.05);
}

/* Grayscale effect */
.ksls-grayscale .ksls-logo-item img {
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.3s ease;
}

.ksls-grayscale-hover:hover .ksls-logo-item img,
.ksls-grayscale.ksls-grayscale-hover .ksls-logo-item:hover img {
    filter: grayscale(0%);
}

/* Overlay */
.ksls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ksls-overlay-hide-hover:hover .ksls-overlay {
    opacity: 0 !important;
}

/* Fade edges */
.ksls-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
}

.ksls-fade-left {
    left: 0;
}

.ksls-fade-right {
    right: 0;
}

/* Play/Pause button */
.ksls-play-pause {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.3s ease;
    padding: 0;
    line-height: 1;
}

.ksls-play-pause:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .ksls-slider-wrapper {
        height: auto !important;
        min-height: 60px;
    }
}
