/* Category Posts List Frontend Styles */

.fcpl-posts-list {
	margin: 0;
}

.fcpl-category-title {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.5em;
	color: #333;
}

/* List Format */
.fcpl-posts {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fcpl-posts li {
	padding-top: 8px;
	padding-bottom: 8px;
	line-height: 1.6;
}

/* Separators */
.fcpl-posts.fcpl-with-separators li {
	border-bottom: 1px solid #eee;
	padding-top: 8px;
	padding-bottom: 8px;
}

.fcpl-posts.fcpl-with-separators li:last-child {
	border-bottom: none;
}

.fcpl-posts.fcpl-no-separators li {
	border-bottom: none;
}

/* Spacing options */
.fcpl-posts.fcpl-spacing-compact li {
	padding-top: 3px;
	padding-bottom: 3px;
}

.fcpl-posts.fcpl-spacing-normal li {
	padding-top: 8px;
	padding-bottom: 8px;
}

.fcpl-posts.fcpl-spacing-comfortable li {
	padding-top: 12px;
	padding-bottom: 12px;
}

.fcpl-posts.fcpl-spacing-spacious li {
	padding-top: 15px;
	padding-bottom: 15px;
}

/* Inline format */
.fcpl-posts-inline {
	line-height: 1.8;
	word-wrap: break-word;
}

.fcpl-posts-inline a {
	text-decoration: none;
	color: #0073aa;
	transition: color 0.2s ease;
	margin: 0 2px;
}

.fcpl-posts-inline a:hover {
	color: #005a87;
	text-decoration: underline;
}

.fcpl-posts-inline strong a {
	color: #333;
	font-weight: bold;
}

/* Regular list links */
.fcpl-post a {
	text-decoration: none;
	color: #0073aa;
	transition: color 0.2s ease;
}

.fcpl-post a:hover {
	color: #005a87;
	text-decoration: underline;
}

.fcpl-post-current {
	font-weight: bold;
}

.fcpl-post-current a {
	color: #333;
}

/* Post Metadata */
.fcpl-meta {
	font-size: 0.875em;
	color: #666;
}

.fcpl-meta--inline {
	display: inline;
	margin-left: 0.25em;
	white-space: nowrap;
	font-style: italic;
	font-size: 0.85em;
}

.fcpl-meta--block {
	display: block;
	margin-top: 0.5em;
	margin-bottom: 0.25em;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	font-size: 0.8em;
	font-style: normal;
	white-space: normal;
	border-top: 1px solid #f0f0f0;
}

.fcpl-meta__item {
	display: inline;
}

.fcpl-meta__item:not(:last-child)::after {
	content: ' • ';
	margin: 0 0.25em;
}

.fcpl-meta__date,
.fcpl-meta__author,
.fcpl-meta__comments,
.fcpl-meta__reading-time {
	text-decoration: none;
	color: inherit;
}

.fcpl-meta__author:hover,
.fcpl-meta__comments:hover {
	text-decoration: underline;
}

/* Sticky Post Styling */
.fcpl-item--sticky {
	background-color: rgba(255, 235, 59, 0.1);
	padding: 0.25em 0.5em;
	border-radius: 2px;
}

.fcpl-item--sticky a {
	font-weight: 600;
}

.fcpl-sticky-indicator {
	font-size: 1.2em;
	margin-right: 0.25em;
}

/* Navigation Widget */
.fcpl-nav-widget {
	margin: 1em 0;
}

.fcpl-nav-widget--bordered {
	border: 1px solid #e0e0e0;
	padding: 1em;
	border-radius: 4px;
	background-color: rgba(0, 115, 170, 0.03);
}

.fcpl-nav-category-heading {
	font-size: 0.85em;
	font-weight: 600;
	color: #666;
	letter-spacing: 1px;
	margin-bottom: 0.75em;
	text-transform: uppercase;
	text-align: center;
}

/* Three-column flow: prev | current | next */
.fcpl-nav-flow {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75em;
}

.fcpl-nav-prev,
.fcpl-nav-current,
.fcpl-nav-next {
	flex: 1 1 0;
	min-width: 0;
	line-height: 1.4;
	font-size: 0.9em;
}

.fcpl-nav-prev {
	text-align: left;
}

.fcpl-nav-current {
	text-align: center;
	font-weight: 700;
	color: #333;
}

.fcpl-nav-next {
	text-align: right;
}

.fcpl-nav-link {
	font-weight: 500;
	color: #0073aa;
	text-decoration: none;
}

.fcpl-nav-link:hover {
	color: #005a87;
	text-decoration: underline;
}

.fcpl-nav-arrow {
	color: #999;
	font-size: 0.85em;
}

/* Empty slots keep the column so current stays centered */
.fcpl-nav-empty {
	visibility: hidden;
}

/* Featured Images */
.fcpl-posts--images li {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1em;
}

.fcpl-posts--images.fcpl-with-separators li {
	border-bottom: 1px solid #eee;
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Image wrapper and positioning */
.fcpl-post__image-wrapper {
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 4px;
}

.fcpl-post__image-wrapper img {
	display: block;
	max-width: 100%;
	height: auto;
}

.fcpl-post__image-wrapper--left {
	order: 1;
}

.fcpl-post__image-wrapper--right {
	order: 2;
}

.fcpl-post__image-wrapper--top {
	width: 100%;
	order: -1;
	margin-bottom: 0.5em;
}

/* Content wrapper for images */
.fcpl-post--image-left .fcpl-post__content,
.fcpl-post--image-right .fcpl-post__content {
	flex: 1;
	min-width: 0;
}

.fcpl-post--image-top {
	flex-direction: column;
}

.fcpl-post--image-left {
	flex-direction: row;
}

.fcpl-post--image-right {
	flex-direction: row-reverse;
}

/* Grid layout */
.fcpl-grid--2col,
.fcpl-grid--3col {
	display: grid;
	gap: 2em;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.fcpl-grid--2col {
	grid-template-columns: repeat(2, 1fr);
}

.fcpl-grid--3col {
	grid-template-columns: repeat(3, 1fr);
}

.fcpl-post__card {
	display: flex;
	flex-direction: column;
	background-color: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.fcpl-post__card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fcpl-post__card.fcpl-item--sticky {
	background-color: rgba(255, 235, 59, 0.15);
}

.fcpl-card__text {
	padding: 1em;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.fcpl-card__title {
	margin: 0 0 0.5em 0;
	font-size: 1.1em;
	line-height: 1.3;
}

.fcpl-card__title a {
	text-decoration: none;
	color: #0073aa;
	transition: color 0.2s ease;
}

.fcpl-card__title a:hover {
	color: #005a87;
	text-decoration: underline;
}

.fcpl-post__card.fcpl-post-current .fcpl-card__title a {
	color: #333;
	font-weight: bold;
}

.fcpl-card__excerpt {
	margin: 0;
	font-size: 0.9em;
	color: #666;
	line-height: 1.5;
	flex: 1;
}

/* Placeholder image styling */
.fcpl-post__image--placeholder {
	background-color: #f0f0f0;
	color: #999;
}

/* Responsive grid */
@media (max-width: 768px) {
	.fcpl-grid--3col {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.fcpl-meta--block {
		font-size: 0.75em;
	}

	.fcpl-posts li {
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.fcpl-posts--images li {
		flex-direction: column;
		gap: 0.5em;
	}

	.fcpl-post__image-wrapper--top,
	.fcpl-post__image-wrapper--left,
	.fcpl-post__image-wrapper--right {
		width: 100%;
		order: 0 !important;
		margin-bottom: 0 !important;
	}

	.fcpl-post__content {
		width: 100%;
	}

	.fcpl-grid--2col,
	.fcpl-grid--3col {
		grid-template-columns: 1fr;
	}
}
