/**
 * News Ticker - AIMM Homepage
 * Beautiful scrolling news bar displaying latest blog posts
 */

/* ===== NEWS TICKER SECTION ===== */
.news-ticker-section {
    background: linear-gradient(to bottom, #141414 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(229, 9, 20, 0.3);
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.news-ticker-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(229, 9, 20, 0.5) 50%,
        transparent 100%);
}

.news-ticker-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(229, 9, 20, 0.5) 50%,
        transparent 100%);
}

.news-ticker-container {
    display: flex;
    align-items: center;
    max-width: 100%;
    height: 50px;
}

/* ===== NEWS LABEL ===== */
.news-ticker-label {
    background: linear-gradient(135deg, #e50914 0%, #b81e25 100%);
    color: #fff;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(229, 9, 20, 0.3);
    position: relative;
    z-index: 2;
}
 
.news-ticker-label i {
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* ===== TICKER TRACK ===== */
.news-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    background: #1a1a1a;
}

.news-ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 40px;
    padding-left: 40px;
    animation: scroll-ticker 40s linear infinite;
    white-space: nowrap;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== NEWS ITEMS ===== */
.news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.news-ticker-item:hover {
    color: #fff;
    transform: translateY(-1px);
}

.news-ticker-item:hover .news-dot {
    color: #e50914;
    transform: scale(1.3);
}

.news-ticker-item span {
    display: inline-block;
    white-space: nowrap;
}

.news-dot {
    font-size: 6px;
    color: #e50914;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Add subtle glow effect to news items on hover */
.news-ticker-item::before {
    content: '';
    position: absolute;
    left: -8px;
    right: -8px;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(229, 9, 20, 0.05) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-ticker-item:hover::before {
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .news-ticker-container {
        height: 45px;
    }

    .news-ticker-label {
        padding: 0 20px;
        font-size: 13px;
    }

    .news-ticker-item {
        font-size: 13px;
        gap: 10px;
    }

    .news-ticker-content {
        gap: 32px;
        padding-left: 32px;
    }
}

@media (max-width: 768px) {
    .news-ticker-container {
        height: 42px;
    }

    .news-ticker-label {
        padding: 0 16px;
        font-size: 12px;
    }

    .news-ticker-label span {
        display: none;
    }

    .news-ticker-label i {
        font-size: 18px;
    }

    .news-ticker-item {
        font-size: 12px;
        gap: 8px;
    }

    .news-ticker-content {
        gap: 24px;
        padding-left: 24px;
        animation: scroll-ticker 30s linear infinite;
    }
}

@media (max-width: 480px) {
    .news-ticker-container {
        height: 40px;
    }

    .news-ticker-label {
        padding: 0 12px;
    }

    .news-ticker-label i {
        font-size: 16px;
    }

    .news-ticker-item {
        font-size: 11px;
        gap: 6px;
    }

    .news-ticker-content {
        gap: 20px;
        padding-left: 20px;
        animation: scroll-ticker 25s linear infinite;
    }

    .news-dot {
        font-size: 5px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .news-ticker-content {
        animation: none;
    }

    .news-ticker-label i {
        animation: none;
    }
}
