/*
Theme Name: Football Wire
Theme URI: https://example.com/football-wire
Author: Enterprise News Engineering
Author URI: https://example.com
Description: A monolithic, high-performance custom theme built for high-traffic football transfer news, editorials and opinion publishing. Zero third-party frameworks, sub-50KB CSS budget, inlined critical path, transient-cached queries, and CLS-safe ad slots. Built to compete with major sports publishers on Core Web Vitals.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: football-wire
Tested up to: 6.6
*/

/* =========================================================
   NON-CRITICAL CSS ONLY.
   Everything above-the-fold (header, nav, hero, grid, ad slot
   dimensions, typography) is inlined via the custom-critical-css
   hook in header.php to eliminate render-blocking requests.
   This file is loaded asynchronously (media="print" onload swap,
   see wp_enqueue_style() usage in functions.php) and therefore
   never blocks the first paint. Keep this file lean: it covers
   below-the-fold and progressive-enhancement styling only
   (comments, widgets, footer, pagination, print).
   Combined critical + non-critical payload must stay under 50KB.
   ========================================================= */

/* ---- Widgets / Sidebar (below the fold) ---- */
.widget-area {
	padding: 24px 16px;
}

.author-archive-header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.author-archive-header img {
	border-radius: 50%;
	flex-shrink: 0;
}

.archive-header h1 span {
	color: #1e4620;
}

.widget {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e5e5;
}

.widget-title {
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 12px;
	color: #101820;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 15px;
}

/* ---- Pagination ---- */
.pagination-wrap {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 32px 0;
	flex-wrap: wrap;
}

.pagination-wrap .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 4px;
	background: #f0f2f5;
	color: #101820;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.pagination-wrap .page-numbers.current {
	background: #1e4620;
	color: #fff;
}

/* ---- Post Navigation (prev/next article) ---- */
.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 32px 0;
}

.post-nav-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: #f7f8fa;
	border-radius: 6px;
	text-decoration: none;
	color: #101820;
}

.post-nav-link--next {
	text-align: right;
	grid-column: 2;
}

.post-nav-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #5a6068;
}

.post-nav-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

/* ---- Author Bio Box ---- */
.author-bio-box {
	display: flex;
	gap: 16px;
	padding: 20px;
	background: #f7f8fa;
	border-radius: 8px;
	margin: 32px 0;
	align-items: flex-start;
}

.author-bio-box img {
	border-radius: 50%;
	flex-shrink: 0;
}

.author-bio-box .author-name {
	font-weight: 700;
	margin-bottom: 4px;
}

.author-bio-box .author-desc {
	font-size: 14px;
	color: #555;
	line-height: 1.5;
}

/* ---- Related Editorials ---- */
.related-editorials {
	margin: 40px 0;
	padding-top: 24px;
	border-top: 3px solid #101820;
}

.related-editorials .section-heading {
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 16px;
	text-transform: uppercase;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

.related-grid .related-card a {
	text-decoration: none;
	color: #101820;
}

.related-grid .related-card img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 8px;
}

.related-grid .related-card h4 {
	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;
	margin: 0;
}

/* ---- Comments ---- */
.comments-area {
	margin: 40px 0;
	padding-top: 24px;
	border-top: 1px solid #e5e5e5;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment {
	padding: 16px 0;
	border-bottom: 1px solid #f0f0f0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	font-size: 16px;
	margin-bottom: 12px;
	font-family: inherit;
}

.comment-form textarea {
	min-height: 120px;
}

.comment-form .submit-btn {
	background: #1e4620;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

/* ---- Footer ---- */
.site-footer {
	background: #101820;
	color: #d0d4d9;
	margin-top: 48px;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 24px;
	padding: 40px 16px;
	max-width: 1200px;
	margin: 0 auto;
}

.footer-columns h3 {
	color: #fff;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 12px;
}

.footer-columns ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-columns a {
	color: #b0b6bd;
	text-decoration: none;
	font-size: 14px;
	line-height: 2;
}

.footer-columns a:hover {
	color: #fff;
}

.site-footer .footer-bottom {
	border-top: 1px solid #26303a;
	padding: 16px;
	text-align: center;
	font-size: 13px;
	color: #7d848c;
}

/* ---- Print ---- */
@media print {
	.site-header, .ad-slot, .sticky-mobile-nav, .related-editorials, .comments-area, .site-footer {
		display: none !important;
	}
}
