/*
 * Copyright (c) 2026. Mateable LLC
 */

/* =====================================================
   TICKER BAR
   ===================================================== */
.ticker-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    background: rgba(9, 11, 24, 0.68);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    border-bottom: 1px solid rgba(108, 92, 231, 0.18);
    padding: 0.38rem 0;
    font-size: 0.8rem;
    overflow: hidden;
}

.ticker-viewport {
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    width: max-content;
    flex-wrap: nowrap;
}

.ticker-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.6rem;
    padding-right: 0.6rem;
}

.ticker-inner.is-moving {
    animation: ticker-scroll var(--ticker-duration, 30s) linear infinite;
}

.ticker-inner.is-moving:hover,
.ticker-inner.is-moving:focus-within {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    to { transform: translateX(-50%); }
}

.ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.2);
    font-size: 0.78rem;
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ticker-pill:hover,
.ticker-pill:focus-visible {
    border-color: rgba(185,176,255,0.62);
    background: rgba(108,92,231,0.22);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(124,108,244,0.2);
}

@media (max-width: 575.98px) {
    .ticker-pill {
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-inner.is-moving {
        animation: none;
        transform: none;
    }

    .ticker-viewport {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ticker-viewport::-webkit-scrollbar {
        display: none;
    }
}
