/*
Theme Name: CritFeed
Theme URI: https://critfeed.com
Author: CritFeed Team
Description: HUD-editorial block theme for the CritFeed gaming blog. Dark-first, crit-red accents, chamfered panels.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: critfeed
*/

/* ---------------------------------------------------------------------------
   Atmosphere: void background with a faint tactical grid + crit glow
--------------------------------------------------------------------------- */
body {
	position: relative;
	min-height: 100vh;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60rem 24rem at 70% -8rem, rgba(255, 61, 81, 0.07), transparent 65%),
		repeating-linear-gradient(0deg, rgba(237, 239, 244, 0.022) 0 1px, transparent 1px 56px),
		repeating-linear-gradient(90deg, rgba(237, 239, 244, 0.022) 0 1px, transparent 1px 56px);
}

::selection {
	background: var(--wp--preset--color--crit);
	color: #0a0c10;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--crit);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Logo
--------------------------------------------------------------------------- */
.cf-logo {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.4rem;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: var(--wp--preset--color--foam);
	text-transform: uppercase;
}

.cf-logo span {
	color: var(--wp--preset--color--crit);
}

.cf-logo::before {
	content: "▸";
	color: var(--wp--preset--color--crit);
	margin-right: 0.35rem;
}

/* ---------------------------------------------------------------------------
   Mono micro-labels (kickers) — game-HUD style
--------------------------------------------------------------------------- */
.cf-kicker {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--wp--preset--color--steel);
}

.cf-kicker::before {
	content: "//";
	color: var(--wp--preset--color--crit);
	margin-right: 0.5em;
}

/* Post meta rows (date, categories) render in mono */
.cf-meta,
.cf-meta a,
.wp-block-post-date,
.wp-block-post-date a,
.wp-block-post-terms,
.wp-block-post-terms a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	text-decoration: none;
	color: var(--wp--preset--color--steel);
}

.wp-block-post-terms a:hover,
.wp-block-post-date a:hover {
	color: var(--wp--preset--color--crit);
}

/* ---------------------------------------------------------------------------
   Panels & cards — chamfered corner, HUD borders
--------------------------------------------------------------------------- */
.cf-panel {
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

/* Hero panel gets targeting-reticle corner brackets instead of a side bar */
.cf-hero-panel {
	position: relative;
}

.cf-hero-panel::before,
.cf-hero-panel::after {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	pointer-events: none;
}

.cf-hero-panel::before {
	top: -1px;
	left: -1px;
	border-top: 2px solid var(--wp--preset--color--crit);
	border-left: 2px solid var(--wp--preset--color--crit);
}

.cf-hero-panel::after {
	bottom: -1px;
	right: -1px;
	border-bottom: 2px solid var(--wp--preset--color--crit);
	border-right: 2px solid var(--wp--preset--color--crit);
}

/* Cards inside query grids */
.cf-grid .wp-block-post {
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
	padding: var(--wp--preset--spacing--md);
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.cf-grid .wp-block-post:hover {
	border-color: var(--wp--preset--color--crit);
	transform: translateY(-3px);
}

.cf-grid .wp-block-post-title a,
.cf-hero-panel .wp-block-post-title a {
	text-decoration: none;
}

.cf-grid .wp-block-post-title a:hover,
.cf-hero-panel .wp-block-post-title a:hover {
	color: var(--wp--preset--color--crit);
}

.cf-grid .wp-block-post-featured-image img {
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

/* ---------------------------------------------------------------------------
   Content niceties
--------------------------------------------------------------------------- */
.wp-block-post-content a {
	color: var(--wp--preset--color--foam);
	text-decoration-color: var(--wp--preset--color--crit);
	text-underline-offset: 3px;
}

.wp-block-post-content a:hover {
	color: var(--wp--preset--color--crit);
}

.wp-block-post-content blockquote {
	position: relative;
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
	padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--md) var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg);
	color: var(--wp--preset--color--steel);
}

.wp-block-post-content blockquote::before {
	content: "\201C";
	position: absolute;
	top: 0.1em;
	left: 0.15em;
	font-family: var(--wp--preset--font-family--display);
	font-size: 3em;
	line-height: 1;
	color: var(--wp--preset--color--crit);
	opacity: 0.85;
}

.wp-block-post-content code {
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--wp--preset--color--line);
	padding: 0.1em 0.4em;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85em;
}

/* Score gold utility — used by review blocks later */
.cf-score {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	color: var(--wp--preset--color--gold);
}

/* ---------------------------------------------------------------------------
   Header / footer chrome
--------------------------------------------------------------------------- */
.cf-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: color-mix(in srgb, var(--wp--preset--color--void) 82%, transparent);
	backdrop-filter: blur(8px);
}

.cf-footer {
	border-top: 1px solid var(--wp--preset--color--line);
}

.wp-block-navigation a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.wp-block-navigation a:hover {
	color: var(--wp--preset--color--crit);
}
