/* retoor <retoor@molodetz.nl> */

.news-page {
    max-width: 960px;
    margin: 0 auto;
}

.news-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.news-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.news-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.news-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-card-body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-source {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.news-grade {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--bg-card-hover);
    color: var(--text-muted);
}

.news-grade-high {
    background: rgba(66, 165, 245, 0.15);
    color: var(--info);
}

.news-grade-top {
    background: rgba(255, 171, 0, 0.15);
    color: var(--warning);
}

.news-featured-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--bg-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.news-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.news-card-title a {
    color: var(--text-primary);
}

.news-card-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.news-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    align-self: flex-start;
}

.news-read-link:hover {
    color: var(--accent-hover);
}

.news-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.news-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.news-empty h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.news-empty p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.news-detail {
    max-width: 760px;
    margin: 0 auto;
}

.news-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-detail-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.news-detail-body {
    padding: 1.5rem;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.news-detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.news-detail-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-detail-content {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.news-detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.news-detail-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: var(--radius);
}

.news-detail-read-link:hover {
    background: var(--accent-hover);
    text-decoration: none;
}

.news-detail-back {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.news-detail-back:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-header h1 {
        font-size: 1.5rem;
    }

    .news-detail-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .news-card-body {
        padding: var(--space-lg);
    }

    .news-card-title {
        font-size: 0.9375rem;
    }

    .news-detail-body {
        padding: 1rem;
    }

    .news-detail-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
