/* =============================================================
   ARCHIVE — Blog index, category, search results
   ============================================================= */

/* ── Archive hero ──────────────────────────────────────────── */
.ez-archive-hero {
	padding: 48px 0 44px;
	background: var(--ezee-navy);
	color: var(--ezee-white);
	position: relative;
	overflow: hidden;
}

.ez-archive-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 50% 80% at 100% 50%, rgba(78, 168, 255, 0.1) 0%, transparent 70%);
	pointer-events: none;
}

.ez-archive-hero .container {
	position: relative;
	z-index: 1;
}

.ez-archive-hero .ez-section-label {
	background: rgba(78, 168, 255, 0.15);
	color: var(--ezee-primary-light);
	border-color: rgba(78, 168, 255, 0.25);
	margin-bottom: 14px;
}

.ez-archive-hero__heading {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--ezee-white);
	margin: 0 0 12px;
	line-height: 1.12;
	max-width: 720px;
}

.ez-archive-hero__sub {
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.7);
	max-width: 560px;
	line-height: 1.7;
	margin: 0;
}

@media (max-width: 480px) {
	.ez-archive-hero {
		padding: 32px 0 32px;
	}
}


/* ── Layout ────────────────────────────────────────────────── */
.ez-archive-body {
	padding: 56px 0 72px;
	background: var(--ezee-surface);
}

.ez-archive-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 48px;
	align-items: start;
}

@media (max-width: 900px) {
	.ez-archive-layout {
		grid-template-columns: 1fr;
	}

	.ez-archive-sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.ez-archive-sidebar__cta {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.ez-archive-sidebar {
		grid-template-columns: 1fr;
	}
}


/* ── Post card grid ────────────────────────────────────────── */
.ez-archive-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

@media (max-width: 680px) {
	.ez-archive-grid {
		grid-template-columns: 1fr;
	}
}

/* Post card */
.ez-post-card {
	background: var(--ezee-white);
	border-radius: var(--ezee-radius-md);
	overflow: hidden;
	border: 1px solid var(--ezee-border);
	transition: transform var(--ezee-transition), box-shadow var(--ezee-transition);
	display: flex;
	flex-direction: column;
}

.ez-post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ezee-shadow-md);
}

.ez-post-card__image-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16/9;
	background: var(--ezee-surface);
}

.ez-post-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.ez-post-card:hover .ez-post-card__image {
	transform: scale(1.03);
}

.ez-post-card__image--fallback {
	width: 100%;
	height: 100%;
	background: var(--ezee-primary-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ezee-primary);
}

.ez-post-card__image--fallback svg {
	width: 64px;
	height: 42px;
}

.ez-post-card__body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ez-post-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ez-post-card__category {
	display: inline-block;
	padding: 3px 10px;
	background: var(--ezee-primary-bg);
	color: var(--ezee-primary);
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background var(--ezee-transition), color var(--ezee-transition);
	white-space: nowrap;
}

.ez-post-card__category:hover {
	background: var(--ezee-primary);
	color: var(--ezee-white);
}

.ez-post-card__date {
	font-size: 12px;
	color: var(--ezee-text-muted);
	white-space: nowrap;
}

.ez-post-card__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	margin: 0 0 10px;
	flex: 1;
}

.ez-post-card__title a {
	color: var(--ezee-text);
	text-decoration: none;
	transition: color var(--ezee-transition);
}

.ez-post-card__title a:hover {
	color: var(--ezee-primary);
}

.ez-post-card__excerpt {
	font-size: 13.5px;
	color: var(--ezee-text-muted);
	line-height: 1.65;
	margin: 0 0 16px;
}

.ez-post-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--ezee-border);
}

.ez-post-card__reading-time {
	font-size: 12px;
	color: var(--ezee-text-muted);
}

.ez-post-card__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ezee-primary);
	text-decoration: none;
	transition: gap var(--ezee-transition), color var(--ezee-transition);
}

.ez-post-card__link:hover {
	color: var(--ezee-primary-dark);
	gap: 8px;
}


/* ── Pagination ────────────────────────────────────────────── */
.ez-archive-pagination {
	margin-top: 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ez-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: var(--ezee-radius-sm);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1.5px solid var(--ezee-border);
	color: var(--ezee-text);
	background: var(--ezee-white);
	transition: all var(--ezee-transition);
}

.ez-archive-pagination .page-numbers:hover {
	border-color: var(--ezee-primary);
	color: var(--ezee-primary);
}

.ez-archive-pagination .page-numbers.current {
	background: var(--ezee-primary);
	border-color: var(--ezee-primary);
	color: var(--ezee-white);
}

.ez-archive-pagination .page-numbers.dots {
	border: none;
	background: none;
	cursor: default;
}


/* ── Empty state ───────────────────────────────────────────── */
.ez-archive-empty {
	text-align: center;
	padding: 64px 0;
}

.ez-archive-empty p {
	font-size: 1.0625rem;
	color: var(--ezee-text-muted);
	margin-bottom: 24px;
}


/* ── Sidebar ───────────────────────────────────────────────── */
.ez-archive-sidebar {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ez-archive-sidebar__widget {
	background: var(--ezee-white);
	border: 1px solid var(--ezee-border);
	border-radius: var(--ezee-radius-md);
	padding: 20px;
	box-shadow: var(--ezee-shadow-sm);
}

.ez-archive-sidebar__widget-heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ezee-text-muted);
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ezee-border);
}

/* Category list */
.ez-archive-sidebar__categories {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ez-archive-sidebar__categories li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid var(--ezee-border);
}

.ez-archive-sidebar__categories li:last-child {
	border-bottom: none;
}

.ez-archive-sidebar__categories a {
	font-size: 14px;
	color: var(--ezee-text);
	text-decoration: none;
	font-weight: 500;
	transition: color var(--ezee-transition);
}

.ez-archive-sidebar__categories a:hover {
	color: var(--ezee-primary);
}

/* WordPress outputs count inside the <a> as "(n)" */
.ez-archive-sidebar__categories .count {
	font-size: 12px;
	color: var(--ezee-text-muted);
	background: var(--ezee-surface);
	padding: 1px 7px;
	border-radius: 100px;
}

/* Apply CTA sidebar */
.ez-archive-sidebar__cta {
	border-radius: var(--ezee-radius-md);
	overflow: hidden;
}

.ez-archive-sidebar__cta-inner {
	background: linear-gradient(135deg, var(--ezee-primary) 0%, var(--ezee-primary-dark) 100%);
	padding: 24px;
	color: var(--ezee-white);
}

.ez-archive-sidebar__cta-inner .ez-section-label {
	background: rgba(255, 255, 255, 0.15);
	color: var(--ezee-white);
	border-color: rgba(255, 255, 255, 0.2);
	margin-bottom: 10px;
}

.ez-archive-sidebar__cta-inner h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--ezee-white);
	margin: 0 0 8px;
	letter-spacing: -0.015em;
	line-height: 1.3;
}

.ez-archive-sidebar__cta-inner p {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
	margin: 0 0 16px;
}

.ez-archive-sidebar__cta-inner .btn-primary {
	background: var(--ezee-white);
	color: var(--ezee-primary);
	width: 100%;
	justify-content: center;
}

.ez-archive-sidebar__cta-inner .btn-primary:hover {
	background: var(--ezee-primary-bg);
}


/* ── Search results ────────────────────────────────────────── */
.ez-search-hero {
	padding: 40px 0;
	background: var(--ezee-surface);
	border-bottom: 1px solid var(--ezee-border);
}

.ez-search-hero__heading {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ezee-text);
	margin: 0 0 16px;
}

.ez-search-hero__heading span {
	color: var(--ezee-primary);
}

.ez-search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
}

.ez-search-form input[type="search"] {
	flex: 1;
	padding: 10px 16px;
	border: 1.5px solid var(--ezee-border);
	border-radius: var(--ezee-radius-md);
	font-family: var(--ezee-font-sans);
	font-size: 15px;
	color: var(--ezee-text);
	background: var(--ezee-white);
	transition: border-color var(--ezee-transition);
}

.ez-search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--ezee-primary);
}

.ez-search-form button {
	padding: 10px 20px;
	background: var(--ezee-primary);
	color: var(--ezee-white);
	border: none;
	border-radius: var(--ezee-radius-md);
	font-family: var(--ezee-font-sans);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--ezee-transition);
}

.ez-search-form button:hover {
	background: var(--ezee-primary-dark);
}
