/**
 * GBP Theme - Single Post Editorial Styling (DJI / Enterprise Style with Table of Contents and Sidebar Cards)
 */

/* Container and layout */
.starter-theme-single-article {
	background-color: #ffffff;
}

.gbp-single-post-wrapper {
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px 20px 60px;
}

/* Breadcrumbs */
.gbp-post-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #94a3b8;
}

.gbp-post-breadcrumb a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.gbp-post-breadcrumb a:hover {
	color: #0094da;
}

/* Category Badges */
.gbp-post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.gbp-post-cat-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border-radius: 9999px;
	background: #f1f5f9;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #e2e8f0;
	transition: all 0.25s ease;
}

.gbp-post-cat-badge:hover {
	background: #e5f4fb;
	color: #0094da;
	border-color: #bae6fd;
}

/* Post Main Title */
.gbp-post-title {
	font-size: 28px !important;
	line-height: 1.35 !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	letter-spacing: -0.015em;
	margin: 0 0 14px 0 !important;
}

@media (min-width: 768px) {
	.gbp-post-title {
		font-size: 38px !important;
		line-height: 1.3 !important;
	}
}

/* Date / Author Meta */
.gbp-post-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 28px;
}

/* Featured Image */
.gbp-post-featured-wrap {
	margin-bottom: 36px;
	border-radius: 20px;
	overflow: hidden;
	background: #f8fafc;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
	border: 1px solid #f1f5f9;
}

.gbp-post-featured-img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

/* Article Entry Content */
.gbp-post-content {
	font-size: 15px;
	line-height: 1.85;
	color: #334155;
}

.gbp-post-content h2,
.gbp-post-content h3 {
	color: #0f172a;
	font-weight: 700;
	scroll-margin-top: 100px;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.gbp-post-content h2 {
	font-size: 22px;
	border-left: 4px solid #0094da;
	padding-left: 12px;
}

.gbp-post-content h3 {
	font-size: 18px;
}

.gbp-post-content p {
	margin-bottom: 1.25rem;
}

.gbp-post-content img {
	border-radius: 14px;
	max-width: 100%;
	height: auto;
}

/* Sidebar Widgets: Table of Contents & Related */
.gbp-sidebar-card {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #edf2f7;
	padding: 22px 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	margin-bottom: 24px;
}

.gbp-sidebar-card-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 16px 0 !important;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Table of Contents List */
.gbp-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gbp-toc-item {
	font-size: 13px;
	line-height: 1.5;
}

.gbp-toc-item a {
	color: #64748b;
	text-decoration: none;
	display: block;
	padding-left: 10px;
	border-left: 2px solid #e2e8f0;
	transition: all 0.2s ease;
}

.gbp-toc-item a:hover {
	color: #0094da;
	border-left-color: #0094da;
	transform: translateX(2px);
}

.gbp-toc-item--h3 {
	padding-left: 14px;
	font-size: 12px;
}

/* Sidebar Related Products (Compact Cards like Screenshot) */
.gbp-sidebar-prod-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gbp-sidebar-prod-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	text-decoration: none;
	transition: all 0.25s ease;
}

.gbp-sidebar-prod-item:hover {
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
	transform: translateY(-1px);
}

.gbp-sidebar-prod-thumb {
	width: 58px;
	height: 58px;
	border-radius: 8px;
	background: #ffffff;
	object-fit: contain;
	padding: 4px;
	border: 1px solid #edf2f7;
	shrink-0;
}

.gbp-sidebar-prod-info {
	flex: 1;
	min-width: 0;
}

.gbp-sidebar-prod-title {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 4px 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gbp-sidebar-prod-price {
	font-size: 14px;
	font-weight: 700;
	color: #ef4444;
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.gbp-sidebar-prod-price del {
	font-size: 11px;
	color: #94a3b8;
	font-weight: 400;
}

/* Promotion Banner Banner Card in Sidebar */
.gbp-sidebar-promo-card {
	background: #1e293b;
	border-radius: 18px;
	padding: 22px;
	color: #ffffff;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	display: block;
	transition: transform 0.3s ease;
}

.gbp-sidebar-promo-card:hover {
	transform: translateY(-2px);
}

.gbp-sidebar-promo-sub {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #94a3b8;
	margin-bottom: 6px;
}

.gbp-sidebar-promo-title {
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px 0;
}

.gbp-sidebar-promo-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #feef01;
}
