/* =========================================================
   BLOGNESTIA CATEGORY TICKER
   Infinite horizontal slider of clickable categories
   ========================================================= */

/* ---------- Wrapper ---------- */
.blognestia-ticker {
    background: #0d0d0f;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 14px 0;
    margin: 0;
    position: relative;
    border-top: 1px solid #1a1a1f;
    border-bottom: 1px solid #1a1a1f;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* ---------- Moving track ---------- */
.blognestia-ticker-track {
    display: inline-block;
    font: 700 13px 'Open Sans', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: blognestiaTickerSlide 40s linear infinite;
    will-change: transform;
}

/* ---------- Category links ---------- */
.blognestia-ticker-track a {
    display: inline-block;
    margin: 0 26px;
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

/* Alternating orange for odd items */
.blognestia-ticker-track a:nth-child(odd) {
    color: #FE702A;
}

/* Hover — pink + slight lift */
.blognestia-ticker-track a:hover {
    color: #FE0F5A;
    transform: translateY(-1px);
}

/* Pause the whole ticker when the user hovers it */
.blognestia-ticker:hover .blognestia-ticker-track {
    animation-play-state: paused;
}

/* ---------- Animation ---------- */
@keyframes blognestiaTickerSlide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 900px) {
    .blognestia-ticker {
        padding: 12px 0;
        margin: 24px 0;
    }
    .blognestia-ticker-track {
        font-size: 12px;
        letter-spacing: 0.14em;
        animation-duration: 32s;
    }
    .blognestia-ticker-track a {
        margin: 0 18px;
    }
}

@media (max-width: 600px) {
    .blognestia-ticker-track {
        font-size: 11px;
        letter-spacing: 0.12em;
        animation-duration: 26s;
    }
    .blognestia-ticker-track a {
        margin: 0 14px;
    }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    .blognestia-ticker-track {
        animation: none !important;
    }
    .blognestia-ticker {
        overflow-x: auto;
        -webkit-mask-image: none;
                mask-image: none;
    }
}