/* Ticker Styles */
#tickers, .tickers-clone {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    width: 100%;
    max-width: 800px;
    padding: 10px;
    border: 1px solid #00FF41;
    margin-bottom: 40;
    font-size: 0.9em;
    min-height: 50px;
    visibility: hidden;
}

#tickers.show, .tickers-clone.show {
    visibility: visible;
}



.ticker-item {
    white-space: nowrap;
}

.ticker-value.up {
    color: #4CAF50;
    text-shadow: 0 0 5px #4CAF50;
}

.ticker-value.down {
    color: #F44336;
    text-shadow: 0 0 5px #F44336;
}

#last-updated {
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: #00bb31; /* Dimmer green */
    margin-top: 5px;
    display: none;
}

.ticker-permanent-text {
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: #00bb31; /* Dimmer green */
    margin-top: 2px;
}

/* Navigation Styles */
nav {
    border: 1px solid #00FF41;
    padding: 10px;
    margin-bottom: 20px;
    display: none;
    justify-content: center;
    gap: 20px;
    width: auto;
    min-width: 400px;
}

nav.show {
    display: flex;
}



nav a {
    color: #00FF41;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #00FF41;
    color: #000;
    text-shadow: none;
}

nav a.active {
    color: #00E5E5;
    text-shadow: 0 0 5px #00E5E5, 0 0 10px #00E5E5;
}

/* News Filters */
#news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

#news-filters button {
    background: none;
    border: 1px solid #00FF41;
    color: #00FF41;
    font-family: inherit;
    font-size: 1em;
    padding: 5px 10px;
    cursor: pointer;
    text-shadow: 0 0 5px #00FF41;
    white-space: nowrap;
    flex-shrink: 0;
}

#news-filters button:hover {
    background-color: #00FF41;
    color: #000;
    text-shadow: none;
}

#news-filters button.active {
    background-color: #000;
    color: #00E5E5;
    border-color: #00E5E5;
    text-shadow: 0 0 5px #00E5E5;
}

/* Mobile adjustments for news filters */
@media (max-width: 768px) {
    #news-filters {
        gap: 8px;
        justify-content: center;
    }
    
    #news-filters button {
        font-size: 0.9em;
        padding: 4px 8px;
    }
}

/* News Articles */
.news-article {
    border: 1px solid #00FF41;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(0, 255, 65, 0.03);
}

.news-title {
    color: #00E5E5;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: none;
}

.news-meta {
    display: flex;
    gap: 15px;
    /* margin-bottom: 8px; */
    font-size: 0.85em;
}

.news-date, .news-source {
    color: #00bb31;
    opacity: 0.8;
    text-shadow: none;
}

.news-summary {
    color: #00FF41;
    /* font-style: italic; */
    margin-bottom: 0;
    padding: 0 0 6px 0;
    /* border-bottom: 1px solid rgba(0, 255, 65, 0.2); */
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    text-shadow: none;
    text-align: left;
}

.news-summary:hover {
    /* background: rgba(0, 255, 65, 0.08); */
}

.news-summary::after {
    content: " [EXPAND]";
    color: #00E5E5;
    font-size: 0.75em;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.news-summary.expanded::after {
    content: " [COLLAPSE]";
    transition: opacity 0.2s ease;
}

.news-content {
    color: #cccccc;
    line-height: 1.5;
    white-space: pre-wrap;
    font-size: 0.9em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    text-shadow: none;
    text-align: left;
}

.news-content.expanded {
    max-height: 2000px;
    padding: 10px;
    margin-top: 8px;
    border-top: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 3px;
}

/* Loading State */
.loading-state {
    color: #00bb31;
    font-style: italic;
    padding: 20px;
    text-align: center;
    opacity: 0.7;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Disable CRT animation for news page only */
#content-news .content-container.show {
    animation: none !important;
    visibility: visible !important;
}

/* News page specific container - no animations */
.content-container.news-container {
    visibility: visible;
    animation: none;
}