/**
 * new_posts_banner.css
 * BEM namespace: .new-posts-banner
 *
 * Slim pill that slides in from the top of the feed every
 * APP_CONFIG.newPostsBannerIntervalMs while there are unseen posts.
 */

.new-posts-banner {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translate(-50%, -24px);
    background: linear-gradient(120deg, var(--iris) 0%, var(--cyan) 100%);
    color: white;
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 12px 32px rgba(99,102,241,0.45), 0 0 0 1px rgba(255,255,255,0.12) inset;
    transition: transform 0.5s cubic-bezier(.2,.9,.3,1), opacity 0.4s ease;
}

.new-posts-banner--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.new-posts-banner__sparkle {
    display: inline-block;
}

.new-posts-banner:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .new-posts-banner {
        top: 78px;
        font-size: 12px;
        padding: 7px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .new-posts-banner {
        transition: opacity 0.2s ease;
    }
}
