/**
 * EnlightenTH Bridge & Affiliate Embedder — Frontend Stylesheet
 * Designed specifically for enlightenth.com (Chinese Language Learning, Dictionary & Product Showcase)
 */

/* 1. In-Content Contextual Keyword Affiliate Links */
a.el-inline-aff-link {
	color: #c2410c;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(234, 88, 12, 0.45);
	text-underline-offset: 3px;
	padding: 0 2px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

a.el-inline-aff-link:hover {
	color: #fff !important;
	background-color: #ea580c;
	text-decoration: none;
}

.el-inline-aff-icon {
	font-size: 0.85em;
	margin-left: 2px;
	display: inline-block;
}

/* 2. Product Showcase Grid (for 22 *-product pages & [enlightenth_products] shortcode) */
.el-aff-showcase-wrap {
	margin: 28px 0 36px;
	padding: 26px;
	background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
	border: 1px solid #f1e4d3;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.el-aff-showcase-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid #fde68a;
}

.el-aff-showcase-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fef3c7;
	color: #b45309;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
}

.el-aff-showcase-sub {
	font-size: 13px;
	color: #64748b;
}

.el-aff-grid {
	display: grid;
	gap: 20px;
}

.el-aff-cols-3 {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.el-aff-cols-2 {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.el-aff-cols-4 {
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

/* 3. Product Card */
.el-aff-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.el-aff-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
	border-color: #fb923c;
}

.el-aff-card-thumb {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 72%;
	background: #f8fafc;
	overflow: hidden;
}

.el-aff-card-thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
	transition: transform 0.3s ease;
}

.el-aff-card:hover .el-aff-card-thumb img {
	transform: scale(1.04);
}

.el-aff-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(15, 23, 42, 0.85);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 6px;
}

.el-aff-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}

.el-aff-card-platform {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 6px;
}

.el-aff-card-title {
	font-size: 15px !important;
	line-height: 1.45 !important;
	font-weight: 600 !important;
	margin: 0 0 10px 0 !important;
	flex: 1;
}

.el-aff-card-title a {
	color: #1e293b !important;
	text-decoration: none !important;
}

.el-aff-card-title a:hover {
	color: #ea580c !important;
}

.el-aff-card-price {
	font-size: 18px;
	font-weight: 800;
	color: #dc2626;
	margin-bottom: 12px;
}

.el-aff-card-btn {
	display: block;
	text-align: center;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 14px;
	border-radius: 9px;
	text-decoration: none !important;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.el-aff-card-btn:hover {
	opacity: 0.92;
	color: #ffffff !important;
}

/* 4. Single Spotlight Card inside Articles */
.el-editorial-spotlight {
	margin: 26px 0;
	padding: 20px 22px;
	background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
	border: 1px solid #fed7aa;
	border-left: 5px solid #ea580c;
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(234, 88, 12, 0.06);
}

.el-spotlight-inner {
	display: flex;
	align-items: center;
	gap: 20px;
}

.el-spotlight-thumb img {
	width: 110px;
	height: 110px;
	object-fit: contain;
	background: #fff;
	border-radius: 10px;
	border: 1px solid #f1f5f9;
	padding: 6px;
}

.el-spotlight-content {
	flex: 1;
}

.el-spotlight-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #c2410c;
	background: #ffedd5;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.el-spotlight-title {
	font-size: 17px !important;
	font-weight: 700 !important;
	margin: 0 0 8px 0 !important;
	color: #0f172a !important;
}

.el-spotlight-price {
	font-size: 18px;
	font-weight: 800;
	color: #dc2626;
	margin-bottom: 10px;
}

.el-spotlight-btn {
	display: inline-block;
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none !important;
}

/* 5. Top Announcement & Sticky Bottom Affiliate Callout Bars */
.enlightenth-top-announcement-bar {
	background: linear-gradient(90deg, #9a3412 0%, #c2410c 50%, #ea580c 100%);
	color: #fff;
	padding: 8px 16px;
	font-size: 13.5px;
	text-align: center;
	z-index: 9999;
}

.enlightenth-top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.enlightenth-top-bar-cta {
	background: #fff;
	color: #c2410c !important;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 12.5px;
}

.enlightenth-sticky-bottom-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(8px);
	color: #fff;
	padding: 10px 18px;
	z-index: 99990;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
}

.enlightenth-sticky-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.enlightenth-sticky-title {
	font-size: 14px;
	font-weight: 600;
}

.enlightenth-sticky-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.enlightenth-sticky-btn {
	background: #ea580c;
	color: #fff !important;
	font-weight: 700;
	font-size: 13px;
	padding: 7px 16px;
	border-radius: 999px;
	text-decoration: none !important;
	white-space: nowrap;
}

.enlightenth-sticky-close {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	cursor: pointer;
	line-height: 1;
}

@media (max-width: 640px) {
	.el-spotlight-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.enlightenth-sticky-inner {
		flex-direction: column;
		text-align: center;
	}
}
