/**
 * Global Blog Layouts CSS
 * 
 * Shared styles for all blog layouts to ensure consistent
 * behavior when category selectors are open (floating right, etc)
 */

/* ============================================================================
   Category Breadcrumb Display
   ============================================================================ */

.category-breadcrumb,
.blog-category-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0 0 8px 8px;
	animation: slideDownIn 0.3s ease;
}

.breadcrumb-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #0d6efd;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: all 0.2s ease;
}

.breadcrumb-link:hover {
	color: #667eea;
	text-decoration: underline;
}

.breadcrumb-separator {
	color: #d1d5db;
	font-weight: 300;
}

.breadcrumb-current {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #374151;
	font-weight: 600;
	font-size: 0.95rem;
}

.breadcrumb-current i {
	color: #667eea;
}

.breadcrumb-count {
	background: linear-gradient(135deg, #0d6efd 0%, #667eea 100%);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 12px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-left: auto;
}

@media (max-width: 768px) {
	.category-breadcrumb,
	.blog-category-breadcrumb {
		padding: 0.75rem 1rem;
		margin-bottom: 1.5rem;
		flex-wrap: wrap;
	}

	.breadcrumb-current {
		font-size: 0.9rem;
	}

	.breadcrumb-link {
		font-size: 0.85rem;
	}

	.breadcrumb-count {
		padding: 0.2rem 0.6rem;
		font-size: 0.75rem;
	}
}

/* ============================================================================
   Dynamic Category Header (Blog Page)
   ============================================================================ */

.blog-dynamic-category-header {
	background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
	border-bottom: 2px solid #e5e7eb;
	padding: 3rem 2rem;
	margin: 0 0 0 0;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	animation: slideDownIn 0.4s ease;
}

@keyframes slideDownIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideUp {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(-10px);
	}
}

.blog-category-header-content {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.blog-category-header-icon {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, #0d6efd 0%, #667eea 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: white;
	box-shadow: 0 4px 16px rgba(13, 110, 253, 0.25);
}

.blog-category-header-text {
	flex: 1;
	min-width: 0;
}

.blog-category-header-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #667eea;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 0.5rem 0;
}

.blog-category-header-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 0.75rem 0;
	line-height: 1.2;
	word-break: break-word;
}

.blog-category-header-description {
	font-size: 1rem;
	color: #666;
	margin: 0;
	line-height: 1.5;
	opacity: 0.9;
}

.blog-category-header-stats {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-left: 2rem;
	border-left: 2px solid #e5e7eb;
}

.blog-stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
}

.blog-stat-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.blog-stat-value {
	font-size: 2rem;
	font-weight: 700;
	background: linear-gradient(135deg, #0d6efd 0%, #667eea 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

@media (max-width: 992px) {
	.blog-dynamic-category-header {
		padding: 2rem 1.5rem;
		margin-bottom: 2rem;
	}

	.blog-category-header-content {
		flex-direction: column;
		gap: 1.5rem;
		text-align: center;
	}

	.blog-category-header-icon {
		width: 70px;
		height: 70px;
		font-size: 2rem;
	}

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

	.blog-category-header-stats {
		flex-direction: row;
		justify-content: center;
		padding-left: 0;
		border-left: none;
		border-top: 2px solid #e5e7eb;
		padding-top: 1.5rem;
		width: 100%;
	}

	.blog-stat-item {
		flex: 1;
	}
}

@media (max-width: 768px) {
	.blog-dynamic-category-header {
		padding: 1.5rem 1rem;
		margin-bottom: 1.5rem;
	}

	.blog-category-header-content {
		gap: 1rem;
	}

	.blog-category-header-icon {
		width: 60px;
		height: 60px;
		font-size: 1.75rem;
	}

	.blog-category-header-label {
		font-size: 0.75rem;
	}

	.blog-category-header-title {
		font-size: 1.5rem;
		margin-bottom: 0.5rem;
	}

	.blog-category-header-description {
		font-size: 0.95rem;
	}

	.blog-stat-value {
		font-size: 1.5rem;
	}
}

@media (max-width: 576px) {
	.blog-dynamic-category-header {
		padding: 1.25rem 1rem;
		margin-bottom: 1.25rem;
	}

	.blog-category-header-icon {
		width: 50px;
		height: 50px;
		font-size: 1.5rem;
	}

	.blog-category-header-title {
		font-size: 1.25rem;
	}

	.blog-category-header-description {
		font-size: 0.9rem;
	}

	.blog-stat-label {
		font-size: 0.7rem;
	}

	.blog-stat-value {
		font-size: 1.25rem;
	}
}

/* ============================================================================
   Container Width Management for Floating Selector
   ============================================================================ */

/* When the floating right selector is open, reduce container width and center */
[data-selector-open="true"] .container {
	width: calc(100% - 350px) !important;
	max-width: calc(100% - 350px) !important;
	margin-left: auto !important;
	margin-right: 350px !important;
}

/* Mobile: sidebar takes full width, so reset container to full */
@media (max-width: 768px) {
	[data-selector-open="true"] .container {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

