/*
 * Stage 7–9 components: homepage (breaking bar, hero), News index
 * (filters, featured card), single article (hero/sidebar/tags/quote),
 * Topic pages, Transfers table + status pills, Search, and the shared
 * ad-slot placeholder.
 */

/* ---------- Homepage breaking bar ---------- */

.fb-breaking {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--accent);
	padding: 13px 16px;
}

.fb-breaking-pill {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 5px 10px;
}

.fb-breaking-pill-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
}

.fb-breaking-headline {
	flex: 1 1 260px;
	min-width: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.3;
	color: var(--ink);
}

.fb-breaking-time {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	color: var(--ink2);
}

/* ---------- Homepage hero ---------- */

.fb-hero {
	position: relative;
	min-height: var(--hero-h);
	background: var(--band);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.fb-hero-media {
	position: absolute;
	inset: 0;
}

.fb-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fb-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6,9,12,.94) 0%, rgba(6,9,12,.55) 46%, rgba(6,9,12,.1) 100%);
}

.fb-hero-body {
	position: relative;
	padding: 38px 36px 40px;
	max-width: 820px;
}

.fb-hero-kicker-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.fb-hero-kicker {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .14em;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 5px 10px;
}

.fb-hero-title {
	font-size: var(--hero-type);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.035em;
	margin: 0 0 16px;
	color: #fff;
}

.fb-hero-deck {
	font-family: Newsreader, Georgia, serif;
	font-size: 19px;
	line-height: 1.5;
	color: rgba(255,255,255,.82);
	margin: 0 0 18px;
	max-width: 54ch;
}

.fb-hero-byline {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	color: rgba(255,255,255,.7);
}

.fb-hero-byline strong {
	color: #fff;
	font-weight: 600;
}

/* ---------- Section heading with "all news" link ---------- */

.fb-section-heading-link {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--accent);
}

.fb-section-heading-link:hover {
	color: var(--ink);
}

/* ---------- Ad slot (both approved placements) ----------
   Site-wide placeholder cleanup: the bordered/tinted box look
   (border + --sunk background) was exclusively the fake/dev
   placeholder's visual dressing (see footbaall_ad_slot() in
   inc/template-tags.php, which no longer renders anything when no real
   ad code is configured) and has been removed. What remains is purely
   structural sizing/centering for real ad code, if an administrator
   ever configures one via Footbaall_Ad_Settings. */

.fb-ad-slot {
	text-align: center;
}

.fb-ad-slot-box {
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Filter chips (News filters, Transfer status filters) ---------- */

.fb-filter-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding: 20px 0 28px;
}

.fb-filter-chip {
	padding: 9px 16px;
	border: 1px solid var(--rule);
	background: transparent;
	color: var(--ink2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	transition: all .2s ease;
}

.fb-filter-chip.is-active {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--accent-ink);
}

/* ---------- News index featured card ---------- */

.fb-featured-card {
	display: grid;
	grid-template-columns: var(--cols-feat);
	gap: 0;
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--rule);
	margin-bottom: 40px;
}

.fb-featured-card-body {
	padding: 32px 34px;
}

.fb-featured-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .14em;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 5px 10px;
	margin-bottom: 18px;
}

.fb-featured-title {
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.04;
	letter-spacing: -.035em;
	margin: 0 0 14px;
}

.fb-featured-deck {
	font-family: Newsreader, Georgia, serif;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink2);
	margin: 0 0 20px;
	max-width: 50ch;
}

.fb-featured-media {
	position: relative;
	min-height: 260px;
	background: var(--band);
}

.fb-featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

/* ---------- Single article ---------- */

.fb-article-hero {
	position: relative;
	background: var(--band);
	min-height: var(--art-hero-h);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.fb-article-hero-media {
	position: absolute;
	inset: 0;
}

.fb-article-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fb-article-hero-body {
	position: relative;
	max-width: 980px;
	margin: 0 auto;
	padding: 54px 28px 44px;
	width: 100%;
}

.fb-article-hero .fb-breadcrumbs a,
.fb-article-hero .fb-breadcrumbs .is-current {
	color: rgba(255,255,255,.62);
}

.fb-article-hero .fb-breadcrumbs a:hover {
	color: var(--accent);
}

.fb-article-title {
	font-size: clamp(32px, 4.6vw, 60px);
	font-weight: 800;
	line-height: .99;
	letter-spacing: -.04em;
	margin: 0 0 18px;
	color: #fff;
	max-width: 22ch;
}

.fb-article-byline {
	display: flex;
	align-items: center;
	gap: 13px;
	flex-wrap: wrap;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .09em;
	color: rgba(255,255,255,.68);
}

.fb-article-byline strong {
	color: #fff;
	font-weight: 600;
}

.fb-article-body-section {
	max-width: var(--container-article);
	margin: 0 auto;
	padding: 46px 28px 72px;
}

.fb-article-grid {
	display: grid;
	grid-template-columns: var(--cols-main);
	gap: 52px;
	align-items: start;
}

.fb-article-content {
	max-width: 66ch;
	font-family: Newsreader, Georgia, serif;
	font-size: 20px;
	line-height: 1.72;
	color: var(--ink);
}

.fb-article-content > p:first-of-type::first-letter {
	float: left;
	font-size: 60px;
	font-weight: 800;
	font-family: Archivo, sans-serif;
	line-height: .8;
	padding: 6px 12px 0 0;
	color: var(--accent);
}

.fb-article-content h2 {
	font-size: 26px;
	line-height: 1.16;
	letter-spacing: -.03em;
	margin: 34px 0 14px;
}

.fb-article-content p {
	margin: 0 0 26px;
}

.fb-article-content blockquote {
	margin: 36px 0;
	padding: 24px 26px;
	background: var(--band);
	color: var(--band-ink);
	border-left: 4px solid var(--accent);
}

.fb-article-content blockquote p {
	font-family: 'Libre Caslon Display', Georgia, serif;
	font-size: clamp(22px, 2.4vw, 29px);
	line-height: 1.3;
	margin: 0;
	color: #fff;
}

.fb-article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 36px 0 0;
}

.fb-article-tag {
	padding: 8px 14px;
	background: var(--surface);
	border: 1px solid var(--rule);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .07em;
	color: var(--ink2);
}

.fb-article-tag:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.fb-article-sidebar {
	display: flex;
	flex-direction: column;
	gap: 30px;
	position: sticky;
	top: 94px;
}

.fb-sidebar-heading {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .16em;
	color: var(--ink);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--accent);
}

.fb-sidebar-more-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fb-sidebar-more-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 13px 0;
	border-bottom: 1px solid var(--rule);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -.02em;
	color: var(--ink);
}

.fb-sidebar-more-row:hover {
	color: var(--accent);
}

.fb-sidebar-more-kind {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--ink2);
	flex: 0 0 auto;
}

/* ---------- Topic page ---------- */

.fb-topic-header {
	padding-bottom: 26px;
	border-bottom: 2px solid var(--ink);
	margin-bottom: 34px;
}

.fb-topic-title {
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1;
	letter-spacing: -.04em;
	margin: 0 0 12px;
}

.fb-topic-deck {
	font-family: Newsreader, Georgia, serif;
	font-size: 18px;
	line-height: 1.5;
	color: var(--ink2);
	margin: 0;
	max-width: 60ch;
}

/* Promoted topic hub hero (e.g. /ronaldo/, /messi/) — reuses .fb-hero,
   .fb-hero-media, .fb-hero-scrim, .fb-hero-body, .fb-hero-title and
   .fb-hero-deck from the homepage hero; only the kicker treatment and
   the optional oversized number watermark are unique to this component. */

.fb-topic-hero {
	margin-bottom: 34px;
}

.fb-topic-hero-number {
	position: absolute;
	top: 26px;
	right: 28px;
	font-size: clamp(56px, 7vw, 110px);
	font-weight: 800;
	letter-spacing: -.06em;
	color: rgba(255, 255, 255, .12);
	line-height: 1;
}

.fb-topic-hero-kicker {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .18em;
	color: var(--accent);
	margin-bottom: 16px;
}

/* ---------- Transfers table ---------- */

.fb-transfer-table {
	border-top: 2px solid var(--ink);
}

.fb-transfer-head {
	display: grid;
	grid-template-columns: var(--cols-tr);
	gap: 18px;
	padding: 12px 6px;
	border-bottom: 1px solid var(--rule);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .13em;
	color: var(--ink2);
}

.fb-transfer-row {
	display: grid;
	grid-template-columns: var(--cols-tr);
	gap: 18px;
	align-items: center;
	width: 100%;
	padding: 18px 6px;
	border-bottom: 1px solid var(--rule);
	transition: background-color .2s ease;
	color: inherit;
}

a.fb-transfer-row:hover {
	background: var(--surface);
}

.fb-transfer-player {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.025em;
	color: var(--ink);
	text-align: left;
}

.fb-transfer-move {
	font-size: 13px;
	font-weight: 500;
	color: var(--ink2);
	text-align: left;
}

.fb-transfer-fee {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--accent);
	text-align: left;
}

.fb-status-pill {
	justify-self: end;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	padding: 5px 10px;
	border: 1px solid var(--rule);
	background: transparent;
	color: var(--ink2);
	white-space: nowrap;
}

.fb-status-pill--official {
	background: var(--accent);
	color: var(--accent-ink);
	border-color: var(--accent);
}

.fb-status-pill--confirmed {
	background: var(--ink);
	color: var(--bg);
	border-color: var(--ink);
}

.fb-status-pill--report {
	background: transparent;
	color: var(--ink2);
	border-color: var(--rule);
}

.fb-status-pill--rumour,
.fb-status-pill--postponed {
	background: var(--accent-soft);
	color: var(--accent);
	border-color: var(--accent);
}

/* ---------- Search ---------- */

.fb-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 12px;
	margin-bottom: 16px;
}

.fb-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	background: transparent;
	color: var(--ink);
	font-family: Archivo, sans-serif;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -.02em;
	outline: none;
}

.fb-search-scopes {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}

.fb-search-count {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .11em;
	color: var(--ink2);
	margin-bottom: 8px;
}

.fb-search-results {
	border-top: 2px solid var(--ink);
	list-style: none;
	margin: 0;
	padding: 0;
}

.fb-search-result-row {
	display: flex;
	align-items: baseline;
	gap: 16px;
	width: 100%;
	padding: 17px 4px;
	border-bottom: 1px solid var(--rule);
	transition: padding-left .2s ease;
}

.fb-search-result-row:hover {
	padding-left: 12px;
}

.fb-search-result-type {
	flex: 0 0 78px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .13em;
	color: var(--accent);
}

.fb-search-result-label {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -.022em;
	color: var(--ink);
}

/* ---------- Pagination ---------- */

/*
 * Styles WordPress core's own the_posts_pagination() markup
 * (nav.pagination > div.nav-links > a/span.page-numbers), matched as
 * closely as that markup allows to the approved "LOAD MORE" button
 * aesthetic — square, uppercase, ink-filled for the active/emphasis
 * state, accent on hover/focus. Real pagination is kept (real page
 * counts, real URLs) rather than replaced with the prototype's
 * non-functional button.
 */

.pagination .nav-links {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--rule);
	background: transparent;
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
}

.pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

.pagination .page-numbers.dots {
	border-color: transparent;
	color: var(--ink2);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.fb-article-sidebar {
		position: static;
	}
}

@media (max-width: 860px) {
	.fb-featured-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.fb-status-pill {
		justify-self: start;
	}
}
