/**
 * Footer Recent Posts - Matches Page Entry Design UI
 *
 * @package kadence
 */

/* Container */
.footer-recent-posts {
	width: 100%;
}

.footer-recent-posts-title {
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--global-palette3, #1f2937);
}

/* List styling */
.footer-recent-posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer-recent-post-item {
	margin: 0;
	padding: 0;
}

/* Entry Card - Matches page design */
.footer-post-entry {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 0;
	background: transparent;
	transition: transform 0.2s ease;
}

.footer-post-entry:hover {
	transform: translateX(3px);
}

/* Thumbnail styling - Matches entry_loop_thumbnail.php */
.footer-post-thumbnail {
	flex-shrink: 0;
	width: 80px;
	height: 60px;
	overflow: hidden;
	border-radius: 4px;
	position: relative;
}

.footer-post-thumbnail .post-thumbnail-inner {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.footer-post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.footer-post-thumbnail:hover img {
	transform: scale(1.05);
}

/* Content wrapper - Matches entry.php */
.footer-post-content-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Entry header styling */
.footer-post-content-wrap .entry-header {
	margin: 0;
	padding: 0;
}

/* Taxonomies/Categories styling */
.footer-post-content-wrap .entry-taxonomies {
	font-size: 0.75rem;
	margin-bottom: 0.25rem;
	color: var(--global-palette1, #3182ce);
	font-weight: 500;
}

.footer-post-content-wrap .entry-taxonomies .category-term-term {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Title styling - Matches entry_loop_title.php */
.footer-post-content-wrap .entry-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.5rem 0;
	color: var(--global-palette3, #1f2937);
}

.footer-post-content-wrap .entry-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-post-content-wrap .entry-title a:hover {
	color: var(--global-palette1, #3182ce);
}

/* Meta styling - Matches entry_loop_meta.php */
.footer-post-content-wrap .entry-meta {
	font-size: 0.8rem;
	color: var(--global-palette5, #6b7280);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.footer-post-content-wrap .entry-meta .posted-by,
.footer-post-content-wrap .entry-meta .post-date {
	display: inline-flex;
	align-items: center;
}

/* Divider dot styling */
.footer-post-content-wrap .entry-meta.entry-meta-divider-dot .posted-by::after {
	content: '·';
	margin-left: 0.5rem;
	color: var(--global-palette6, #9ca3af);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.footer-post-thumbnail {
		width: 70px;
		height: 52px;
	}
	
	.footer-post-content-wrap .entry-title {
		font-size: 0.9rem;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.footer-recent-posts-title {
		color: var(--global-palette9, #f9fafb);
	}
	
	.footer-post-content-wrap .entry-title {
		color: var(--global-palette9, #f9fafb);
	}
}
