/**
 * Archive Pages Styles (Category & Tag)
 * 
 * @package CardWorks
 */

/* Archive Banner */
.archive-banner {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 60px 0 40px;
	border-bottom: 1px solid #dee2e6;
}

.archive-banner .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.archive-header {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.archive-breadcrumbs {
	font-size: 14px;
	color: #6c757d;
	margin-bottom: 20px;
}

.archive-breadcrumbs a {
	color: #007bff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.archive-breadcrumbs a:hover {
	color: #0056b3;
	text-decoration: underline;
}

.archive-breadcrumbs .separator {
	margin: 0 8px;
	color: #adb5bd;
}

.archive-breadcrumbs .current {
	color: #495057;
	font-weight: 500;
}

.archive-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #212529;
	margin: 0 0 15px;
	line-height: 1.2;
}

.tag-banner .archive-title {
	color: #6f42c1;
}

.tag-prefix {
	color: #6f42c1;
	font-weight: 400;
}

.archive-description {
	font-size: 1.1rem;
	color: #6c757d;
	line-height: 1.6;
	margin-bottom: 20px;
}

.archive-meta {
	font-size: 14px;
	color: #868e96;
}

.post-count {
	background: #fff;
	padding: 8px 16px;
	border-radius: 20px;
	border: 1px solid #dee2e6;
	display: inline-block;
}

/* Archive Content */
.archive-content {
	padding: 40px 0 60px;
}

.archive-content .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Archive Navigation */
.archive-navigation {
	margin-bottom: 30px;
}

.back-to-blog {
	display: inline-flex;
	align-items: center;
	color: #007bff;
	text-decoration: none;
	font-weight: 500;
	padding: 10px 0;
	transition: color 0.3s ease;
}

.back-to-blog:hover {
	color: #0056b3;
	text-decoration: none;
}

/* Related Tags */
.related-tags {
	margin-bottom: 40px;
	padding: 25px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.related-tags h3 {
	font-size: 1.2rem;
	color: #495057;
	margin: 0 0 15px;
	font-weight: 600;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff;
	color: #6f42c1;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 20px;
	border: 1px solid #6f42c1;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.tag-link:hover {
	background: #6f42c1;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.tag-count {
	background: rgba(111, 66, 193, 0.1);
	color: #6f42c1;
	padding: 2px 6px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
}

.tag-link:hover .tag-count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* Post Cards in Archives */
.category-post-card,
.tag-post-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

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

.category-post-card .post-content,
.tag-post-card .post-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.category-post-card .post-meta,
.tag-post-card .post-meta {
	margin-bottom: 12px;
}

.category-post-card .post-title,
.tag-post-card .post-title {
	margin: 0 0 12px;
	flex-grow: 1;
}

.category-post-card .post-title a,
.tag-post-card .post-title a {
	color: #212529;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.category-post-card .post-title a:hover,
.tag-post-card .post-title a:hover {
	color: #007bff;
}

.post-categories,
.post-tags {
	margin-top: 8px;
}

.category-link {
	display: inline-block;
	background: #007bff;
	color: #fff;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	margin-right: 6px;
	margin-bottom: 4px;
	transition: background-color 0.3s ease;
}

.category-link:hover {
	background: #0056b3;
	color: #fff;
	text-decoration: none;
}

.post-tags .tag-link {
	font-size: 12px;
	padding: 4px 8px;
	margin-right: 6px;
	margin-bottom: 4px;
}

/* No Posts Found */
.no-posts-found {
	text-align: center;
	padding: 60px 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.no-posts-found h2 {
	color: #495057;
	margin-bottom: 15px;
}

.no-posts-found p {
	color: #6c757d;
	margin-bottom: 25px;
}

.no-posts-found .button {
	display: inline-block;
	background: #007bff;
	color: #fff;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-weight: 500;
	transition: background-color 0.3s ease;
}

.no-posts-found .button:hover {
	background: #0056b3;
	text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	.archive-banner {
		padding: 40px 0 30px;
	}
	
	.archive-title {
		font-size: 2rem;
	}
	
	.archive-content {
		padding: 30px 0 40px;
	}
	
	.related-tags {
		padding: 20px;
		margin-bottom: 30px;
	}
	
	.tag-cloud {
		gap: 6px;
	}
	
	.tag-link {
		font-size: 13px;
		padding: 5px 10px;
	}
}

@media (max-width: 480px) {
	.archive-breadcrumbs {
		font-size: 13px;
	}
	
	.archive-title {
		font-size: 1.75rem;
	}
	
	.archive-description {
		font-size: 1rem;
	}
	
	.tag-cloud {
		flex-direction: column;
		align-items: flex-start;
	}
}