/* ==========================================================================
   FFTT Carousel Slider Stylesheet
   ========================================================================== */

.fftt-slider-ticker-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    box-sizing: border-box;

    /* Native CSS Alpha Masking */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.fftt-slider-ticker-wrapper::before,
.fftt-slider-ticker-wrapper::after {
    display: none !important;
}

/* Marquee Track */
.fftt-slider-ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.fftt-slider-ticker-wrapper:hover .fftt-slider-ticker-track {
    animation-play-state: paused;
}

.fftt-slider-ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Items & Links */
.fftt-slider-ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.fftt-slider-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: inherit;
    pointer-events: auto !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fftt-slider-link:hover {
    transform: scale(1.03);
    opacity: 0.85;
}

.fftt-slider-ticker-item img {
    display: block;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: auto;
    user-select: none;
}

/* Text Node Styling */
.fftt-slider-text-node {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    user-select: none;
}

/* Keyframe Animations */
@keyframes fftt-slider-anim-left {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes fftt-slider-anim-right {
    0% {
        transform: translate3d(-100%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* ==========================================================================
   Admin Interface Styles
   ========================================================================== */

.fftt-slider-admin-preview-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.fftt-slider-preview-stage {
    background: #f9f9f9;
    border: 1px dashed #c3c4c7;
    min-height: 100px;
    display: flex;
    align-items: center;
}

.fftt-slider-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.fftt-slider-drag-handle {
    cursor: grab;
    color: #a0a5aa;
    padding: 4px;
}

.fftt-slider-drag-handle:active {
    cursor: grabbing;
    color: #2271b1;
}

.fftt-slider-sortable-placeholder {
    height: 60px;
    background: #f0f6fc;
    border: 2px dashed #2271b1;
    margin-bottom: 8px;
    border-radius: 4px;
}

.fftt-slider-img-preview {
    width: 40px;
    height: 40px;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.fftt-slider-img-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fftt-slider-text-content {
    flex-grow: 1;
}

.fftt-slider-item-link {
    width: 260px;
}