/* ==========================================================================
   Scroll Ticker block - jednostavan beskonačan horizontalni scroll
   ========================================================================== */

.scroll-ticker {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
    padding-top: 100px;
    padding-bottom: 100px;
    border: none;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 75%, #f9f9f9 100%) !important;
    box-shadow: inset 0 -15px 18px -14px rgba(0, 0, 0, 0.06) !important;
}

.scroll-ticker__track {
    display: inline-flex;
    width: max-content;
    animation-name: scroll-ticker-left;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.scroll-ticker.direction-right .scroll-ticker__track {
    animation-name: scroll-ticker-right;
}

/* pauziranje na hover - opcionalno, ukloniti ako nije potrebno */
.scroll-ticker:hover .scroll-ticker__track {
    animation-play-state: paused;
}

.scroll-ticker__item {
    flex: 0 0 auto;
    padding: 0 32px;
    font-size: 10pt !important;
    font-weight: 300 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f4960e !important;
    font-family: 'Gotham Rounded' !important;
}

/* Tekst se ponavlja 2x u traci (vidi render.php), pa je -50% tačno jedan pun krug -> seamless loop */
@keyframes scroll-ticker-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes scroll-ticker-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* respektuj korisnike koji ne žele animacije */
@media (prefers-reduced-motion: reduce) {
    .scroll-ticker__track {
        animation: none;
    }
}
