/* Blog Styles */

/* Blog Hero Section */
.blog-hero {
	background: linear-gradient(135deg, #f8ba00 0%, #e6a800 100%);
	color: white;
	padding: 4rem 0 3rem;
	text-align: center;
}

.blog-hero h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.blog-hero p {
	font-size: 1.125rem;
	opacity: 0.9;
	margin-bottom: 2rem;
}

/* Blog Filters */
.blog-filters {
	background: #f9fafb;
	padding: 2rem 0;
	border-bottom: 1px solid #e5e7eb;
}

.filter-tags {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.filter-label {
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
}

.tag-list {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.tag-filter {
	padding: 0.5rem 1rem;
	background: white;
	border: 1px solid #d1d5db;
	border-radius: 20px;
	text-decoration: none;
	color: #374151;
	font-size: 0.875rem;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.tag-filter:hover,
.tag-filter.active {
	background: #3b82f6;
	color: white;
	border-color: #3b82f6;
}

.tag-count {
	font-size: 0.75rem;
	opacity: 0.8;
}

/* Blog Grid */
.blog-grid-section {
	padding: 3rem 0;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.blog-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.blog-card-image {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

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

.blog-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
}

.blog-card-content {
	padding: 1.5rem;
}

.blog-card-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.blog-card-title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 0.75rem;
	color: #111827;
}

.blog-card-excerpt {
	color: #6b7280;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.blog-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.blog-tag {
	padding: 0.375rem 0.875rem;
	background: linear-gradient(135deg, #f8ba00, #e6a800);
	color: white;
	border-radius: 16px;
	font-size: 0.75rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(248, 186, 0, 0.2);
}

.blog-tag:hover {
	background: linear-gradient(135deg, #e6a800, #d19300);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(248, 186, 0, 0.3);
	color: white;
}

/* Blog Post Page */
.blog-post-page {
	min-height: 100vh;
}

.blog-post-hero {
	position: relative;
	height: 60vh;
	min-height: 400px;
	overflow: hidden;
}

.blog-post-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-post-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
	display: flex;
	align-items: flex-end;
	padding: 3rem 0;
}

.blog-post-header {
	color: white;
}

.blog-post-header-simple {
	padding: 3rem 0 2rem;
	background: #f9fafb;
}

.blog-post-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.blog-post-meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: 1rem;
}

.blog-post-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.author-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.blog-post-content {
	padding: 3rem 0;
}

.blog-post-body {
	max-width: 800px;
	margin: 0 auto;
}

.blog-post-text {
	font-size: 1.125rem;
	line-height: 1.8;
	color: #374151;
	margin-bottom: 3rem;
}

.blog-post-tags {
	padding: 2rem 0;
	border-top: 1px solid #e5e7eb;
	margin-bottom: 2rem;
}

.blog-post-tags h4 {
	margin-bottom: 1.5rem;
	color: #111827;
	font-size: 1.125rem;
	font-weight: 600;
}

.blog-post-tags .tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.blog-post-navigation {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid #e5e7eb;
}

/* Related Posts */
.related-posts {
	background: #f9fafb;
	padding: 3rem 0;
}

.related-posts h2 {
	text-align: center;
	margin-bottom: 2rem;
	color: #111827;
}

.related-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

/* No Posts State */
.no-posts {
	text-align: center;
	padding: 4rem 2rem;
	color: #6b7280;
}

.no-posts h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: #374151;
}

/* Pagination */
.blog-pagination {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
}

.pagination {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.pagination-link {
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	background: white;
	color: #374151;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s;
	font-size: 0.875rem;
}

.pagination-link:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
}

.pagination-current {
	background: #3b82f6;
	color: white;
	border-color: #3b82f6;
}

.pagination-ellipsis {
	padding: 0.75rem 0.5rem;
	color: #6b7280;
}

/* Admin Styles */
.status-badge {
	padding: 0.25rem 0.75rem;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.status-draft {
	background: #fef3c7;
	color: #92400e;
}

.status-published {
	background: #d1fae5;
	color: #065f46;
}

.post-title-cell {
	max-width: 300px;
}

.post-excerpt {
	font-size: 0.875rem;
	color: #6b7280;
	margin-top: 0.5rem;
}

.action-buttons {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.btn-small {
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
}

.text-muted {
	color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
	.blog-hero h1 {
		font-size: 2rem;
	}

	.blog-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.blog-post-title {
		font-size: 2rem;
	}

	.blog-post-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.filter-tags {
		flex-direction: column;
		align-items: flex-start;
	}

	.tag-list {
		width: 100%;
	}

	.action-buttons {
		flex-direction: column;
	}

	.related-posts-grid {
		grid-template-columns: 1fr;
	}
}
