/**
 * NexaShop Blog Carousel Widget Styles
 * Pixel-perfect match for Special Sale (فروش ویژه و شگفت‌انگیز) layout and visual architecture.
 *
 * @package NexaShop
 */

@keyframes nexashopBlogFloat {
	0%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(-6px);
	}
}

.nexashop-blog-slider-wrapper {
	--blog-cols: 4;
	--blog-gap: 16px;
	width: 100%;
	direction: rtl;
	box-sizing: border-box;
	position: relative;
	padding: 18px 0 8px 0;
}

.nexashop-blog-main-grid {
	display: flex;
	align-items: stretch;
	gap: 20px;
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

/* ==========================================================================
   1. RIGHT HERO PROMO BANNER (Split Slanted Purple Top + Grey Bottom)
   ========================================================================== */
.nexashop-blog-hero-banner {
	flex: 0 0 265px;
	width: 265px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	z-index: 3;
	user-select: none;
}

.nexashop-blog-hero-banner .banner-overlay-link {
	position: absolute;
	inset: 0;
	z-index: 15;
}

/* Floating Orange-Red Rounded Square Top Badge */
.nexashop-blog-top-badge {
	position: absolute;
	top: -18px;
	left: 50%;
	transform: translateX(-50%);
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background-color: #de6449;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(222, 100, 73, 0.4);
	z-index: 8;
	font-size: 22px;
}

.nexashop-blog-top-badge svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.nexashop-blog-top-badge i.solar,
.nexashop-blog-top-badge .solar {
	font-size: 22px !important;
	width: 22px !important;
	height: 22px !important;
	color: #ffffff;
}

/* Top Purple Slanted Container */
.nexashop-blog-banner-top-shape {
	position: relative;
	width: 100%;
	height: 270px;
	color: #705df2;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 38px;
	box-sizing: border-box;
	filter: drop-shadow(0 12px 24px rgba(112, 93, 242, 0.2));
}

.nexashop-blog-top-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 1;
	pointer-events: none;
}

.nexashop-blog-banner-texts {
	position: relative;
	z-index: 3;
	text-align: center;
}

.nexashop-blog-banner-title {
	font-size: 26px;
	font-weight: 900;
	color: #ffffff;
	margin: 0 0 4px 0;
	line-height: 1.25;
}

.nexashop-blog-banner-sub {
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.88);
	display: block;
}

/* Floating 3D Graphic across the diagonal gap */
.nexashop-blog-3d-graphic {
	position: absolute;
	top: 112px;
	left: 50%;
	transform: translateX(-50%);
	width: 220px;
	height: 175px;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	animation: nexashopBlogFloat 4.5s ease-in-out infinite;
}

.nexashop-blog-3d-graphic .blog-banner-custom-img {
	max-width: 195px;
	max-height: 165px;
	object-fit: contain;
	filter: drop-shadow(0 12px 20px rgba(46, 35, 108, 0.25));
}

.nexashop-blog-3d-graphic .blog-banner-default-svg {
	max-width: 220px;
	height: auto;
}

/* Bottom Light-Grey Slanted Container */
.nexashop-blog-banner-bottom-shape {
	position: relative;
	width: 100%;
	height: 195px;
	margin-top: -32px;
	color: #eff1f6;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px 16px 16px 16px;
	box-sizing: border-box;
}

.nexashop-blog-bottom-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 1;
	pointer-events: none;
}

/* White Pill Box with Glowing Circular Badge (Matches Special Sale Timer Architecture) */
.nexashop-blog-bottom-box {
	position: relative;
	z-index: 4;
	background: #ffffff;
	border-radius: 22px;
	padding: 22px 14px 14px 14px;
	box-shadow: 0 8px 24px rgba(24, 30, 65, 0.04);
	text-align: center;
}

.nexashop-blog-clock-pill {
	position: absolute;
	top: -19px;
	left: 50%;
	transform: translateX(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: #74d653;
	color: #1e2238;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(116, 214, 83, 0.55);
	z-index: 5;
	font-size: 18px;
}

.nexashop-blog-clock-pill svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.nexashop-blog-clock-pill i.solar,
.nexashop-blog-clock-pill .solar {
	font-size: 18px !important;
	width: 18px !important;
	height: 18px !important;
	color: inherit !important;
}

.nexashop-blog-bottom-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.nexashop-blog-bottom-badge-tag {
	font-size: 13.5px;
	font-weight: 800;
	color: #24264b;
	margin: 0;
	line-height: 1.35;
}

.nexashop-blog-bottom-desc {
	font-size: 11px;
	font-weight: 500;
	color: #969ba9;
	margin: 0;
	line-height: 1.35;
}

.nexashop-blog-bottom-action-btn {
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 14px;
	background-color: #eeebff;
	color: #6c5ce7;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.nexashop-blog-bottom-action-btn:hover {
	background-color: #6c5ce7;
	color: #ffffff;
	transform: translateY(-1px);
}

/* ==========================================================================
   2. LEFT COLUMN: Header Navigation Bar + Cards Carousel over Grey Tray
   ========================================================================== */
.nexashop-blog-left-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Top Bar: Horizontal Divider Line + "همه مقالات <" Pill + Circular Arrows */
.nexashop-blog-top-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	margin-bottom: 14px;
	padding-left: 4px;
}

.nexashop-blog-top-line {
	flex: 1;
	height: 1px;
	background-color: #ebedf4;
}

.nexashop-blog-top-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.nexashop-blog-see-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	color: #24264b;
	padding: 9px 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	border: 1px solid #eceef5;
	box-shadow: 0 4px 14px rgba(24, 30, 65, 0.03);
	transition: all 0.25s ease;
}

.nexashop-blog-see-all-btn:hover {
	color: #6c5ce7;
	border-color: #dcd6ff;
	transform: translateX(-2px);
}

.nexashop-blog-nav-arrows {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nexashop-blog-nav-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #eceef5;
	color: #24264b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 4px 14px rgba(24, 30, 65, 0.03);
	transition: all 0.25s ease;
}

.nexashop-blog-nav-btn:hover {
	background: #6c5ce7;
	border-color: #6c5ce7;
	color: #ffffff;
}

.nexashop-blog-nav-btn:disabled,
.nexashop-blog-nav-btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

/* Slider Stage with Bottom Rounded Grey Tray */
.nexashop-blog-slider-stage {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 14px 16px 14px;
}

.nexashop-blog-cards-tray {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 195px;
	background-color: #eff1f6;
	border-radius: 32px;
	z-index: 1;
	pointer-events: none;
}

.nexashop-blog-slider-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	overflow: hidden;
}

.nexashop-blog-track {
	display: flex;
	align-items: stretch;
	gap: var(--blog-gap, 16px);
	transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

/* Individual Article Card (4 per row on desktop) */
.nexashop-blog-card {
	flex: 0 0 calc((100% - (var(--blog-gap, 16px) * (var(--blog-cols, 4) - 1))) / var(--blog-cols, 4));
	min-width: 205px;
	background: #ffffff;
	border-radius: 22px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	position: relative;
	box-sizing: border-box;
	box-shadow: 0 8px 22px rgba(24, 30, 65, 0.045);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nexashop-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(108, 92, 231, 0.12);
}

/* Rounded Light-Grey Image Container */
.nexashop-blog-thumb {
	position: relative;
	width: 100%;
	height: 162px;
	background-color: #f7f8fb;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	overflow: hidden;
}

.nexashop-blog-thumb-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.nexashop-blog-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
	transition: transform 0.35s ease;
}

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

/* Category Badge Pill on Top Corner of Thumbnail (Matches Special Sale Discount Pill) */
.nexashop-blog-badge-cat {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #705df2;
	color: #ffffff;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	z-index: 3;
	box-shadow: 0 3px 10px rgba(112, 93, 242, 0.35);
}

/* Article Info: Title & Excerpt */
.nexashop-blog-info {
	text-align: right;
	margin-bottom: 10px;
	padding: 0 2px;
	flex: 1;
}

.nexashop-blog-title {
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.5;
	margin: 0 0 6px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 40px;
}

.nexashop-blog-title a {
	color: #24264b;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.nexashop-blog-title a:hover {
	color: #6c5ce7;
}

.nexashop-blog-excerpt {
	font-size: 11.5px;
	font-weight: 500;
	color: #969ba9;
	margin: 0;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 37px;
}

/* Soft Grey Meta Box (Jalali Date + Reading Time) - Matches Special Sale Price Box */
.nexashop-blog-meta-box {
	background-color: #f7f8fb;
	border-radius: 12px;
	padding: 8px 12px;
	margin-top: auto;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.nexashop-blog-meta-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 600;
	color: #24264b;
}

.nexashop-blog-meta-date svg {
	flex-shrink: 0;
}

.nexashop-blog-meta-reading {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 500;
	color: #969ba9;
}

.nexashop-blog-meta-reading svg {
	flex-shrink: 0;
}

/* Bottom Action Row: Lavender Read Pill (Right) + Square Bookmark (Left) - Matches Special Sale Cart + Wishlist */
.nexashop-blog-card-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nexashop-blog-btn-read {
	flex: 1;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	background-color: #eeebff;
	color: #6c5ce7;
	border: none;
	border-radius: 12px;
	padding: 0 12px;
	font-size: 12.5px;
	font-weight: 800;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.25s ease;
}

.nexashop-blog-btn-read .blog-btn-icon {
	width: 20px;
	height: 20px;
	border-radius: 5px;
	border: 1.5px solid #6c5ce7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
}

.nexashop-blog-btn-read:hover {
	background-color: #6c5ce7;
	color: #ffffff;
}

.nexashop-blog-btn-read:hover .blog-btn-icon {
	border-color: #ffffff;
}

.nexashop-blog-btn-bookmark {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background-color: #ffffff;
	border: 1.5px solid #eceef4;
	color: #24264b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	cursor: pointer;
	padding: 0;
	transition: all 0.22s ease;
}

.nexashop-blog-btn-bookmark svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

.nexashop-blog-btn-bookmark:hover {
	border-color: #6c5ce7;
	color: #6c5ce7;
}

/* ==========================================================================
   3. RESPONSIVE BREAKPOINTS (Matches Special Sale)
   ========================================================================== */
@media (max-width: 1280px) {
	.nexashop-blog-slider-wrapper {
		--blog-cols: 3;
	}
}

@media (max-width: 991px) {
	.nexashop-blog-slider-wrapper {
		--blog-cols: 2;
	}
}

@media (max-width: 767px) {
	.nexashop-blog-main-grid {
		flex-direction: column;
	}

	.nexashop-blog-hero-banner {
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
	}

	.nexashop-blog-track {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}

	.nexashop-blog-card {
		flex: 0 0 230px;
		scroll-snap-align: start;
	}
}

/* ==========================================================================
   4. EMPTY STATE ALERT (When no real posts exist)
   ========================================================================== */
.nexashop-blog-no-posts-alert {
	width: 100%;
	min-height: 260px;
	background-color: #ffffff;
	border: 2px dashed #e2e8f0;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 36px 24px;
	text-align: center;
	box-sizing: border-box;
	gap: 12px;
	position: relative;
	z-index: 2;
}

.nexashop-blog-no-posts-alert svg {
	color: #6c5ce7;
	opacity: 0.85;
}

.nexashop-blog-no-posts-alert .no-posts-main-text {
	font-size: 15px;
	font-weight: 700;
	color: #24264b;
	margin: 0;
	line-height: 1.6;
}

.nexashop-blog-no-posts-alert .no-posts-hint {
	font-size: 12.5px;
	color: #8b92a5;
	line-height: 1.6;
}

