/**
 * LocalXAds Blog Engine - Archive & Grid Layouts Stylesheet
 */

/* Archive Layout with Sidebar */
.lxblog-wrapper .lxblog-archive-layout {
	display: block;
	margin-top: 36px;
}

.lxblog-wrapper .lxblog-archive-layout.lxblog-has-sidebar {
	display: grid;
	grid-template-columns: 1fr var(--lxblog-sidebar-width, 340px);
	gap: var(--lxblog-grid-gap, 32px);
	align-items: start;
}

.lxblog-wrapper .lxblog-content-area {
	min-width: 0;
}

/* 1. Layout A: 3-Column Grid */
.lxblog-wrapper .lxblog-grid--grid_3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--lxblog-grid-gap, 32px);
}

/* 2. Layout B: 2-Column Grid */
.lxblog-wrapper .lxblog-grid--grid_2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--lxblog-grid-gap, 32px);
}

/* 3. Layout C: List Layout */
.lxblog-wrapper .lxblog-grid--list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.lxblog-wrapper .lxblog-grid--list .lxblog-card {
	flex-direction: row;
	align-items: stretch;
}

.lxblog-wrapper .lxblog-grid--list .lxblog-card-media {
	width: 320px;
	flex-shrink: 0;
}

.lxblog-wrapper .lxblog-grid--list .lxblog-card-body {
	padding: 28px;
}

/* 4. Layout D: Magazine Layout */
.lxblog-wrapper .lxblog-grid--magazine {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--lxblog-grid-gap, 32px);
}

.lxblog-wrapper .lxblog-grid--magazine .lxblog-card:first-child {
	grid-column: span 3;
	flex-direction: row;
}

.lxblog-wrapper .lxblog-grid--magazine .lxblog-card:first-child .lxblog-card-media {
	width: 55%;
	min-height: 360px;
}

.lxblog-wrapper .lxblog-grid--magazine .lxblog-card:first-child .lxblog-card-title {
	font-size: 26px;
}

/* 5. Layout E: Featured Grid Hero Section */
.lxblog-wrapper .lxblog-hero-featured {
	background: var(--lxblog-surface, #0b1224);
	border: 1px solid var(--lxblog-border, #1e293b);
	border-radius: calc(var(--lxblog-card-radius, 12px) * 1.3);
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lxblog-wrapper .lxblog-hero-featured-inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
}

.lxblog-wrapper .lxblog-hero-featured-media {
	position: relative;
	height: 100%;
	min-height: 380px;
	background: #000000;
}

.lxblog-wrapper .lxblog-hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lxblog-wrapper .lxblog-hero-featured-content {
	padding: 44px;
}

.lxblog-wrapper .lxblog-hero-badge-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.lxblog-wrapper .lxblog-featured-label {
	font-size: 11px;
	font-weight: 800;
	color: var(--lxblog-accent, #00e676);
	background: rgba(0, 230, 118, 0.12);
	border: 1px solid rgba(0, 230, 118, 0.3);
	padding: 4px 10px;
	border-radius: 6px;
	letter-spacing: 0.08em;
}

.lxblog-wrapper .lxblog-hero-title {
	font-size: 30px;
	line-height: 1.25;
	margin-bottom: 14px;
}

.lxblog-wrapper .lxblog-hero-title-link {
	color: var(--lxblog-heading, #f8fafc);
}

.lxblog-wrapper .lxblog-hero-title-link:hover {
	color: var(--lxblog-primary, #00c6ff);
}

.lxblog-wrapper .lxblog-hero-excerpt {
	font-size: 15px;
	color: var(--lxblog-text, #cbd5e1);
	line-height: 1.6;
	margin-bottom: 24px;
}

.lxblog-wrapper .lxblog-hero-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lxblog-wrapper .lxblog-hero-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.lxblog-wrapper .lxblog-hero-avatar {
	border-radius: 50%;
}

.lxblog-wrapper .lxblog-hero-author-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--lxblog-heading, #f8fafc);
}

.lxblog-wrapper .lxblog-hero-meta {
	font-size: 12px;
	color: var(--lxblog-dim, #64748b);
	margin-top: 2px;
}

/* Sidebar Widgets */
.lxblog-wrapper .lxblog-sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.lxblog-wrapper .lxblog-widget {
	background-color: var(--lxblog-surface, #0b1224);
	border: 1px solid var(--lxblog-border, #1e293b);
	border-radius: var(--lxblog-card-radius, 12px);
	padding: 24px;
}

.lxblog-wrapper .lxblog-widget-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--lxblog-border, #1e293b);
}

.lxblog-wrapper .lxblog-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lxblog-wrapper .lxblog-widget-list-item {
	margin-bottom: 10px;
}

.lxblog-wrapper .lxblog-widget-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	color: var(--lxblog-text, #cbd5e1);
	padding: 6px 0;
	transition: color 0.2s ease;
}

.lxblog-wrapper .lxblog-widget-link:hover {
	color: var(--lxblog-primary, #00c6ff);
}

.lxblog-wrapper .lxblog-widget-count {
	font-size: 12px;
	background: var(--lxblog-border, #1e293b);
	padding: 2px 8px;
	border-radius: 9999px;
	color: var(--lxblog-muted, #94a3b8);
}

.lxblog-wrapper .lxblog-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lxblog-wrapper .lxblog-recent-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.lxblog-wrapper .lxblog-recent-thumb img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 8px;
}

.lxblog-wrapper .lxblog-recent-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--lxblog-heading, #f8fafc);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lxblog-wrapper .lxblog-recent-date {
	font-size: 11px;
	color: var(--lxblog-dim, #64748b);
}

.lxblog-wrapper .lxblog-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lxblog-wrapper .lxblog-tag-item {
	font-size: 12px;
	background: var(--lxblog-background, #050816);
	border: 1px solid var(--lxblog-border, #1e293b);
	padding: 5px 10px;
	border-radius: 6px;
	color: var(--lxblog-muted, #94a3b8);
	transition: all 0.2s ease;
}

.lxblog-wrapper .lxblog-tag-item:hover {
	color: var(--lxblog-primary, #00c6ff);
	border-color: var(--lxblog-primary, #00c6ff);
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
	.lxblog-wrapper .lxblog-grid--grid_3,
	.lxblog-wrapper .lxblog-grid--magazine {
		grid-template-columns: repeat(2, 1fr);
	}
	.lxblog-wrapper .lxblog-grid--magazine .lxblog-card:first-child {
		grid-column: span 2;
	}
	.lxblog-wrapper .lxblog-archive-layout.lxblog-has-sidebar {
		grid-template-columns: 1fr;
	}
	.lxblog-wrapper .lxblog-hero-featured-inner {
		grid-template-columns: 1fr;
	}
	.lxblog-wrapper .lxblog-hero-featured-media {
		min-height: 280px;
	}
}

@media (max-width: 680px) {
	.lxblog-wrapper .lxblog-grid--grid_3,
	.lxblog-wrapper .lxblog-grid--grid_2,
	.lxblog-wrapper .lxblog-grid--magazine {
		grid-template-columns: 1fr;
	}
	.lxblog-wrapper .lxblog-grid--magazine .lxblog-card:first-child {
		grid-column: span 1;
		flex-direction: column;
	}
	.lxblog-wrapper .lxblog-grid--magazine .lxblog-card:first-child .lxblog-card-media {
		width: 100%;
	}
	.lxblog-wrapper .lxblog-grid--list .lxblog-card {
		flex-direction: column;
	}
	.lxblog-wrapper .lxblog-grid--list .lxblog-card-media {
		width: 100%;
	}
	.lxblog-wrapper .lxblog-hero-title {
		font-size: 22px;
	}
	.lxblog-wrapper .lxblog-hero-featured-content {
		padding: 24px;
	}
}
