/* NxCorp | css/notice.css
   Notice bar at the top
   Load order matters: files are linked in index.html in this order. */

/* ========== SECTION: NOTICE BAR (CSS) ========== */
.notice {
    display: flex;
    align-items: center;
    gap: 12px;
    max-height: 64px;
    padding: 9px 16px;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(90deg, #1e1b4b, #4f46e5 55%, #7c3aed);
    transition: max-height .4s, padding .4s, opacity .3s;
}

.notice[hidden] {
    display: none;
}

.notice.gone {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.nt-badge {
    flex: none;
    padding: 2px 11px;
    border-radius: 999px;
    background: #ff6b3d;
    font: 500 11.5px 'JetBrains Mono', monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
    animation: ntpulse 2s infinite;
}

@keyframes ntpulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 61, .6);
    }

    100% {
        box-shadow: 0 0 0 9px rgba(255, 107, 61, 0);
    }
}

.nt-track {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.nt-move {
    display: flex;
    width: max-content;
    animation: ntmove 40s linear infinite;
}

.nt-move span {
    padding-right: 44px;
    white-space: nowrap;
}

.nt-move span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: #ff6b3d;
    vertical-align: middle;
}

@keyframes ntmove {
    to {
        transform: translateX(-50%);
    }
}

.notice:hover .nt-move {
    animation-play-state: paused;
}

.nt-cta {
    flex: none;
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nt-x {
    flex: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    opacity: .8;
    cursor: pointer;
}
