/**
 * Egg Break Popular Posts Split Widget Stylesheet
 *
 * @package EggBreakElements
 */

.egg-break-popular-posts-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.egg-break-popular-posts-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 32px;
	width: 100%;
	box-sizing: border-box;
	align-items: stretch;
}

.egg-break-popular-main {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.egg-break-popular-card-link {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit !important;
	height: 100%;
}

.egg-break-popular-card-link.horizontal-link {
	flex-direction: row;
	align-items: stretch;
	gap: 24px;
	height: 100%;
}

.egg-break-popular-img-wrap {
	width: 100%;
	overflow: hidden;
	border-radius: 16px;
	background-color: #f4f4f4;
	flex-shrink: 0;
}

.egg-break-popular-img-wrap.main-img-wrap {
	height: 330px;
	margin-bottom: 14px;
}

.egg-break-popular-img-wrap.side-img-wrap {
	width: 240px;
	height: 150px;
	border-radius: 16px;
}

.egg-break-popular-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.egg-break-popular-card-link:hover .egg-break-popular-img {
	transform: scale(1.04);
}

.egg-break-popular-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
}

.egg-break-popular-content.side-content {
	padding: 0;
	justify-content: space-between;
	height: 150px;
}

.egg-break-popular-title {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.egg-break-popular-title.main-title {
	font-size: 20px;
}

.egg-break-popular-title.side-title {
	font-size: 17px;
}

.egg-break-popular-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 12px;
	color: #64748B;
	margin-top: auto;
}

.egg-break-author-info {
	display: flex;
	align-items: center;
	gap: 8px;
}

.egg-break-author-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.egg-break-author-avatar.avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #E2E8F0;
	color: #475569;
	font-weight: 700;
	font-size: 12px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.egg-break-author-name {
	font-weight: 500;
	font-size: 13px;
	color: #475569;
}

.egg-break-post-date {
	font-size: 12px;
	color: #94A3B8;
	margin-left: auto;
}

.egg-break-popular-side {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 28px;
}

@media (max-width: 900px) {
	.egg-break-popular-posts-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.egg-break-popular-card-link.horizontal-link {
		flex-direction: column;
		align-items: flex-start;
	}

	.egg-break-popular-img-wrap.side-img-wrap {
		width: 100%;
		height: 200px;
	}

	.egg-break-popular-content.side-content {
		height: auto;
	}
}
