/* =========================================
   Component: Ticker (TradingView Style)
   ========================================= */

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    padding: var(--space-4) 0;
    position: relative;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    margin-top: 120px; /* top (16px) + padding-top (16px) + height (56px) + padding-bottom (16px) + отступ (16px) = 120px */
    box-shadow: none !important;
    z-index: 20; /* Поверх hero секции */
}

.ticker {
    display: flex;
    gap: var(--space-4);
    width: max-content;
    animation: ticker 60s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    min-width: 160px;
    transition: all var(--transition-base);
    cursor: default;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.ticker__item:hover {
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: blur(35px) saturate(190%);
    -webkit-backdrop-filter: blur(35px) saturate(190%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.ticker__symbol {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    letter-spacing: -0.011em;
    font-family: var(--font-family);
}

.ticker__price {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-family: var(--font-family);
}

.ticker__change {
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-s);
    color: var(--text-inverse);
}

.ticker__change.positive {
    background-color: var(--color-success);
}

.ticker__change.negative {
    background-color: var(--color-error);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}