/* News Ticker - Clean Blue Design with Scroll Animation */
.news-ticker {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 10px 0;
    border-bottom: 3px solid #1d4ed8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ticker-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-right: 15px;
    backdrop-filter: blur(10px);
}

.ticker-container {
    overflow: hidden;
    height: 40px;
    position: relative;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 60s linear infinite;
    height: 40px;
    align-items: center;
    will-change: transform;
}

.ticker-item {
    margin-right: 80px;
    flex-shrink: 0;
}

.ticker-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ticker-link:hover {
    color: #fbbf24;
    text-decoration: underline;
    transform: scale(1.02);
}

.category-tag {
    background: rgba(255, 255, 255, 0.3);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-count {
    opacity: 0.8;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
}

/* Animation keyframes */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.ticker-content:hover {
    animation-play-state: paused;
}

/* Responsive design */
@media (max-width: 768px) {
    .ticker-label {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-right: 10px;
    }
    
    .ticker-link {
        font-size: 0.85rem;
    }
    
    .ticker-content {
        animation-duration: 45s;
    }
    
    .ticker-item {
        margin-right: 60px;
    }
    
    .category-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        padding: 8px 0;
    }
    
    .ticker-container {
        height: 35px;
    }
    
    .ticker-content {
        height: 35px;
        animation-duration: 35s;
    }
    
    .ticker-item {
        margin-right: 50px;
    }
}

/* Loading state */
.ticker-loading {
    opacity: 0.7;
    font-style: italic;
}

/* Smooth entrance effect */
.news-ticker {
    animation: fadeInSlide 0.8s ease-out;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}