/*
 * Style specyficzne dla /aktualnosci/. Tokeny, reset, nagłówek/stopka i
 * wspólne komponenty (page-hero, info-note) są wspólne dla wszystkich
 * podstron — patrz ../../assets/theme.css.
 */

.dashboard-card {
    margin-top: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-heading {
    margin-bottom: 12px;
}

.card-heading h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.card-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.message-panel.error {
    border-color: #f0c7ce;
    background: var(--danger-soft);
    color: #9b2737;
}

.message-panel.error h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.message-panel.error p {
    margin: 0;
}

/* News feed */

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card {
    display: block;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, border-color .15s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.news-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.news-source {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--source-color) 14%, white);
    color: var(--source-color);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.news-date {
    color: var(--muted);
    font-size: .78rem;
    white-space: nowrap;
}

.news-title {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
}

.news-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.5;
}

/* "More sources" — static links to sites that can't be auto-aggregated */

.more-sources {
    margin-top: 20px;
}

.source-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, background .15s ease;
}

.source-card:hover {
    border-color: var(--gold);
    background: var(--accent-soft);
}

.source-card-title {
    font-weight: 800;
    margin-bottom: 2px;
}

.source-card-sub {
    color: var(--muted);
    font-size: .85rem;
}

.source-card-arrow {
    margin-left: auto;
    color: var(--accent);
    font-weight: 800;
}

@media (max-width: 560px) {
    .news-card-top {
        flex-wrap: wrap;
    }

    .source-card {
        flex-wrap: wrap;
    }
}
