/* public/css/news.css — страница агрегатора новостей (/news) */

.news-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
}

.news-header .page-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 8px;
    color: var(--text);
}

.news-header .page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 70ch;
    margin: 0 0 18px;
}

.news-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.news-search-input {
    flex: 1;
    max-width: 420px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-primary);
    font-size: 13px;
}

.news-search-form .btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--border);
    text-decoration: none;
    white-space: nowrap;
}

.news-search-form .btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
}

.news-search-form .btn-secondary {
    background: var(--surface-2);
    color: var(--text-muted);
}

.news-source-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.news-chip {
    font-family: var(--font-primary);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-chip:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.news-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
}

.news-chip .count {
    font-family: var(--font-mono), var(--font-mono-fallback);
    font-size: 10.5px;
    opacity: 0.75;
}

.news-count {
    font-size: 12.5px;
    color: var(--text-faint);
    margin: 0 0 16px;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

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

.news-item:hover {
    background: var(--surface-2);
}

.news-item-date {
    font-family: var(--font-mono), var(--font-mono-fallback);
    font-size: 12px;
    color: var(--text-faint);
    white-space: nowrap;
    flex-shrink: 0;
    width: 82px;
}

.news-item-source {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-item-title {
    color: var(--text);
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.4;
}

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

.news-item-emitter {
    font-size: 11px;
    color: var(--text-faint);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-faint);
}

@media (max-width: 700px) {
    .news-item {
        flex-wrap: wrap;
    }
}
