/* ========================================
   BARANGAY MANAGEMENT SYSTEM
   index_ticker.css
   ======================================== */

.ticker-bar {
    width: 100%;
    background: #091f18;
    /* darkest green strip — sits above the header */
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    flex-shrink: 0;
    animation: scrollTicker 90s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #c5ddd3;
    /* soft sage-white — readable on dark green */
    padding: 0 30px;
}

.ticker-sep {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4ade80;
    /* bright green dot */
    border-radius: 50%;
    margin-left: 30px;
}

/* ── TAG STYLES ── */
.ticker-tag-gold,
.ticker-tag-red,
.ticker-tag-blue,
.ticker-tag-green,
.ticker-tag-purple {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 12px;
}

/* 1. Gold → bright green on dark green tint */
.ticker-tag-gold {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

/* 2. Red */
.ticker-tag-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* 3. Blue → lighter green variant (keeps visual variety) */
.ticker-tag-blue {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* 4. Green */
.ticker-tag-green {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* 5. Purple */
.ticker-tag-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

/* ── SEAMLESS LOOP ANIMATION ── */
@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Pause on hover */
.ticker-bar:hover .ticker-track {
    animation-play-state: paused;
}