/* ===========================================================
   Category / archive / search page styles for ムダシル。
   =========================================================== */

/* ---------- Category hero (colored band) ---------- */
.cat-hero {
	padding: 24px 16px;
	background: var(--brand-soft);
	border-bottom: 1.5px solid var(--line);
	position: relative;
	overflow: hidden;
}
@media (min-width: 960px) { .cat-hero { padding: 40px 36px; } }

.cat-hero__inner {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
}
.cat-hero__bg {
	position: absolute;
	right: -30px;
	top: 10px;
	opacity: .7;
	pointer-events: none;
	z-index: 0;
}
.cat-hero__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 14px 0 10px;
	position: relative;
	z-index: 1;
}
.cat-hero__badge {
	color: #fff;
	width: 48px; height: 48px;
	border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-quote);
	font-weight: 800;
	font-size: 28px;
	flex-shrink: 0;
}
.cat-hero__num {
	font-size: 10px;
	letter-spacing: .25em;
	color: var(--ink-mute);
	font-weight: 700;
}
.cat-hero__name {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 26px;
	margin: 4px 0 0;
	color: var(--ink);
}
@media (min-width: 640px) { .cat-hero__name { font-size: 36px; } }
.cat-hero__desc {
	font-size: 13px;
	color: var(--ink-soft);
	line-height: 1.85;
	max-width: 560px;
	margin: 10px 0 14px;
	position: relative;
	z-index: 1;
}
@media (min-width: 640px) { .cat-hero__desc { font-size: 14px; } }
.cat-hero__tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

/* ---------- Search hero (white band, simpler) ---------- */
.search-hero {
	padding: 24px 16px;
	background: var(--paper);
	border-bottom: 1.5px solid var(--line);
}
@media (min-width: 960px) { .search-hero { padding: 32px 36px; } }
.search-hero__inner {
	max-width: 1180px;
	margin: 0 auto;
}
.search-hero__title {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 22px;
	margin: 8px 0 6px;
	color: var(--ink);
}
.search-hero__query {
	color: var(--brand);
	display: inline-block;
	border-bottom: 2px solid var(--sun);
}
.search-hero__count {
	font-size: 13px;
	color: var(--ink-soft);
}

/* ---------- Filter bar ---------- */
.cat-filter {
	padding: 14px 16px;
	border-bottom: 1.5px solid var(--line);
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
	flex-wrap: wrap;
}
@media (min-width: 960px) { .cat-filter { padding: 18px 36px; } }
.cat-filter__chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.cat-filter__sort {
	display: flex;
	gap: 6px;
	align-items: center;
	font-size: 12px;
	color: var(--ink-mute);
}
.cat-filter__sort select {
	padding: 4px 8px;
	border-radius: 6px;
	border: 1.5px solid var(--line);
	font-size: 12px;
	background: var(--paper);
	color: var(--ink);
}

/* ---------- Archive grid ---------- */
.archive-grid {
	padding: 16px 16px 24px;
	max-width: 1180px;
	margin: 0 auto;
}
@media (min-width: 960px) { .archive-grid { padding: 24px 36px 40px; } }
.archive-grid__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (min-width: 640px) { .archive-grid__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .archive-grid__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.archive-grid__h {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: var(--fs-h2);
	margin: 0 0 18px;
	position: relative;
	display: inline-block;
	color: var(--ink);
}
.archive-grid__h::after {
	content: '';
	position: absolute;
	left: -4px; right: -4px; bottom: 2px;
	height: .45em;
	background: var(--sun);
	z-index: -1;
	border-radius: 4px;
	transform: rotate(-.5deg);
}

/* ---------- Pagination ---------- */
.muda-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 32px 0;
	flex-wrap: wrap;
}
.muda-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--paper);
	border: 1.5px solid var(--line);
	color: var(--ink-soft);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
}
.muda-pagination .page-numbers.current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}
.muda-pagination .page-numbers:hover:not(.current) {
	background: var(--brand-soft);
	border-color: var(--brand);
	color: var(--brand-deep);
}

/* ---------- Other categories block ---------- */
.other-cats {
	padding: 8px 16px 32px;
	max-width: 1180px;
	margin: 0 auto;
}
@media (min-width: 960px) { .other-cats { padding: 16px 36px 48px; } }
.other-cats__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
@media (min-width: 960px) {
	.other-cats__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

/* ---------- No-results block ---------- */
.no-results {
	padding: 60px 24px;
	text-align: center;
	max-width: 480px;
	margin: 0 auto;
}
.no-results img,
.no-results svg { width: 120px; height: 120px; }
.no-results h2 {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 20px;
	margin: 16px 0 8px;
	color: var(--ink);
}
.no-results p {
	font-size: 14px;
	color: var(--ink-soft);
	line-height: 1.7;
}
