/* ========================================
   TOP BAR COMPONENT
   ======================================== */

.top-bar {
    display: flex;
    align-items: center;
    background-color: var(--color-charcoal);
    padding: 0;
    overflow: hidden;
    height: 60px;
    /* Enforce height */
}

/* Static section */
.top-bar-static {
    background-color: var(--color-charcoal);
    padding: 0 32px 0 16px;
    z-index: 2;
    /* Sit above scrolling text */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    /* Create stacking context */
}

.top-bar-static::after {
    /* Optional fade or separator if desired, keeping simple for now */
    content: '';
}

/* Marquee Container */
.top-bar-marquee {
    flex: 1;
    /* Take remaining space */
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 20px);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px);
    /* Soft edge near title */
}

/* Scrolling Content */
.top-bar-scrolling-content {
    display: flex;
    width: max-content;
    align-items: center;
    /* Remove gap and padding on parent to delegate spacing to groups */
    gap: 0;
    padding-left: 0;
    white-space: nowrap;
}

/* Group wrapper for seamless loop */
.marquee-group {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
    /* Gap between groups */
    flex-shrink: 0;
}

.top-bar-item {
    color: #ffffff;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 800;
    font-family: inherit;
    /* Inherit font from parent/body if not set */
}

.top-bar-item.highlight {
    color: var(--color-fluoro);
}


@media (min-width: 1280px) {
    .top-bar-static {
        padding: 0 48px 0 64px;
    }
}

/* Animation */
@keyframes strip-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.33%);
        /* Move 1/3 of the width (since we have 3 sets) */
    }
}

.animate-strip {
    /* Adjusted time for smoother/slower scroll */
    animation: strip-scroll 20s linear infinite;
}