/**
 * WebXtrm Blog Posts Widget Styles
 */

.wx-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 1fr;
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.wx-blog-grid * {
	box-sizing: border-box;
}

/* ===== CARD ===== */
.wx-blog-card {
	display: flex;
	flex-direction: column;
	background: #0f131a;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	overflow: hidden;
	height: 100%;
	transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.wx-blog-card:hover {
	background: #111620;
	border-color: rgba(0, 201, 240, 0.25);
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(0, 201, 240, 0.08);
}

/* ===== IMAGE ===== */
.wx-blog-image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0a0d12;
	border-radius: 14px 14px 0 0;
}

.wx-blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wx-blog-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 201, 240, 0.06);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.wx-blog-card:hover .wx-blog-image img {
	transform: scale(1.08);
}

.wx-blog-card:hover .wx-blog-image::after {
	opacity: 1;
}

/* ===== CATEGORY BADGE ===== */
.wx-blog-category {
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 5px;
	text-decoration: none;
	display: inline-block;
	line-height: 1;
}

.wx-blog-category--over {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #00c9f0;
	color: #000;
	z-index: 2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wx-blog-category--inline {
	background: #00c9f0;
	color: #000;
	margin-bottom: 12px;
	transition: opacity 0.2s ease;
}

.wx-blog-category--inline:hover {
	opacity: 0.85;
}

/* ===== CONTENT ===== */
.wx-blog-content {
	padding: 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Title */
.wx-blog-title {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: #ffffff;
	margin: 0 0 10px 0;
}

.wx-blog-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
	display: block;
}

.wx-blog-title a:hover,
.wx-blog-card:hover .wx-blog-title a {
	color: #00c9f0;
}

/* Excerpt */
.wx-blog-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
	color: #9aacbd;
	margin: 0 0 14px 0;
	flex: 1;
}

/* Meta */
.wx-blog-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: #7a8ca0;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wx-blog-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.wx-blog-meta svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	stroke: #00c9f0;
}

/* Read More */
.wx-blog-read-more {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #00c9f0;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	letter-spacing: 0.3px;
	transition: color 0.25s ease;
	margin-top: auto;
	align-self: flex-start;
}

.wx-blog-read-more:hover {
	color: #00e8ff;
}

.wx-blog-read-more svg {
	width: 13px;
	height: 13px;
	stroke: #00c9f0;
	transition: transform 0.25s ease, stroke 0.25s ease;
}

.wx-blog-read-more:hover svg {
	transform: translateX(4px);
	stroke: #00e8ff;
}

/* ===== EMPTY STATE ===== */
.wx-blog-empty {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #9aacbd;
	text-align: center;
	padding: 40px 20px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px dashed rgba(255, 255, 255, 0.08);
	border-radius: 12px;
}
