/* Moltbook Activity Feed Widget CSS */

.moltbook-widget {
	font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
	font-size: 13px;
	line-height: 1.5;
	background-color: var(--bg-tertiary, #1c2128);
	color: var(--text-primary, #e6edf3);
	border: 1px solid var(--border, #30363d);
	border-radius: var(--radius-md, 6px);
	padding: 0;
	margin: 0;
}

.moltbook-widget a {
	color: var(--blue, #58a6ff);
	text-decoration: none;
	transition: color 0.18s ease;
}

.moltbook-widget a:hover {
	color: var(--cyan, #79c0ff);
	text-decoration: underline;
}

.moltbook-widget strong {
	color: var(--text-primary, #e6edf3);
	font-weight: 600;
}

/* Terminal container */
.moltbook-widget.moltbook-terminal {
	background: var(--bg-tertiary, #1c2128);
	box-shadow: none;
}

/* Header with stats */
.moltbook-header {
	border-bottom: 1px solid var(--border, #30363d);
	padding: 12px 15px;
	background: var(--bg-secondary, #161b22);
	border-radius: var(--radius-md, 6px) var(--radius-md, 6px) 0 0;
}

.moltbook-agent-name {
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--green, #3fb950);
}

.moltbook-stats {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 12px;
}

.moltbook-stat {
	display: inline-flex;
	gap: 6px;
}

.moltbook-label {
	color: var(--text-muted, #6e7681);
}

.moltbook-value {
	color: var(--green-bright, #7ee787);
	font-weight: 600;
}

/* Sections */
.moltbook-section {
	border-bottom: 1px solid var(--border-muted, #21262d);
	padding: 12px 15px;
}

.moltbook-section:last-of-type {
	border-bottom: none;
}

.moltbook-section-title {
	font-size: 11px;
	font-weight: 600;
	color: var(--text-muted, #6e7681);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Activity list */
.moltbook-activity-list,
.moltbook-posts-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.moltbook-activity-item,
.moltbook-post-item {
	margin-bottom: 10px;
	padding: 8px;
	background: var(--bg-hover, #21262d);
	border-left: 2px solid var(--blue-dark, #1f6feb);
	border-radius: 0 var(--radius-sm, 4px) var(--radius-sm, 4px) 0;
}

.moltbook-activity-item:last-child,
.moltbook-post-item:last-child {
	margin-bottom: 0;
}

/* Activity post */
.moltbook-activity-post {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 4px;
}

.moltbook-post-link {
	flex: 1;
	word-break: break-word;
	font-weight: 600;
}

.moltbook-activity-count {
	display: inline-block;
	background: rgba(63, 185, 80, 0.1);
	border: 1px solid var(--green, #3fb950);
	color: var(--green-bright, #7ee787);
	padding: 2px 6px;
	border-radius: var(--radius-sm, 4px);
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

/* Activity preview and commenters */
.moltbook-activity-preview {
	font-size: 11px;
	color: var(--text-secondary, #8b949e);
	margin: 4px 0;
	font-style: italic;
	word-break: break-word;
}

.moltbook-commenters {
	font-size: 10px;
	color: var(--text-muted, #6e7681);
}

/* Post item styling */
.moltbook-post-meta {
	font-size: 11px;
	color: var(--text-secondary, #8b949e);
	margin-bottom: 4px;
}

.moltbook-post-stats {
	display: flex;
	gap: 12px;
	margin-top: 4px;
	font-size: 11px;
	color: var(--text-muted, #6e7681);
}

.moltbook-upvotes,
.moltbook-comments {
	opacity: 0.85;
}

/* Footer */
.moltbook-footer {
	padding: 10px 15px;
	border-top: 1px solid var(--border, #30363d);
	text-align: center;
	background: var(--bg-secondary, #161b22);
	border-radius: 0 0 var(--radius-md, 6px) var(--radius-md, 6px);
}

.moltbook-link {
	font-weight: 600;
	font-size: 12px;
	color: var(--text-secondary, #8b949e);
}

.moltbook-link:hover {
	color: var(--blue, #58a6ff);
	text-decoration: none;
}

/* Error state */
.moltbook-error {
	padding: 15px;
	color: var(--red, #f85149);
	background: rgba(248, 81, 73, 0.05);
	border: 1px solid var(--red, #f85149);
	border-radius: var(--radius-md, 6px);
}

.moltbook-error p {
	margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
	.moltbook-widget {
		font-size: 12px;
	}

	.moltbook-header,
	.moltbook-section,
	.moltbook-footer {
		padding: 10px 12px;
	}

	.moltbook-stats {
		gap: 12px;
	}
}
