/**
 * Component: horizontal-cycle-slider
 * Stili base del componente slider orizzontale ciclico
 */

/* Wrapper principale */
.hcs-wrapper {
    position: relative;
    width: 100%;
}

/* Container track — gestisce overflow */
.hcs-track-container {
    overflow: hidden;
    width: 100%;
}

/* Se continue_slider: mostra peek degli item successivi */
.hcs-track-container.hcs-continue {
    overflow: visible;
}

/* Track (la <ul>) */
.hcs-track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    will-change: transform;
}

/* Singolo item (la <li>) */
.hcs-item,
.hcs-clone {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Stato dragging — disabilita pointer-events sui figli e cambia cursore */
.hcs-wrapper.hcs-dragging {
    cursor: grabbing;
    user-select: none;
}

.hcs-wrapper.hcs-dragging .hcs-track-container {
    pointer-events: none;
}

.hcs-track-container {
    cursor: grab;
}

/* -----------------------------------------------------------------------
   Navigazione: prev, counter, next
----------------------------------------------------------------------- */
.hcs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hcs-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    color: inherit;
}

.hcs-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hcs-nav-btn:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.hcs-nav-counter {
    font-size: 1rem;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    user-select: none;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hcs-nav-btn {
        width: 40px;
        height: 40px;
    }

    .hcs-nav-counter {
        font-size: 0.875rem;
    }
}
