/* "Just in" ticker (inc/content-ticker.php). A dark strip that continues the hero above it.
   Topic colours use the blog hub's .bh-fam-* variables (--fam-light), with a fallback. */

.vw-ticker {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #160E2B;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: Inter, system-ui, sans-serif;
    overflow: hidden;
}

.vw-ticker__label {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 18px 0 20px;
    background: #160E2B;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #E2CCFF;
    white-space: nowrap;
    box-shadow: 12px 0 16px -6px #160E2B;
}
@media (min-width: 768px) {
    .vw-ticker__label { padding-left: 32px; }
}
/* A soft pulsing dot: "live". */
.vw-ticker__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF4BF0;
    box-shadow: 0 0 0 0 rgba(255, 75, 240, 0.6);
    animation: vw-ticker-pulse 2s ease-out infinite;
}
@keyframes vw-ticker-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 75, 240, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 75, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 75, 240, 0); }
}

.vw-ticker__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 48px), transparent 100%);
}
.vw-ticker__track {
    display: flex;
    width: max-content;
    animation: vw-ticker-slide var(--vw-ticker-duration, 70s) linear infinite;
}
.vw-ticker:hover .vw-ticker__track,
.vw-ticker:focus-within .vw-ticker__track { animation-play-state: paused; }
@keyframes vw-ticker-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.vw-ticker__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vw-ticker__item {
    margin: 0;
    display: flex;
    align-items: center;
}
/* Separator between items. */
.vw-ticker__item::after {
    content: '';
    width: 4px;
    height: 4px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}
.vw-ticker__item a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
}
.vw-ticker__item a:hover .vw-ticker__title { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.vw-ticker__item a:focus-visible { outline: 2px solid #C8A3FF; outline-offset: -4px; border-radius: 8px; }
.vw-ticker__kind {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.vw-ticker__title { font-weight: 500; }
.vw-ticker__topic {
    font-size: 12px;
    font-weight: 600;
    color: var(--fam-light, #C8A3FF);
}
.vw-ticker__topic::before { content: '· '; color: rgba(255, 255, 255, 0.35); }

@media (max-width: 559px) {
    .vw-ticker__label { padding: 0 12px 0 16px; letter-spacing: 0.1em; }
    .vw-ticker__item a { padding: 13px 16px; font-size: 13px; }
    .vw-ticker__topic { display: none; }
}

/* Reduced motion: no sliding or pulsing; a still row that scrolls sideways, shown once. */
@media (prefers-reduced-motion: reduce) {
    .vw-ticker__track { animation: none; }
    .vw-ticker__dot { animation: none; }
    .vw-ticker__viewport { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
    .vw-ticker__list[aria-hidden="true"] { display: none; }
}
