/* Additional styling specific to news aggregator */
:root {
    --background: #000000;
    --foreground: #ffffff;
    --accent: #39bc47;
    --visited: #2a8c34; /* Slightly darker green for visited links */
    --radius: 0;
}

body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.date {
    color: var(--accent);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.column {
    border: 1px solid var(--accent);
    padding: 15px;
}

.news-source {
    margin-top: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
}

.news-item {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 0.85em; /* Make news titles smaller than the news site names */
}

.news-item a {
    color: var(--foreground);
    text-decoration: none;
}

.news-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Style for visited links */
.news-item a:visited {
    color: var(--visited);
}

.news-meta {
    font-size: 0.8em;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.comments-link {
    color: var(--accent);
    font-size: 0.9em;
    margin-left: 5px;
    text-decoration: none;
    background-color: rgba(57, 188, 71, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.comments-link:hover {
    background-color: rgba(57, 188, 71, 0.2);
    text-decoration: none;
}

.comments-separator {
    margin: 0 5px;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--accent);
    text-align: center;
    color: var(--accent);
}

.loading {
    text-align: center;
    font-size: 18px;
    margin: 40px 0;
    color: var(--accent);
}

.column-title {
    text-align: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Blinking cursor effect */
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 5px;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

#currency-rates {
    font-size: 0.8em;
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.currency-rate {
    margin-left: 10px;
    color: #ccc;
}
