/* Blog archive + single – Fighter Challenge */

.fighter-blog-main {
	background: var(--fighter-black);
}

.fighter-blog {
	position: relative;
	overflow: hidden;
	background: var(--fighter-black);
	padding-top: calc(
		var(--wp-admin--admin-bar--height, 0px) + var(--fighter-pre-header-height, 0px) +
			var(--fighter-header-height, 96px) + 48px
	);
	padding-bottom: var(--fighter-section-y);
	box-sizing: border-box;
}

.fighter-blog__glow {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.fighter-blog__glow::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -120px;
	width: min(670px, 70vw);
	height: min(670px, 70vw);
	transform: translateX(-50%);
	background: var(--fighter-bg-ellipse) center / contain no-repeat;
	opacity: 0.55;
}

.fighter-blog__inner {
	position: relative;
	z-index: 1;
	width: min(100%, var(--fighter-container-max));
	margin-inline: auto;
	padding-inline: var(--fighter-section-x);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.fighter-blog__inner--single {
	gap: 40px;
}

.fighter-blog__header {
	width: 100%;
}

.fighter-blog__header .fighter-section-title {
	margin-bottom: 0;
	gap: 16px;
}

.fighter-blog__header .fighter-section-title__heading {
	display: flex;
	justify-content: center;
}

.fighter-blog__header .fighter-section-title__title {
	font-size: clamp(2rem, 5vw, 48px);
	line-height: 1;
}

.fighter-blog__intro {
	margin: 16px auto 0;
	max-width: 640px;
	text-align: center;
	color: var(--fighter-white-80);
	font-size: 16px;
	line-height: 26px;
}

.fighter-blog__intro p {
	margin: 0;
}

/* —— Post cards —— */
.fighter-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.fighter-post-card {
	display: flex;
	flex-direction: column;
	background: var(--fighter-gray-50);
	border: 1px solid var(--fighter-white-7);
	border-radius: var(--fighter-radius-lg);
	overflow: hidden;
	transition:
		border-color 0.25s ease,
		transform 0.25s ease;
}

.fighter-post-card:hover {
	border-color: rgba(255, 72, 31, 0.35);
	transform: translateY(-2px);
}

.fighter-post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--fighter-gray-100);
	overflow: hidden;
}

.fighter-post-card__media .fighter-post-card__image,
.fighter-post-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fighter-post-card:hover .fighter-post-card__image {
	transform: scale(1.04);
}

.fighter-post-card__placeholder {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	background: radial-gradient(
		circle at 50% 40%,
		rgba(1, 213, 255, 0.2) 0%,
		rgba(21, 23, 27, 0.9) 70%
	);
}

.fighter-post-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 20px 20px;
	flex: 1;
}

.fighter-post-card__date,
.fighter-blog__date {
	font-family: var(--fighter-font-body);
	font-size: 13px;
	line-height: 1;
	color: var(--fighter-white-50);
}

.fighter-post-card__title {
	margin: 0;
	font-family: var(--fighter-font-heading);
	font-weight: 800;
	font-size: 22px;
	line-height: 1.2;
	text-transform: uppercase;
}

.fighter-post-card__title a {
	color: var(--fighter-white);
	text-decoration: none;
}

.fighter-post-card__title a:hover {
	color: var(--fighter-brand);
}

.fighter-post-card__excerpt {
	margin: 0;
	color: var(--fighter-white-80);
	font-size: 15px;
	line-height: 24px;
	flex: 1;
}

.fighter-post-card__more {
	margin-top: 4px;
	font-family: var(--fighter-font-heading);
	font-weight: 800;
	font-size: 14px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--fighter-white);
	text-decoration: none;
}

.fighter-post-card__more:hover {
	color: var(--fighter-brand);
}

/* —— Pagination —— */
.fighter-blog__nav {
	display: flex;
	justify-content: center;
}

.fighter-blog__nav ul,
.fighter-blog__nav .nav-links,
.fighter-blog__nav .pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fighter-blog__nav li {
	list-style: none;
}

.fighter-blog__nav .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--fighter-white-7);
	border-radius: var(--fighter-radius-pill);
	background: var(--fighter-white-7);
	color: var(--fighter-white);
	font-family: var(--fighter-font-heading);
	font-weight: 800;
	font-size: 14px;
	text-decoration: none;
	box-sizing: border-box;
}

.fighter-blog__nav .page-numbers:hover,
.fighter-blog__nav .page-numbers.current {
	border-color: transparent;
	background: var(--fighter-white);
	color: var(--fighter-gray-100);
}

.fighter-blog__nav .page-numbers.dots {
	background: transparent;
	border-color: transparent;
	min-width: auto;
	padding: 0 4px;
}

.fighter-blog__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 48px 24px;
	text-align: center;
	background: var(--fighter-gray-50);
	border: 1px solid var(--fighter-white-7);
	border-radius: var(--fighter-radius-lg);
}

.fighter-blog__empty-text {
	margin: 0;
	max-width: 420px;
	color: var(--fighter-white-80);
	font-size: 16px;
	line-height: 26px;
}

/* —— Single post —— */
.fighter-blog--single {
	padding-bottom: calc(var(--fighter-section-y) + 24px);
}

.fighter-blog__backlink {
	align-self: flex-start;
	font-family: var(--fighter-font-heading);
	font-weight: 800;
	font-size: 14px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--fighter-white-50);
	text-decoration: none;
	transition: color 0.2s ease;
}

.fighter-blog__backlink:hover {
	color: var(--fighter-white);
}

.fighter-blog__hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
	width: 100%;
	max-width: 920px;
	margin-inline: auto;
}

.fighter-blog__hero .fighter-section-title {
	margin-bottom: 0;
	gap: 0;
	width: 100%;
}

.fighter-blog__hero .fighter-section-title__heading {
	display: flex;
	justify-content: center;
}

.fighter-blog__hero .fighter-section-title__title {
	position: relative;
	z-index: 1;
	font-size: clamp(2.5rem, 7vw, 64px);
	line-height: 1;
	letter-spacing: -0.02em;
}

.fighter-blog__hero .fighter-section-title__deco {
	left: -23.5px;
	top: 42px;
	bottom: auto;
	width: 166px;
	height: 16px;
	z-index: -1;
}

.fighter-blog__hero .fighter-blog__date {
	font-size: 14px;
	letter-spacing: 0.02em;
}

.fighter-blog__featured {
	position: relative;
	margin: 8px 0 0;
	width: 100%;
	aspect-ratio: 21 / 9;
	border-radius: var(--fighter-radius-lg);
	overflow: hidden;
	border: 1px solid var(--fighter-white-7);
	background: var(--fighter-gray-100);
}

.fighter-blog__featured-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.fighter-blog__body {
	display: flex;
	flex-direction: column;
	gap: 48px;
	width: min(100%, 720px);
	margin-inline: auto;
	padding-top: 8px;
}

.fighter-blog__content {
	color: var(--fighter-white-80);
	font-family: var(--fighter-font-body);
	font-size: 18px;
	line-height: 1.75;
}

.fighter-blog__content > *:first-child {
	margin-top: 0;
}

.fighter-blog__content > *:last-child {
	margin-bottom: 0;
}

.fighter-blog__content h2,
.fighter-blog__content h3,
.fighter-blog__content h4 {
	margin: 2em 0 0.75em;
	font-family: var(--fighter-font-heading);
	font-weight: 800;
	text-transform: uppercase;
	color: var(--fighter-white);
	line-height: 1.15;
}

.fighter-blog__content h2 {
	font-size: clamp(1.5rem, 3vw, 32px);
}

.fighter-blog__content h3 {
	font-size: clamp(1.25rem, 2.5vw, 24px);
}

.fighter-blog__content p {
	margin: 0 0 1.35em;
}

.fighter-blog__content a {
	color: var(--fighter-brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fighter-blog__content a:hover {
	color: var(--fighter-brand-yellow);
}

.fighter-blog__content ul,
.fighter-blog__content ol {
	margin: 0 0 1.35em;
	padding-left: 1.25em;
}

.fighter-blog__content li + li {
	margin-top: 0.45em;
}

.fighter-blog__content blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	border-left: 3px solid var(--fighter-brand);
	background: var(--fighter-gray-50);
	border-radius: 0 var(--fighter-radius-lg) var(--fighter-radius-lg) 0;
	color: var(--fighter-white);
	font-size: 20px;
	line-height: 1.5;
}

.fighter-blog__content blockquote p:last-child {
	margin-bottom: 0;
}

.fighter-blog__content img {
	width: 100%;
	height: auto;
	border-radius: var(--fighter-radius-lg);
	margin: 1.75em 0;
}

.fighter-blog__content figure {
	margin: 1.75em 0;
}

.fighter-blog__content figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--fighter-white-50);
	text-align: center;
}

.fighter-blog__content pre,
.fighter-blog__content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.fighter-blog__content code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--fighter-gray-50);
	color: var(--fighter-brand-yellow);
	font-size: 0.9em;
}

.fighter-blog__content pre {
	padding: 20px;
	overflow-x: auto;
	border-radius: var(--fighter-radius-lg);
	background: var(--fighter-gray-50);
	border: 1px solid var(--fighter-white-7);
}

.fighter-blog__content pre code {
	padding: 0;
	background: none;
}

.fighter-blog__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 28px;
	border-top: 1px solid var(--fighter-white-7);
}

@media (max-width: 991px) {
	.fighter-blog {
		padding-top: calc(
			var(--wp-admin--admin-bar--height, 0px) + var(--fighter-pre-header-height, 0px) +
				var(--fighter-header-height, 68px) + 40px
		);
	}

	.fighter-blog__inner {
		gap: 36px;
	}

	.fighter-blog__inner--single {
		gap: 28px;
	}

	.fighter-blog__featured {
		aspect-ratio: 16 / 9;
	}

	.fighter-blog__body {
		gap: 36px;
	}

	.fighter-blog__content {
		font-size: 17px;
	}

	.fighter-blog__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 639px) {
	.fighter-blog__grid {
		grid-template-columns: 1fr;
	}

	.fighter-post-card__body {
		padding: 14px 16px 16px;
	}

	.fighter-blog__hero .fighter-section-title__title {
		font-size: clamp(2rem, 10vw, 40px);
	}

	.fighter-blog__hero .fighter-section-title__deco {
		left: 0;
		top: 20px;
		width: 120px;
		height: 12px;
	}

	.fighter-blog__featured {
		aspect-ratio: 4 / 3;
		border-radius: 12px;
	}

	.fighter-blog__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.fighter-blog__footer .fighter-btn {
		width: 100%;
		justify-content: center;
	}
}
