/* Updates from Parth — public devlog page + homepage preview */

.updates-hero-avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 4px 14px rgba(25, 30, 58, 0.15);
}

/* Filter chips */
.update-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 3rem;
}

.update-filter-chip {
	border: 1px solid #e5e0d8;
	background: #fff;
	color: #191e3a;
	border-radius: 999px;
	padding: 0.4rem 1.1rem;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.update-filter-chip:hover {
	border-color: #ed8134;
}

.update-filter-chip.is-active {
	background: #ed8134;
	border-color: #ed8134;
	color: #fff;
}

.update-filter-chip:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Timeline */
.update-timeline {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 720px;
	position: relative;
}

.update-timeline::before {
	content: "";
	position: absolute;
	top: 0.5rem;
	bottom: 0.5rem;
	left: 7px;
	width: 2px;
	background: #e5e0d8;
}

.update-entry {
	position: relative;
	display: flex;
	gap: 1.5rem;
	padding-left: 2.5rem;
	margin-bottom: 2.5rem;
}

.update-entry-dot {
	position: absolute;
	left: 0;
	top: 0.5rem;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #ed8134;
}

.update-entry-card {
	background: #fff;
	border: 1px solid #f0ece4;
	border-radius: 1rem;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 2px 10px rgba(25, 30, 58, 0.05);
	flex: 1;
	min-width: 0;
}

.update-entry-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
}

.update-entry-date {
	color: #8a8578;
	font-size: 0.85rem;
}

.update-entry-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: #191e3a;
}

.update-entry-body {
	color: #4a4740;
	line-height: 1.6;
}

.update-entry-body :last-child {
	margin-bottom: 0;
}

.update-entry-signoff {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px dashed #f0ece4;
	color: #8a8578;
	font-size: 0.85rem;
	font-style: italic;
}

.update-entry-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}

.update-empty {
	text-align: center;
	color: #8a8578;
	padding: 2rem 0;
	list-style: none;
}

.update-load-more-wrap {
	text-align: center;
	margin-top: 1rem;
}

/* Mobile: shrink the whole timeline experience — smaller hero avatar,
   tighter cards/text, less whitespace between chips and entries.
   Note: this theme sets the html root font-size to 20px (not the usual
   16px), so 1rem = 20px here — mobile text sizes below are pinned in px
   to land at their actual intended visual size regardless of that. */
@media (max-width: 575px) {
	.updates-hero-avatar {
		width: 56px;
		height: 56px;
	}

	.update-filters {
		gap: 0.35rem;
		margin-bottom: 1.25rem;
	}

	.update-filter-chip {
		padding: 0.2rem 0.6rem;
		font-size: 12px;
	}

	.update-timeline::before {
		left: 5px;
	}

	.update-entry {
		gap: 0.75rem;
		padding-left: 1.75rem;
		margin-bottom: 1.25rem;
	}

	.update-entry-dot {
		width: 12px;
		height: 12px;
	}

	.update-entry-card {
		padding: 0.85rem 1rem;
	}

	.update-entry-meta {
		gap: 0.5rem;
		margin-bottom: 0.5rem;
	}

	.update-entry-title {
		font-size: 15px;
	}

	.update-entry-date {
		font-size: 12px;
	}

	.update-entry-body {
		font-size: 14px;
	}

	.update-entry-signoff {
		font-size: 12px;
	}
}

/* Homepage preview section */
.updates-preview-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

@media (max-width: 991px) {
	.updates-preview-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.updates-preview-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}
}

.updates-preview-card {
	background: #fff;
	border: 1px solid #f0ece4;
	border-radius: 1rem;
	padding: 1.25rem 1.5rem;
	height: 100%;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.updates-preview-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(25, 30, 58, 0.08);
}

.updates-preview-title {
	font-weight: 700;
	color: #191e3a;
	margin: 0.6rem 0 0.4rem;
	font-size: 1rem;
}

.updates-preview-body {
	color: #4a4740;
	font-size: 0.9rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.updates-preview-date {
	color: #8a8578;
	font-size: 0.8rem;
	margin-top: 0.75rem;
}

@media (max-width: 575px) {
	.updates-preview-card {
		padding: 0.85rem 1rem;
	}

	.updates-preview-title {
		font-size: 14px;
		margin: 0.4rem 0 0.3rem;
	}

	.updates-preview-body {
		font-size: 13px;
		-webkit-line-clamp: 2;
	}

	.updates-preview-date {
		font-size: 11px;
		margin-top: 0.5rem;
	}
}
