/* MyCreaTools - Mixed Content Feed Global CSS with Elementor Global Colors & Mobile Offcanvas Drawer */

:root {
	--mct-primary-color: var(--e-global-color-primary, #4f46e5);
	--mct-secondary-color: var(--e-global-color-secondary, #0f172a);
	--mct-text-color: var(--e-global-color-text, #334155);
	--mct-accent-color: var(--e-global-color-accent, #6366f1);
}

/* Main Feed Container */
.mct-feed-app-wrap {
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 auto !important;
	font-family: inherit !important;
}

/* Mobile Offcanvas Trigger Button (Hidden on Desktop) */
.mct-feed-mobile-filter-trigger {
	display: none !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 14px 18px !important;
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 12px !important;
	color: #0f172a !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	margin-bottom: 20px !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.mct-feed-mobile-filter-trigger .trigger-icon-wrap {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	color: #0f172a !important;
}

.mct-feed-mobile-filter-trigger .trigger-icon-wrap i {
	color: #0f172a !important;
	font-size: 16px !important;
}

.mct-feed-mobile-filter-trigger .trigger-icon-wrap span {
	color: #0f172a !important;
	font-weight: 700 !important;
}

.mct-feed-mobile-filter-trigger .active-filter-badge {
	background: #dc2626 !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	min-width: 22px !important;
	height: 22px !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 4px !important;
}

/* Desktop Filter Bar Wrap */
.mct-feed-filter-bar {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
	margin-bottom: 24px !important;
	background: #ffffff !important;
	box-shadow: none !important;
	align-content: flex-start;
	border: none !important;
	padding: 0 !important;
}

/* Top Row: Search & Orderby */
.mct-feed-filter-top-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
}

.mct-feed-search-box {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	flex: 1 !important;
	min-width: 200px !important;
	box-sizing: border-box !important;
}

.mct-feed-search-icon,
.mct-feed-search-box i,
.mct-feed-search-box svg,
.mct-feed-search-box .svg-inline--fa {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	bottom: auto !important;
	right: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #64748b !important;
	font-size: 15px !important;
	width: 16px !important;
	height: 16px !important;
	pointer-events: none !important;
	z-index: 10 !important;
	line-height: 1 !important;
	display: inline-block !important;
}

.mct-feed-search-input {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 44px !important;
	min-height: 44px !important;
	padding: 0 16px 0 42px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	color: #0f172a !important;
	background: #ffffff !important;
	outline: none !important;
	transition: border-color 0.2s ease !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	line-height: 42px !important;
}

.mct-feed-search-input::placeholder {
	color: #94a3b8 !important;
	opacity: 1 !important;
}

.mct-feed-search-input:focus {
	background: #ffffff !important;
	border-color: #0f172a !important;
	box-shadow: none !important;
}

.mct-feed-orderby-wrap {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
}

.mct-feed-orderby-label {
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	white-space: nowrap !important;
}

.mct-feed-orderby-select {
	padding: 10px 14px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	background: #ffffff !important;
	cursor: pointer !important;
	outline: none !important;
	transition: border-color 0.2s ease !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

.mct-feed-orderby-select option {
	color: #0f172a !important;
	background: #ffffff !important;
}

/* Type Filter Tabs (Pills) */
.mct-feed-type-pills {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	padding-top: 4px !important;
}

.mct-feed-type-pill {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 8px 16px !important;
	border-radius: 30px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	background: #f1f5f9 !important;
	border: 1px solid transparent !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	user-select: none !important;
	box-shadow: none !important;
}

.mct-feed-type-pill:hover {
	color: #0f172a !important;
	background: #e2e8f0 !important;
}

.mct-feed-type-pill.active {
	color: #ffffff !important;
	background: #dc2626 !important;
	box-shadow: none !important;
}

.mct-feed-type-pill .pill-count {
	font-size: 11px !important;
	padding: 2px 7px !important;
	border-radius: 10px !important;
	background: rgba(0, 0, 0, 0.08) !important;
}

.mct-feed-type-pill.active .pill-count {
	background: rgba(255, 255, 255, 0.25) !important;
	color: #ffffff !important;
}

/* Category Multiselect Wrap */
.mct-feed-category-wrap {
	margin-top: 4px !important;
}

.mct-feed-cat-label {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin-bottom: 6px !important;
}

/* Select2 Dropdown Adjustments for MCT Feed */
.mct-feed-category-wrap .select2-container--default .select2-selection--multiple {
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	min-height: 42px !important;
	padding: 4px 8px !important;
	background: #ffffff !important;
	box-shadow: none !important;
}

/* Feed Grid Layout */
.mct-feed-grid-layout {
	display: grid !important;
	grid-template-columns: repeat(var(--mct-feed-cols-desktop, 3), 1fr) !important;
	gap: var(--mct-feed-gap, 24px) !important;
	margin-bottom: 32px !important;
	transition: opacity 0.2s ease !important;
}

.mct-feed-grid-layout.is-loading {
	opacity: 0.5 !important;
	pointer-events: none !important;
}

/* List Layout Mode */
.mct-feed-grid-layout.is-list-layout {
	grid-template-columns: 1fr !important;
}

.mct-feed-grid-layout.is-list-layout .mct-feed-card {
	flex-direction: row !important;
	align-items: center !important;
}

.mct-feed-grid-layout.is-list-layout .mct-feed-card-cover-wrap {
	width: 240px !important;
	min-width: 240px !important;
	padding-bottom: 0 !important;
	height: 160px !important;
}

/* Feed Card Item (Shadows Removed) */
.mct-feed-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	transition: border-color 0.2s ease, transform 0.2s ease !important;
	position: relative !important;
	box-shadow: none !important;
}

.mct-feed-card:hover {
	transform: translateY(-2px) !important;
	border-color: #94a3b8 !important;
	box-shadow: none !important;
}

/* Cover Image Wrap */
.mct-feed-card-cover-wrap {
	position: relative !important;
	width: 100% !important;
	padding-bottom: 60% !important;
	background: #0f172a !important;
	overflow: hidden !important;
}

.mct-feed-card-cover-img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.35s ease !important;
}

.mct-feed-card:hover .mct-feed-card-cover-img {
	transform: scale(1.05) !important;
}

/* Badges on Top of Cover (No Shadows) */
.mct-feed-card-type-badge {
	position: absolute !important;
	top: 12px !important;
	left: 12px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 5px 12px !important;
	border-radius: 20px !important;
	color: #ffffff !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	box-shadow: none !important;
	z-index: 2 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
}

/* Badge Color Themes */
.mct-feed-card-type-badge.type-article {
	background: #4f46e5 !important;
}

.mct-feed-card-type-badge.type-video {
	background: #dc2626 !important;
}

.mct-feed-card-type-badge.type-event {
	background: #d97706 !important;
}

.mct-feed-card-type-badge.type-product {
	background: #059669 !important;
}

.mct-feed-card-cat-tag {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	background: rgba(15, 23, 42, 0.75) !important;
	color: #ffffff !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	padding: 4px 10px !important;
	border-radius: 20px !important;
	backdrop-filter: blur(6px) !important;
	z-index: 2 !important;
}

/* Video Play Overlay */
.mct-feed-play-overlay {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: 50px !important;
	height: 50px !important;
	background: rgba(220, 38, 38, 0.9) !important;
	color: #ffffff !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 18px !important;
	box-shadow: none !important;
	transition: transform 0.2s ease, background 0.2s ease !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

.mct-feed-card:hover .mct-feed-play-overlay {
	transform: translate(-50%, -50%) scale(1.1) !important;
	background: #dc2626 !important;
}

/* Price Badge on Products Cover */
.mct-feed-price-badge {
	position: absolute !important;
	bottom: 12px !important;
	left: 12px !important;
	background: #0f172a !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	padding: 5px 12px !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	z-index: 2 !important;
}

/* Event Date Badge on Cover */
.mct-feed-event-date-badge {
	position: absolute !important;
	bottom: 12px !important;
	right: 12px !important;
	background: #ffffff !important;
	color: #0f172a !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 4px 10px !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	z-index: 2 !important;
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
}

/* Card Body */
.mct-feed-card-body {
	padding: 18px !important;
	display: flex !important;
	flex-direction: column !important;
	flex: 1 !important;
}

.mct-feed-card-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.35 !important;
	margin: 0 0 10px 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.mct-feed-card-title a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.15s ease !important;
}

.mct-feed-card-title a:hover {
	color: #dc2626 !important;
}

.mct-feed-card-excerpt {
	font-size: 13px !important;
	color: #475569 !important;
	line-height: 1.5 !important;
	margin: 0 0 14px 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

/* Author / Meta Row */
.mct-feed-card-author-row {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin-top: auto !important;
	padding-top: 12px !important;
	border-top: 1px solid #f1f5f9 !important;
}

.mct-feed-author-avatar {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	flex-shrink: 0 !important;
	border: 1px solid #e2e8f0 !important;
}

.mct-feed-author-name {
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	text-decoration: none !important;
}

.mct-feed-author-name:hover {
	color: #0f172a !important;
}

.mct-feed-post-date {
	font-size: 11px !important;
	color: #94a3b8 !important;
	margin-left: auto !important;
}

/* Card Action Footer */
.mct-feed-card-footer-actions {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin-top: 12px !important;
}

.mct-feed-action-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	padding: 6px 12px !important;
	border-radius: 8px !important;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
	color: #475569 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transition: all 0.15s ease !important;
	box-shadow: none !important;
}

.mct-feed-action-btn:hover {
	background: #f1f5f9 !important;
	color: #0f172a !important;
	border-color: #cbd5e1 !important;
}

.mct-feed-action-btn.mct-btn-feed-like.is-liked {
	background: #fef2f2 !important;
	color: #ef4444 !important;
	border-color: #fca5a5 !important;
}

.mct-feed-action-btn.mct-btn-feed-fav.is-fav {
	background: #fef3c7 !important;
	color: #d97706 !important;
	border-color: #fcd34d !important;
}

.mct-feed-action-btn.mct-btn-feed-cart {
	margin-left: auto !important;
	background: #dc2626 !important;
	color: #ffffff !important;
	border-color: #dc2626 !important;
	font-weight: 700 !important;
	box-shadow: none !important;
}

.mct-feed-action-btn.mct-btn-feed-cart:hover {
	background: #b91c1c !important;
	border-color: #b91c1c !important;
	color: #ffffff !important;
}

/* Pagination Container */
.mct-feed-pagination-wrap {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	margin-top: 32px !important;
}

.mct-feed-page-btn {
	min-width: 38px !important;
	height: 38px !important;
	padding: 0 10px !important;
	border-radius: 8px !important;
	border: 1px solid #cbd5e1 !important;
	background: #ffffff !important;
	color: #334155 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
	box-shadow: none !important;
}

.mct-feed-page-btn:hover {
	background: #f1f5f9 !important;
	color: #0f172a !important;
	border-color: #94a3b8 !important;
}

.mct-feed-page-btn.active {
	background: #dc2626 !important;
	color: #ffffff !important;
	border-color: #dc2626 !important;
	box-shadow: none !important;
}

.mct-feed-load-more-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 12px 28px !important;
	border-radius: 30px !important;
	background: #dc2626 !important;
	color: #ffffff !important;
	border: none !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}

.mct-feed-load-more-btn:hover {
	background: #b91c1c !important;
	transform: translateY(-1px) !important;
}

/* Empty State */
.mct-feed-empty-state {
	grid-column: 1 / -1 !important;
	text-align: center !important;
	padding: 60px 20px !important;
	background: #ffffff !important;
	border: 1px dashed #cbd5e1 !important;
	border-radius: 16px !important;
	color: #64748b !important;
}

.mct-feed-empty-icon {
	font-size: 44px !important;
	color: #94a3b8 !important;
	margin-bottom: 12px !important;
}

.mct-feed-empty-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 6px 0 !important;
}

.mct-feed-empty-desc {
	font-size: 14px !important;
	color: #64748b !important;
	margin: 0 !important;
}

/* Mobile Off-Canvas Filter Drawer & Overlay (High Z-Index & Crisp Contrast) */
.mct-feed-offcanvas-backdrop {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(15, 23, 42, 0.65) !important;
	backdrop-filter: blur(4px) !important;
	z-index: 9999999 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: opacity 0.25s ease, visibility 0.25s ease !important;
	display: flex !important;
	justify-content: flex-start !important;
}

.mct-feed-offcanvas-backdrop.is-open {
	opacity: 1 !important;
	visibility: visible !important;
}

.mct-feed-offcanvas-drawer {
	width: 85% !important;
	max-width: 380px !important;
	height: 100% !important;
	background: #ffffff !important;
	box-shadow: none !important;
	display: flex !important;
	flex-direction: column !important;
	transform: translateX(-100%) !important;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-sizing: border-box !important;
	color: #0f172a !important;
}

.mct-feed-offcanvas-backdrop.is-open .mct-feed-offcanvas-drawer {
	transform: translateX(0) !important;
}

.mct-feed-offcanvas-header {
	padding: 18px 20px !important;
	border-bottom: 1px solid #e2e8f0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	background: #f8fafc !important;
}

.mct-feed-offcanvas-title {
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
}

.mct-feed-offcanvas-title i {
	color: #0f172a !important;
}

.mct-feed-offcanvas-close {
	background: transparent !important;
	border: none !important;
	font-size: 22px !important;
	color: #64748b !important;
	cursor: pointer !important;
	padding: 4px !important;
	line-height: 1 !important;
}

.mct-feed-offcanvas-close:hover {
	color: #0f172a !important;
}

.mct-feed-offcanvas-body {
	padding: 20px !important;
	overflow-y: auto !important;
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 18px !important;
	background: #ffffff !important;
}

.mct-feed-offcanvas-body .mct-feed-orderby-wrap {
	flex-direction: column !important;
	align-items: flex-start !important;
	width: 100% !important;
	gap: 6px !important;
}

.mct-feed-offcanvas-footer {
	padding: 16px 20px 32px 20px !important; /* Extra bottom clearance for floating badges */
	border-top: 1px solid #e2e8f0 !important;
	background: #ffffff !important;
	position: relative !important;
	z-index: 10 !important;
}

.mct-feed-offcanvas-apply-btn {
	width: 100% !important;
	padding: 14px !important;
	background: #dc2626 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	text-align: center !important;
	box-shadow: none !important;
	transition: background 0.2s ease !important;
}

.mct-feed-offcanvas-apply-btn:hover {
	background: #b91c1c !important;
}

/* Responsive Grid Breakpoints & Mobile Off-Canvas Activation */
@media (max-width: 1024px) {
	.mct-feed-grid-layout {
		grid-template-columns: repeat(var(--mct-feed-cols-tablet, 2), 1fr) !important;
	}
}

@media (max-width: 768px) {
	.mct-feed-mobile-filter-trigger {
		display: flex !important;
	}

	.mct-feed-filter-bar:not(.mct-feed-offcanvas-filter-bar):not(.mct-social-feed-wrapper .mct-feed-filter-bar) {
		display: none !important; /* Hide inline desktop filter bar on mobile */
	}

	.mct-feed-grid-layout {
		grid-template-columns: repeat(var(--mct-feed-cols-mobile, 1), 1fr) !important;
		gap: 16px !important;
	}

	.mct-feed-grid-layout.is-list-layout .mct-feed-card {
		flex-direction: column !important;
	}

	.mct-feed-grid-layout.is-list-layout .mct-feed-card-cover-wrap {
		width: 100% !important;
		height: auto !important;
		padding-bottom: 56.25% !important;
	}
}

/* Select2 Custom Styles matching Image 2 */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	flex-direction: row-reverse !important;
	background-color: #fef2f2 !important;
	border: 1px solid #fecaca !important;
	border-radius: 8px !important;
	color: #dc2626 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	padding: 4px 10px !important;
	margin-right: 8px !important;
	margin-top: 4px !important;
	margin-bottom: 4px !important;
	box-shadow: none !important;
	line-height: 1.4 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.select2-container--default .select2-selection--multiple .select2-selection__choice button.select2-selection__choice__remove,
.select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
	position: static !important;
	float: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #dc2626 !important;
	background: transparent !important;
	border: none !important;
	border-left: 1px solid #fca5a5 !important;
	border-right: none !important;
	border-radius: 0 !important;
	margin: 0 0 0 8px !important;
	padding: 0 0 0 8px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	height: auto !important;
	width: auto !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice button.select2-selection__choice__remove:hover {
	color: #991b1b !important;
	background: transparent !important;
}

.mct-feed-category-wrap {
	position: relative !important;
}

.select2-dropdown {
	z-index: 99999999 !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	background: #ffffff !important;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
	overflow: hidden !important;
}

.select2-dropdown.select2-dropdown--below,
.select2-container--default .select2-dropdown--below {
	top: 34px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: #dc2626 !important;
	color: #ffffff !important;
}
