/**
 * Category Archive Page Styles
 * Clean, modern blog cards layout
 */

/* Category Page Container */
.fylo-category-page {
	padding: 60px 0;
	background: #f8f9fa;
	min-height: 60vh;
}

.fylo-category-page .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Category Header */
.fylo-category-header {
	text-align: center;
	margin-bottom: 50px;
}

.fylo-category-title {
	font-size: 32px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px;
	line-height: 1.3;
}

.fylo-category-description {
	font-size: 16px;
	color: #64748b;
	margin: 0 0 10px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.fylo-category-count {
	font-size: 16px;
	color: #64748b;
	margin: 0;
}

/* Category Filter */
.fylo-category-filter {
	margin: 20px 0 30px;
	display: flex;
	justify-content: center;
}

.fylo-category-filter-form {
	display: inline-block;
}

.fylo-category-filter-select {
	padding: 12px 40px 12px 16px;
	font-size: 15px;
	font-weight: 500;
	color: #0f172a;
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
	min-width: 220px;
}

.fylo-category-filter-select:hover {
	border-color: #4dd7f5;
}

.fylo-category-filter-select:focus {
	outline: none;
	border-color: #4dd7f5;
	box-shadow: 0 0 0 3px rgba(77, 215, 245, 0.1);
}

.fylo-category-filter-select option {
	padding: 10px;
}

/* Category Results Grid */
.fylo-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 30px;
	margin-bottom: 50px;
}

/* Blog Card */
.fylo-category-card {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.fylo-category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.fylo-category-card__image {
	position: relative;
	display: block;
	width: 100%;
	padding-bottom: 60%;
	overflow: hidden;
	background: #e2e8f0;
}

.fylo-category-card__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.fylo-category-card:hover .fylo-category-card__image img {
	transform: scale(1.05);
}

.fylo-category-card__category {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgb(255 127 50);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
}

.fylo-category-card__type-icon {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	backdrop-filter: blur(4px);
}

.fylo-category-card__type-icon svg {
	width: 20px;
	height: 20px;
}

/* Card Content */
.fylo-category-card__content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.fylo-category-card__meta {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 12px;
}

.fylo-category-card__date,
.fylo-category-card__comments {
	display: flex;
	align-items: center;
}

.fylo-category-card__comments::before {
	content: "•";
	margin-right: 15px;
}

.fylo-category-card__title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 15px;
	line-height: 1.4;
}

.fylo-category-card__title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.fylo-category-card__title a:hover {
	color: #ff7f32;
}

.fylo-category-card__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #475569;
	margin-bottom: 20px;
	flex-grow: 1;
}

.fylo-category-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ff7f32;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.fylo-category-card__link:hover {
	gap: 12px;
	color: #0f172a;
}

.fylo-category-card__link svg {
	transition: transform 0.3s ease;
}

.fylo-category-card__link:hover svg {
	transform: translateX(3px);
}

/* No Posts */
.fylo-category-no-posts {
	text-align: center;
	padding: 80px 20px;
	background: #ffffff;
	border-radius: 12px;
}

.fylo-category-no-posts svg {
	color: #cbd5e1;
	margin-bottom: 20px;
}

.fylo-category-no-posts h2 {
	font-size: 28px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 15px;
}

.fylo-category-no-posts p {
	font-size: 16px;
	color: #64748b;
	margin: 0 0 30px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

/* Pagination */
.fylo-category-page .pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 50px;
}

.fylo-category-page .pagination .nav-links {
	display: flex;
	gap: 10px;
	align-items: center;
}

.fylo-category-page .pagination a,
.fylo-category-page .pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 45px;
	height: 45px;
	padding: 0 15px;
	background: #ffffff;
	color: #0f172a;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.fylo-category-page .pagination a:hover {
	background: #4dd7f5;
	color: #ffffff;
	transform: translateY(-2px);
}

.fylo-category-page .pagination .current {
	background: #4dd7f5;
	color: #ffffff;
}

.fylo-category-page .pagination .dots {
	background: transparent;
	color: #94a3b8;
}

.fylo-category-page .pagination svg {
	width: 16px;
	height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
	.fylo-category-page {
		padding: 40px 0;
	}

	.fylo-category-header {
		margin-bottom: 30px;
	}

	.fylo-category-title {
		font-size: 24px;
	}

	.fylo-category-filter {
		margin: 15px 0 20px;
	}

	.fylo-category-filter-select {
		min-width: 200px;
		font-size: 14px;
		padding: 10px 35px 10px 14px;
	}

	.fylo-category-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.fylo-category-card__content {
		padding: 20px;
	}

	.fylo-category-card__title {
		font-size: 18px;
	}

	.fylo-category-no-posts {
		padding: 60px 20px;
	}

	.fylo-category-no-posts h2 {
		font-size: 22px;
	}

	.fylo-category-page .pagination a,
	.fylo-category-page .pagination span {
		min-width: 40px;
		height: 40px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.fylo-category-page .container {
		padding: 0 15px;
	}

	.fylo-category-card__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}

	.fylo-category-card__comments::before {
		display: none;
	}
}

