/* Vertical Scrolling Security Ticker - In Nav Bar */

.vertical-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    padding: 6px 14px;
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    flex: 1;
    max-width: 550px;
    transition: all 0.3s;
}

.vertical-ticker:hover {
    background: rgba(15, 15, 35, 0.8);
    border-color: rgba(124, 58, 237, 0.3);
}

/* Live indicator with red flashing dot */
.ticker-live-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding-right: 10px;
    border-right: 1px solid rgba(124, 58, 237, 0.2);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.live-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* News container with overflow hidden for vertical scroll */
.ticker-news-container {
    flex: 1;
    min-width: 0; /* Allow text to shrink */
    height: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* Track that holds all news items */
.ticker-news-track {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Individual news items */
.ticker-news-item {
    height: 28px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.8s, color 0.3s;
    flex-shrink: 0;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
}

.ticker-news-item:hover {
    color: var(--primary-light);
}

.ticker-news-item.active {
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

.ticker-news-item.active {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

/* Link button */
.ticker-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 6px;
    color: var(--primary-light);
    font-size: 0.75rem;
    transition: all 0.3s;
    flex-shrink: 0;
    text-decoration: none;
}

.ticker-link-btn:hover {
    background: rgba(124, 58, 237, 0.4);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

/* Hover effect */
.vertical-ticker:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(167, 139, 250, 0.3);
}

.vertical-ticker:hover .ticker-news-item.active {
    color: rgba(255, 255, 255, 1);
}

/* Responsive */
@media (max-width: 1024px) {
    .vertical-ticker {
        max-width: 350px;
    }
    
    .ticker-news-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .vertical-ticker {
        display: none; /* Hide on mobile to save nav space */
    }
}