/* ════════════════════════════════════════════════════════════════════════════
   NEWS PAGE
   Page-specific styles for the news archive page.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Page header (news extras) ── */
.page-header {
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}


.page-header__count {
	font-size: 0.86rem;
	line-height: 1.65;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.75);
	margin-top: 10px;
}

.page-header__search {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 10px 16px;
	width: 240px;
}

.page-header__search:focus-within {
	outline: 2px solid var(--text-white);
	outline-offset: 2px;
	border-radius: 8px;
}

.page-header__search svg {
	width: 14px;
	height: 14px;
	stroke: #7d8390;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.page-header__search input {
	background: none;
	border: none;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--text-white);
	width: 100%;
}

.page-header__search input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

/* ── Section divider ── */
.sec-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 2px;
}

.sec-divider__label {
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-dim);
	white-space: nowrap;
}

.sec-divider__line {
	flex: 1;
	height: 1px;
	background: var(--border);
}

/* ── Filter bar ── */
.filter-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 3px 2px;
	flex-wrap: nowrap;
}

.filter-bar::-webkit-scrollbar {
	display: none;
}

.filter-pill {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 99px;
	border: 1.5px solid var(--border);
	color: var(--ink-dim);
	background: transparent;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	line-height: 1;
	transition:
		color 0.15s,
		background 0.15s,
		border-color 0.15s;
	white-space: nowrap;
}

.filter-pill:hover {
	color: var(--ink);
	border-color: var(--ink-soft);
}

.filter-pill.is-active {
	color: var(--text-white);
	background: var(--navy);
	border-color: var(--navy);
}

.filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 18px;
	border-radius: 99px;
	font-size: 0.58rem;
	font-weight: 700;
	background: rgba(21, 21, 21, 0.08);
	color: var(--ink-dim);
	margin-left: 4px;
	padding-inline: 4px;
}

.filter-pill.is-active .filter-count {
	background: rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.7);
}

/* ── Season filter bar ── */
.filter-bar__prefix {
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-dim);
	white-space: nowrap;
	flex-shrink: 0;
	padding-right: 2px;
}

.filter-divider {
	width: 1px;
	height: 18px;
	background: var(--border);
	flex-shrink: 0;
	margin: 0 4px;
}

.filter-bar--season .filter-pill {
	font-size: 0.69rem;
	padding: 5px 12px;
}

.filter-bar--season .filter-pill.is-active {
	background: var(--ink-soft);
	border-color: var(--ink-soft);
}

/* ── Featured story ── */
.featured-story {
	border-radius: var(--r);
	overflow: hidden;
	background: var(--navy);
	display: flex;
	flex-direction: row;
	gap: 0;
	padding: 0;
}

/* Text column — left side on desktop */
.featured-story__body {
	flex: 1 1 0;
	min-width: 0;
	position: relative;
	z-index: 2;
	padding: 44px 56px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Image column — right side on desktop */
.featured-story__visual {
	flex: 0 0 42%;
	position: relative;
	overflow: hidden;
}

.featured-story__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s ease;
}

.featured-story:hover .featured-story__bg {
	transform: scale(1.03);
}

.featured-story__tag {
	display: inline-block;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #f0b429;
	margin-bottom: 12px;
	align-self: flex-start;
}

.featured-story__title {
	font-size: clamp(1.6rem, 3.5vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--text-white);
	margin-bottom: 12px;
}

.featured-story__excerpt {
	font-size: 0.88rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 24px;
	max-width: 52ch;
}

.featured-story__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: auto;
}

.featured-story__date {
	font-size: 0.65rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.38);
	letter-spacing: 0.06em;
}

.featured-story__link {
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--text-white);
	display: flex;
	align-items: center;
	gap: 5px;
	transition: gap 0.15s;
}

.featured-story:hover .featured-story__link {
	gap: 9px;
}

.featured-story__link svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── News list ── */
.news-list {
	overflow: hidden;
	padding: 0;
	gap: 0;
}

.news-list__month {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 28px;
	background: var(--ink-faint);
	border-bottom: 1px solid var(--border);
}

.news-list__month-label {
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-dim);
	white-space: nowrap;
}

.news-list__month-line {
	flex: 1;
	height: 1px;
	background: var(--border);
}

/* Expanded row - thumbnail + excerpt */
.news-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 28px;
	border-bottom: 1px solid var(--border);
	color: inherit;
	transition: background 0.15s;
}

.news-list > a:last-child,
.news-list > .news-row:last-child {
	border-bottom: none;
}

.news-row:hover {
	background: rgba(21, 21, 21, 0.02);
}

.news-row__thumb {
	flex-shrink: 0;
	width: 100px;
	height: -webkit-fill-available;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	background: var(--ink-faint);
}

.news-row__thumb-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
}

.news-row:hover .news-row__thumb-bg {
	transform: scale(1.04);
}

.news-row__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.news-row__meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.news-row__tag {
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--navy);
}

.news-row__tag--match {
	color: var(--navy);
}

.news-row__tag--squad {
	color: #2970b8;
}

.news-row__tag--community {
	color: var(--green);
}

.news-row__tag--youth {
	color: #d97706;
}

.news-row__date {
	font-size: 0.62rem;
	font-weight: 500;
	color: var(--ink-dim);
}

.news-row__title {
	font-size: 0.94rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.35;
	color: var(--ink);
}

/* Collapse/expand on hover */
.news-row__expand {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-row:hover .news-row__expand {
	grid-template-rows: 1fr;
}

.news-row__expand-inner {
	overflow: hidden;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 0;
	transition: padding-top 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-row:hover .news-row__expand-inner {
	padding-top: 5px;
}

.news-row__excerpt {
	font-size: 0.82rem;
	line-height: 1.65;
	color: var(--ink-dim);
	padding-top: var(--gap);
}

.news-row__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--ink-dim);
	align-self: flex-start;
	transition:
		color 0.15s,
		gap 0.15s;
}

.news-row:hover .news-row__link {
	color: var(--ink);
	gap: 7px;
}

.news-row__link svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Load more ── */
.load-more-wrap {
	display: flex;
	justify-content: center;
	padding: 8px 0 4px;
}

.load-more-btn {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ink-dim);
	border: 1.5px solid var(--border);
	padding: 12px 32px;
	border-radius: 10px;
	cursor: pointer;
	transition:
		color 0.15s,
		border-color 0.15s,
		background 0.15s;
	background: transparent;
}

.load-more-btn:hover {
	color: var(--ink);
	border-color: var(--ink-soft);
	background: var(--ink-faint);
}

/* ── Archive year strip ── */
.archive-strip {
	border-radius: var(--r);
	background: var(--card);
	border: 1.5px solid var(--border);
	padding: 28px 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.archive-strip__label {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-dim);
	flex-shrink: 0;
}

.archive-years {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.archive-year {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ink-dim);
	padding: 6px 14px;
	border-radius: 8px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition:
		color 0.15s,
		border-color 0.15s;
}

.archive-year:hover {
	color: var(--ink);
	border-color: var(--border);
}

.archive-year.is-active {
	color: var(--navy);
	border-color: var(--navy);
	font-weight: 700;
}

.archive-strip__rss {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--ink-dim);
	display: flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	transition: color 0.15s;
}

.archive-strip__rss:hover {
	color: var(--ink);
}

.archive-strip__rss svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

/* ── Search no-results empty state ── */
.news-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 56px 32px;
	text-align: center;
	color: var(--ink-dim);
}

.news-empty svg {
	width: 36px;
	height: 36px;
	color: rgba(240, 180, 41, 0.5);
	margin-bottom: 4px;
}

.news-empty__heading {
	font-size: 0.94rem;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.4;
}

.news-empty__heading em {
	font-style: normal;
	color: #f0b429;
}

.news-empty__sub {
	font-size: 0.78rem;
	color: var(--ink-dim);
	max-width: 320px;
	line-height: 1.6;
}

/* ── Search snippet + term highlighting ── */
.news-row__snippet {
	font-size: 0.8rem;
	line-height: 1.6;
	color: var(--ink-dim);
	border-left: 2px solid rgba(240, 180, 41, 0.55);
	padding-left: 10px;
	margin-top: var(--gap);
}

.news-row__snippet mark,
.news-row__title mark {
	background: rgba(240, 180, 41, 0.22);
	color: inherit;
	border-radius: 3px;
	padding: 0 2px;
	font-style: normal;
	font-weight: inherit;
}

/* ══════════════════════════════════════
   RESPONSIVE - NEWS
   ══════════════════════════════════════ */
@media (max-width: 900px) {
	.page-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.page-header__search {
		width: 100%;
	}

	.news-row__thumb {
		width: 86px;
	}

	/* Stack: image on top, text below */
	.featured-story {
		flex-direction: column;
	}

	.featured-story__visual {
		flex: 0 0 auto;
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.featured-story__body {
		padding: 24px 20px;
		justify-content: flex-start;
	}
}

@media (max-width: 580px) {
	.news-row {
		padding: 14px 20px;
	}

	.news-row__thumb {
		width: 74px;
	}

	.news-list__month {
		padding: 9px 20px;
	}

	.archive-strip {
		flex-wrap: wrap;
		padding: 20px;
		gap: 14px;
	}
}

@media (max-width: 380px) {
	.archive-years {
		gap: 2px;
	}

	.news-row__thumb {
		width: 56px;
	}
}

/* ══════════════════════════════════════
   TOUCH - TWO-TAP EXPAND
   ══════════════════════════════════════ */
@media (hover: none) {
	.news-row.is-expanded {
		background: rgba(21, 21, 21, 0.02);
	}

	.news-row.is-expanded .news-row__thumb-bg {
		transform: scale(1.04);
	}

	.news-row.is-expanded .news-row__expand {
		grid-template-rows: 1fr;
	}

	.news-row.is-expanded .news-row__expand-inner {
		padding-top: 5px;
	}

	.news-row.is-expanded .news-row__link {
		color: var(--ink);
		gap: 7px;
	}
}

/* Darkmode Overwrite */

html[data-theme='dark'] .filter-bar--season .filter-pill.is-active {
	background-color: unset;
}

html[data-theme='dark'] .featured-story {
	background: var(--card);
}
