/**
 * Taxonomy Service Category Page Styles
 * URL: /catalog/{category-slug}/
 *
 * @package gunesh
 */

/* Category Hero */
.category-hero {
	position: relative;
	background: linear-gradient(135deg, var(--color-primary, #ff1da8), var(--color-primary-dark, #cf0080));
	background-size: cover;
	background-position: center;
	padding: 100px 20px 80px;
	text-align: center;
	color: #fff;
}

.category-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.category-hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
}

/* Breadcrumbs */
.category-breadcrumbs {
	margin-bottom: 24px;
	font-size: 14px;
}

.category-breadcrumbs a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s;
}

.category-breadcrumbs a:hover {
	color: #fff;
}

.category-breadcrumbs .separator {
	margin: 0 8px;
	opacity: 0.5;
}

.category-breadcrumbs .current {
	color: #fff;
}

.category-hero-title {
	font-size: 42px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #fff;
}

.category-hero-subtitle {
	font-size: 18px;
	opacity: 0.9;
	margin: 0;
	line-height: 1.6;
}

/* Services Section */
.category-services-section {
	padding: 60px 20px;
	background: var(--color-bg-light, #f8f9fa);
}

.category-container {
	max-width: var(--container-width, 1440px);
	margin: 0 auto;
}

.category-services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* Service Card */
.category-service-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.category-service-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0f0f0;
}

.category-service-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.category-service-card:hover .category-service-image img {
	transform: scale(1.05);
}

.category-service-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	color: #adb5bd;
}

.category-service-content {
	padding: 16px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.category-service-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text, #1a1a1a);
	margin: 0 0 8px;
	line-height: 1.4;
}

.category-service-excerpt {
	font-size: 13px;
	color: #666;
	margin: 0 0 12px;
	line-height: 1.5;
	flex-grow: 1;
}

.category-service-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-primary, #ff1da8);
	transition: gap 0.3s ease;
}

.category-service-card:hover .category-service-link {
	gap: 8px;
}

.category-empty {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

/* Back Section */
.category-back-section {
	padding: 0 20px 60px;
	background: var(--color-bg-light, #f8f9fa);
}

.back-to-catalog,
.back-to-catalog-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-primary, #ff1da8);
	text-decoration: none;
	font-weight: 500;
	transition: gap 0.3s ease;
}

.back-to-catalog:hover,
.back-to-catalog-btn:hover {
	gap: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
	.category-services-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.category-hero {
		padding: 80px 20px 60px;
	}

	.category-hero-title {
		font-size: 32px;
	}

	.category-services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.category-services-grid {
		grid-template-columns: 1fr;
	}

	.category-services-section {
		padding: 40px 16px;
	}
}
