/**
 * FictionX Mazaya Module — Frontend Styles
 * Categories, offer cards, single page, and sidebar for public-facing mazaya pages.
 */

/* ==============================================================================
   Category Cards
   ============================================================================== */
.fxmz-cat-card {
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,.02);
	transition: transform .25s ease, box-shadow .25s ease;
}
.fxmz-cat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.fxmz-cat-thumb {
	position: relative;
	height: 170px;
	overflow: hidden;
	background: linear-gradient(135deg, #fff5e6 0%, #ffe0b2 50%, #ffcc80 100%);
}
.fxmz-cat-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.fxmz-cat-card:hover .fxmz-cat-thumb img {
	transform: scale(1.06);
}
.fxmz-cat-thumb.fxmz-no-img {
	display: flex;
	align-items: center;
	justify-content: center;
}
.fxmz-cat-thumb.fxmz-no-img::after {
	content: '\e838';
	font-family: 'Flaticon';
	font-size: 48px;
	color: rgba(255,168,0,.35);
}
.fxmz-cat-dim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.02) 55%);
}
.fxmz-cat-stats {
	position: absolute;
	bottom: 12px;
	right: 14px;
	left: 14px;
	display: flex;
	gap: 10px;
	z-index: 2;
}
.fxmz-stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	background: rgba(255,255,255,.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 4px 10px;
	border-radius: 20px;
}
.fxmz-stat i {
	font-size: 13px;
}
.fxmz-cat-info {
	padding: 14px 16px 16px;
}
.fxmz-cat-title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 4px;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fxmz-cat-desc {
	font-size: 13px;
	color: #8b8fa3;
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 20px;
}

/* ==============================================================================
   Offer / Benefit Cards
   ============================================================================== */
.fxmz-offer-card {
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,.02);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.fxmz-offer-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.fxmz-offer-thumb-link {
	display: block;
	text-decoration: none;
}
.fxmz-offer-thumb {
	position: relative;
	height: 160px;
	overflow: hidden;
	background: linear-gradient(135deg, #f0f4fa 0%, #e4e8f0 100%);
}
.fxmz-offer-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.fxmz-offer-card:hover .fxmz-offer-thumb img {
	transform: scale(1.05);
}
.fxmz-offer-thumb .fxmz-no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fxmz-offer-thumb .fxmz-no-img::after {
	content: '\e838';
	font-family: 'Flaticon';
	font-size: 40px;
	color: rgba(0,0,0,.08);
}

.fxmz-offer-type {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #fff;
	z-index: 2;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.fxmz-type-page { background: rgba(0,158,247,.75); }
.fxmz-type-file { background: rgba(11,183,131,.75); }
.fxmz-type-link { background: rgba(137,80,252,.75); }

.fxmz-offer-body {
	padding: 14px 16px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.fxmz-offer-title {
	display: -webkit-box;
	font-size: 14.5px;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 6px;
	line-height: 1.55;
	text-decoration: none;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s;
}
.fxmz-offer-title:hover {
	color: var(--bs-primary, #3699ff);
}
.fxmz-offer-excerpt {
	font-size: 13px;
	color: #8b8fa3;
	margin: 0 0 10px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fxmz-offer-meta {
	display: flex;
	gap: 14px;
	font-size: 12px;
	color: #a1a5b7;
	margin-top: auto;
}
.fxmz-offer-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.fxmz-offer-meta i {
	font-size: 13px;
}

/* ==============================================================================
   Single Page — Show Page
   ============================================================================== */
.fxmz-show-hero-wrap {
	border-radius: 12px;
	overflow: hidden;
	max-height: 400px;
	position: relative;
}
.fxmz-show-hero-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fxmz-show-hero-mini {
	max-height: 180px;
}
.fxmz-show-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,.3) 0%, transparent 60%);
}

.fxmz-show-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #f0f4fa;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: #6c7293;
	transition: background .2s, color .2s;
}
.fxmz-show-tag:hover {
	background: #e1e6f0;
	color: #3f4254;
}
.fxmz-show-tag i {
	font-size: 14px;
	color: #a1a5b7;
}
.fxmz-show-tag-cat {
	background: rgba(255,168,0,.08);
	color: #c77c00;
}
.fxmz-show-tag-cat:hover {
	background: rgba(255,168,0,.15);
	color: #a06200;
}
.fxmz-show-tag-cat i {
	color: #ffa800;
}

.fxmz-show-content {
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.fxmz-show-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 8px 0;
}
.fxmz-show-content table {
	width: 100%;
	border-collapse: collapse;
}
.fxmz-show-content table td,
.fxmz-show-content table th {
	padding: 8px 12px;
	border: 1px solid #e4e6ef;
}

/* File Download Block */
.fxmz-file-block {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #f8fafb;
	border: 1px solid #e8ecf1;
	border-radius: 10px;
}
.fxmz-file-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: linear-gradient(135deg, #0bb783 0%, #06a470 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.fxmz-file-icon span {
	font-size: 11px;
	font-weight: 800;
	color: #fff;
	letter-spacing: .5px;
}
.fxmz-file-info {
	flex: 1;
	min-width: 0;
}
.fxmz-file-name {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #1a1a2e;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fxmz-file-hint {
	display: block;
	font-size: 12px;
	color: #a1a5b7;
	margin-top: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* External Link Block */
.fxmz-link-block {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #f0f4fa;
	border: 1px solid #dce3f0;
	border-radius: 10px;
}
.fxmz-link-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: linear-gradient(135deg, #8950fc 0%, #6f3de0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
	font-size: 18px;
}

/* Related Items */
.fxmz-related-item {
	padding: 10px 0;
	transition: padding-right .2s;
}
.fxmz-related-item + .fxmz-related-item {
	border-top: 1px dashed #ebedf3;
}
.fxmz-related-item:hover {
	padding-right: 6px;
}
.fxmz-related-title {
	display: -webkit-box;
	font-size: 13.5px;
	font-weight: 600;
	color: #3f4254;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s;
}
.fxmz-related-item:hover .fxmz-related-title {
	color: var(--bs-primary, #3699ff);
}
.fxmz-related-date {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #a1a5b7;
	margin-top: 4px;
}
.fxmz-related-date i {
	font-size: 12px;
}

/* ==============================================================================
   Sidebar Block
   ============================================================================== */
.fxmz-sb-item {
	transition: background .15s;
	border-radius: 8px;
	padding-right: 6px;
	padding-left: 6px;
}
.fxmz-sb-item:hover {
	background: #f5f8fa;
}
.fxmz-sb-item + .fxmz-sb-item {
	border-top: 1px dashed #ebedf3;
}
.fxmz-sb-icon {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #fff5e6 0%, #ffe8c2 100%);
	color: #ffa800;
	font-size: 15px;
}
.fxmz-sb-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fxmz-sb-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 22px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 700;
	color: #ffa800;
	background: rgba(255,168,0,.08);
	border-radius: 6px;
	flex-shrink: 0;
}
