/**
 * News Ticker Bar
 * Professional scrolling news/announcements bar
 */

.news-ticker-bar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.news-ticker-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

/* Duplicate content for seamless loop */
.news-ticker-content:nth-child(2) {
    animation: scroll-left 30s linear infinite;
    animation-delay: 0s;
}

.ticker-item {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ticker-item i {
    font-size: 16px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-weight: bold;
    padding: 0 15px;
}

/* Smooth scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.news-ticker-bar:hover .news-ticker-content {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-ticker-bar {
        padding: 10px 0;
    }
    
    .ticker-item {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .ticker-item i {
        font-size: 14px;
    }
    
    .ticker-separator {
        padding: 0 10px;
        font-size: 16px;
    }
    
    .news-ticker-content {
        animation: scroll-left 25s linear infinite;
    }
}

@media (max-width: 480px) {
    .news-ticker-bar {
        padding: 8px 0;
    }
    
    .ticker-item {
        font-size: 12px;
        padding: 0 12px;
        gap: 6px;
    }
    
    .ticker-item i {
        font-size: 13px;
    }
    
    .ticker-separator {
        padding: 0 8px;
        font-size: 14px;
    }
    
    .news-ticker-content {
        animation: scroll-left 20s linear infinite;
    }
}

/* Accessibility - Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .news-ticker-content {
        animation: none;
    }
    
    .news-ticker-bar {
        overflow-x: auto;
    }
}
