/*
Theme Name: Retro Football Analysis
Theme URI: https://retrofootballanalysis.com
Description: Block theme for Retro Football Analysis (child of Twenty Twenty-Five). Replaces the old Elementor / Elementor Pro build. No page builder, no extra plugins.
Author: Insight Analysis
Template: twentytwentyfive
Version: 1.0.3
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: rfa-retro
*/

/* ---------- Labels: blue text with a rule after it (was Elementor "divider" with text) ---------- */
.rfa-label {
	display: flex;
	align-items: center;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.rfa-label::after {
	content: "";
	flex: 1;
	border-top: 2px solid var(--wp--preset--color--blue);
}

/* ---------- Big retro titles ---------- */
.rfa-shadow { text-shadow: 3px 3px 0 #111111; }

/* ---------- Header ---------- */
.rfa-header .wp-block-navigation a { text-decoration: none; }
.rfa-header .wp-block-navigation .current-menu-item > a,
.rfa-header .wp-block-navigation a:hover { color: var(--wp--preset--color--blue); }
.rfa-header .wp-block-navigation__submenu-container { background: #000 !important; border: 0 !important; }
.rfa-header .wp-block-search__input { background: #111; color: #fff; border: 1px solid #333; }
.rfa-header .wp-block-search__button { background: var(--wp--preset--color--blue); color: #fff; border: 0; }

/* ---------- Cards (post grids) ---------- */
.rfa-card .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.rfa-card .wp-block-post-title a { text-decoration: none; color: inherit; }
.rfa-card .wp-block-post-title a:hover { color: var(--wp--preset--color--blue); }
.rfa-card .wp-block-read-more { color: var(--wp--preset--color--blue); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }

/* Featured cards: artwork on top, black caption bar */
.rfa-featured .wp-block-post-featured-image { margin: 0; }
.rfa-featured .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.rfa-featured .wp-block-post-title a { color: #fff; text-decoration: none; }
.rfa-featured .wp-block-post-title a:hover { color: var(--wp--preset--color--yellow); }
.rfa-featured .wp-block-post-date { font-family: var(--wp--preset--font-family--bebas); font-size: 18px; letter-spacing: 1px; }

/* Category labels on cards */
.rfa-card .wp-block-post-terms a { text-decoration: none; color: var(--wp--preset--color--blue); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* Horizontal scroll rows (were Elementor loop carousels) */
.rfa-row .wp-block-post-template {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, 30%);
	overflow-x: auto;
	gap: var(--wp--preset--spacing--40);
	padding-bottom: 12px;
	scroll-snap-type: x mandatory;
}
.rfa-row .wp-block-post-template > li { scroll-snap-align: start; margin-block-start: 0 !important; }

/* ---------- Sidebar series cards ---------- */
.rfa-series-card { min-height: 120px !important; }
.rfa-series-card a { text-decoration: none; }
.rfa-series-card:hover { filter: brightness(1.15); }

/* ---------- Stacked artwork (players over Wembley) ---------- */
.rfa-stack { display: grid; }
.rfa-stack > * { grid-area: 1 / 1; margin: 0 !important; }

/* ---------- Share links ---------- */
.rfa-share { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rfa-share a {
	background: #000; color: #fff; padding: 6px 14px; text-decoration: none;
	text-transform: uppercase; font-size: 13px; letter-spacing: 1px;
}
.rfa-share a:hover { background: var(--wp--preset--color--blue); }

/* ---------- "Read next" card inside articles ---------- */
.rfa-read-next { margin: 2em 0; }
.rfa-read-next a {
	display: flex; align-items: center; gap: 16px;
	background: #000; color: #fff; text-decoration: none;
	border-left: 6px solid var(--wp--preset--color--yellow);
}
.rfa-read-next a:hover { background: #111; }
.rfa-read-next__img { flex: 0 0 180px; line-height: 0; }
.rfa-read-next__img img { width: 180px; height: 110px; object-fit: cover; }
.rfa-read-next__text { padding: 12px 16px 12px 0; display: flex; flex-direction: column; }
.rfa-read-next__label {
	font-family: var(--wp--preset--font-family--bebas); color: var(--wp--preset--color--yellow);
	font-size: 22px; letter-spacing: 1px; line-height: 1;
}
.rfa-read-next__title { font-family: var(--wp--preset--font-family--montserrat); font-weight: 700; font-size: 18px; line-height: 1.3; }
@media (max-width: 600px) {
	.rfa-read-next__img { flex-basis: 110px; }
	.rfa-read-next__img img { width: 110px; height: 90px; }
	.rfa-read-next__title { font-size: 15px; }
}

/* ---------- Card type label (Match Report / Data Analysis / Article) ---------- */
.rfa-type {
	display: inline-block; margin-top: 10px; padding: 3px 8px;
	font-family: var(--wp--preset--font-family--montserrat); font-weight: 700; font-size: 11px;
	letter-spacing: 1px; text-transform: uppercase; color: #fff; background: #000;
}
.rfa-type--match-report { background: var(--wp--preset--color--blue); }
.rfa-type--data-analysis { background: #000; color: var(--wp--preset--color--yellow); }
.rfa-type--article { background: var(--wp--preset--color--grey); }

/* ---------- Footer ---------- */
.rfa-footer a { text-decoration: none; }
.rfa-footer .rfa-footer-menu a { color: var(--wp--preset--color--blue); }
.rfa-footer .rfa-footer-menu a:hover { color: var(--wp--preset--color--yellow); }

@media (max-width: 781px) {
	.rfa-row .wp-block-post-template { grid-auto-columns: 80%; }
	.rfa-header .wp-block-social-links { display: none; }
}
