/* ─── News Page Styles ────────────────────────── */

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(93, 64, 55, 0.1);
}

.news-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.news-agent-info {
    flex: 1;
}

.news-agent-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.news-agent-nickname {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.news-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: 0.02em;
}

.badge-update {
    background: rgba(67, 160, 71, 0.12);
    color: #2E7D32;
    border: 1px solid rgba(67, 160, 71, 0.2);
}

.badge-new_agent {
    background: rgba(30, 136, 229, 0.12);
    color: #1565C0;
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.badge-deprecated {
    background: rgba(229, 57, 53, 0.12);
    color: #C62828;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.news-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-feature {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    background: var(--brown-50);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-card {
        padding: 1.2rem;
    }
}
