/*
Theme Name: Black Hat SEO
Theme URI: https://www.blackhatseo.co.in/
Author: Black Hat SEO
Author URI: https://www.blackhatseo.co.in/
Description: A dark, edgy, underground WordPress Full Site Editing block theme for the Black Hat SEO growth-hacking community. Features a pitch-black foundation with vivid neon accents, fluid typography, and a kinetic design language built for SEO practitioners, automation hackers, and digital marketers.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blackhatseo
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, custom-colors, custom-menu, editor-style, featured-images, one-column, translation-ready, blog
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.3
*/

/* ==========================================================================
   0. FOUNDATIONS
   ========================================================================== */

/* Anti-aliasing for the dark canvas — text glows cleaner against #0B0B0B */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Prevent overflow from decorative elements */
:root,
body,
.wp-site-blocks {
	overflow-x: clip;
	overflow-y: visible;
}

/* ==========================================================================
   1. STICKY HEADER
   ========================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Pseudo-element for scrolled-state background — never backdrop-filter
   on the header itself, so the mobile nav overlay's position:fixed keeps
   resolving to the viewport. */
.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--surface);
	box-shadow: 0 1px 0 var(--wp--preset--color--border);
}

/* Inner header group — site-header className from header.html */
.site-header {
	transition: padding 0.25s ease;
}

/* Header link underline animation */
.site-header .wp-block-navigation a {
	position: relative;
	transition: color 0.2s ease;
}

.site-header .wp-block-navigation a::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--primary);
	transition: width 0.3s ease;
}

.site-header .wp-block-navigation a:hover::after,
.site-header .wp-block-navigation a:focus::after {
	width: 100%;
}

/* ==========================================================================
   2. MOBILE HAMBURGER OVERLAY
   ========================================================================== */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--surface) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--text);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--muted);
}

/* ==========================================================================
   3. TYPOGRAPHY POLISH
   ========================================================================== */

/* Body selection color */
::selection {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
}

/* Tight heading tracking — reinforcement beyond theme.json */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	text-wrap: balance;
}

/* Gradient text utility — for hero headlines */
.has-gradient-text,
.gradient-text {
	background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, #4ADE80 40%, var(--wp--preset--color--accent) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ==========================================================================
   4. LINK STYLES
   ========================================================================== */

/* Links in body content get an underline that animates in */
.wp-block-post-content a:not(.wp-block-button__link):not(.wp-block-navigation-item__content) {
	/*text-decoration: underline;*/
	/*text-decoration-color: var(--wp--preset--color--primary);*/
	/*text-underline-offset: 0.2em;*/
	/*text-decoration-thickness: 1px;*/
	/*transition: color 0.2s ease, text-decoration-color 0.2s ease;*/
}

.wp-block-post-content a:not(.wp-block-button__link):not(.wp-block-navigation-item__content):hover {
	color: var(--wp--preset--color--accent);
	text-decoration-color: var(--wp--preset--color--accent);
}

/* ==========================================================================
   5. BUTTON VARIANTS
   ========================================================================== */

/* Base button polish */
.wp-block-button__link {
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, color 0.2s ease;
	cursor: pointer;
	line-height: 1.2;
}

/* Primary / filled button glow */
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
	transform: translateY(-1px);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:active {
	transform: translateY(0);
	box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* Outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
	border-style: solid;
	background: transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	border-color: var(--wp--preset--color--primary);
}

/* Pill-shaped button variant */
.is-style-pill .wp-block-button__link {
	border-radius: 100px;
}

/* Secondary CTA text-link style */
.is-style-text-link .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--accent);
	padding-left: 0;
	padding-right: 0;
	border-radius: 0;
	position: relative;
}

.is-style-text-link .wp-block-button__link::after {
	content: "";
	position: absolute;
	bottom: 0.4rem;
	left: 0;
	right: 0;
	height: 1.5px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.is-style-text-link .wp-block-button__link:hover::after {
	transform: scaleX(1);
}

.is-style-text-link .wp-block-button__link:hover {
	background: transparent;
	box-shadow: none;
	transform: none;
}

/* ==========================================================================
   6. CARD STYLES
   ========================================================================== */

/* Surface card — the recurring dark card pattern */
.is-style-surface-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.is-style-surface-card:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 24px rgba(34, 197, 94, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
	transform: translateY(-2px);
}

/* Post cards in Query Loop */
.wp-block-post {
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-post:hover {
	transform: translateY(-2px);
}

/* ==========================================================================
   7. FEATURED IMAGE TREATMENTS
   ========================================================================== */

.wp-block-post-featured-image img,
.wp-block-image img {
	border-radius: 8px;
}

.wp-block-post-featured-image {
	overflow: hidden;
	border-radius: 8px;
}

.wp-block-post-featured-image img {
	transition: transform 0.4s ease, filter 0.4s ease;
	will-change: transform;
}

.wp-block-post-featured-image:hover img {
	transform: scale(1.03);
}

/* Cover block images — darken overlay for text legibility */
.wp-block-cover {
	border-radius: 12px;
	overflow: hidden;
}

/* Gallery images */
.wp-block-gallery .wp-block-image img {
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.02);
}

/* ==========================================================================
   8. BADGE & TAG STYLES
   ========================================================================== */

/* Hero badge — the glowing pill with pulsing dot */
.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem 0.4rem 0.65rem;
	background: rgba(34, 197, 94, 0.08);
	border: 1px solid rgba(34, 197, 94, 0.2);
	border-radius: 100px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	letter-spacing: 0.02em;
}

.hero-badge-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	background: var(--wp--preset--color--primary);
	border-radius: 50%;
	box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
	animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
	0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
	50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.9); }
}

/* Category tag badges — colored upper-case labels */
.wp-block-post-terms a {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 4px;
	background: rgba(34, 197, 94, 0.1);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.wp-block-post-terms a:hover {
	background: rgba(34, 197, 94, 0.2);
}

/* Category color rotation for grids */
.is-style-category-accent-1 { color: var(--wp--preset--color--primary); }
.is-style-category-accent-2 { color: var(--wp--preset--color--accent); }
.is-style-category-accent-3 { color: var(--wp--preset--color--violet); }
.is-style-category-accent-4 { color: var(--wp--preset--color--orange); }

/* ==========================================================================
   9. STATS BAR
   ========================================================================== */

.stat-item {
	text-align: center;
	position: relative;
}

.stat-item::before {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	border-radius: 2px;
	margin: 0 auto var(--wp--preset--spacing--20);
	opacity: 0.4;
}

/* Color rotation for stat accent lines */
.stat-item:nth-child(1)::before { background: var(--wp--preset--color--primary); }
.stat-item:nth-child(2)::before { background: var(--wp--preset--color--accent); }
.stat-item:nth-child(3)::before { background: var(--wp--preset--color--violet); }
.stat-item:nth-child(4)::before { background: var(--wp--preset--color--orange); }

/* Stat number glow */
.stat-number {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.stat-item:nth-child(1) .stat-number {
	color: var(--wp--preset--color--primary);
	text-shadow: 0 0 30px rgba(34, 197, 94, 0.25);
}

.stat-item:nth-child(2) .stat-number {
	color: var(--wp--preset--color--accent);
	text-shadow: 0 0 30px rgba(245, 213, 71, 0.2);
}

.stat-item:nth-child(3) .stat-number {
	color: var(--wp--preset--color--violet);
	text-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.stat-item:nth-child(4) .stat-number {
	color: var(--wp--preset--color--orange);
	text-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.stat-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-top: var(--wp--preset--spacing--20);
}

/* ==========================================================================
   10. HERO SECTION DECORATIVE ELEMENTS
   ========================================================================== */

/* Radial glow backdrop */
.hero-bg-radial {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 70% 60% at 50% 40%, rgba(34, 197, 94, 0.08) 0%, transparent 70%),
		radial-gradient(ellipse 50% 45% at 50% 45%, rgba(34, 197, 94, 0.05) 0%, transparent 60%),
		radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.03) 25%, transparent 55%);
	pointer-events: none;
}

/* Grid overlay */
.hero-bg-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(46, 46, 46, 0.15) 1px, transparent 1px),
		linear-gradient(90deg, rgba(46, 46, 46, 0.15) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
	pointer-events: none;
}

/* Glow orb */
.hero-glow-orb {
	position: absolute;
	width: 600px;
	height: 600px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -55%);
	background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

/* Accent lines */
.hero-accent-line-left {
	position: absolute;
	left: 8%;
	top: 15%;
	width: 1px;
	height: 200px;
	background: linear-gradient(to bottom, transparent, rgba(34, 197, 94, 0.2), transparent);
	z-index: 0;
	pointer-events: none;
}

.hero-accent-line-right {
	position: absolute;
	right: 12%;
	bottom: 20%;
	width: 1px;
	height: 160px;
	background: linear-gradient(to bottom, transparent, rgba(245, 213, 71, 0.15), transparent);
	z-index: 0;
	pointer-events: none;
}

/* Hero button primary — gradient fill with glow */
.btn-hero-primary .wp-block-button__link,
.wp-block-button.is-style-hero-primary .wp-block-button__link {
	background: linear-gradient(180deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
	box-shadow:
		0 0 20px rgba(34, 197, 94, 0.25),
		0 1px 3px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-hero-primary .wp-block-button__link:hover,
.wp-block-button.is-style-hero-primary .wp-block-button__link:hover {
	box-shadow:
		0 0 30px rgba(34, 197, 94, 0.4),
		0 4px 12px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transform: translateY(-1px);
}

/* ==========================================================================
   11. SEPARATOR & BORDER POLISH
   ========================================================================== */

.wp-block-separator {
	opacity: 1;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	max-width: 100px;
	margin-left: auto;
	margin-right: auto;
}

.wp-block-separator.is-style-wide {
	max-width: 100%;
}

/* ==========================================================================
   12. QUOTE & PULLQUOTE
   ========================================================================== */

.wp-block-quote {
	font-style: normal;
}

.wp-block-quote cite,
.wp-block-pullquote cite {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	font-style: normal;
	margin-top: var(--wp--preset--spacing--20);
	display: block;
}

/* ==========================================================================
   13. CODE BLOCK
   ========================================================================== */

.wp-block-code code {
	font-size: inherit;
	color: inherit;
	background: transparent;
}

pre.wp-block-code {
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--border) transparent;
}

/* ==========================================================================
   14. SEARCH BLOCK
   ========================================================================== */

.wp-block-search__input {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	color: var(--wp--preset--color--text);
	padding: 0.65rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-search__input:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
	outline: none;
}

.wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 0.7;
}

.wp-block-search__button {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	border: none;
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.wp-block-search__button:hover {
	background: var(--wp--preset--color--primary-dark);
}

/* ==========================================================================
   15. FORM INPUTS (NEWSLETTER, COMMENTS)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	color: var(--wp--preset--color--text);
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
	outline: none;
}

textarea {
	min-height: 120px;
	resize: vertical;
}

label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ==========================================================================
   16. COMMENTS
   ========================================================================== */

.wp-block-comments {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--50);
}

.comment-body {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--30);
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata a {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.comment-metadata a:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   17. PAGINATION
   ========================================================================== */

.wp-block-query-pagination {
	gap: var(--wp--preset--spacing--20);
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-query-pagination-numbers .page-numbers:hover {
	background: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	border-color: var(--wp--preset--color--primary);
}

.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   18. SOCIAL ICONS
   ========================================================================== */

.wp-block-social-links .wp-social-link {
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.wp-block-social-links .wp-social-link:hover {
	transform: translateY(-2px);
	opacity: 0.8;
}

/* ==========================================================================
   19. SKIP TO CONTENT
   ========================================================================== */

.skip-link {
	position: fixed;
	top: -100%;
	left: var(--wp--preset--spacing--30);
	z-index: 999;
	padding: 0.75rem 1.5rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	border-radius: 0 0 8px 8px;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 0;
}

/* ==========================================================================
   20. FOCUS STATES
   ========================================================================== */

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

/* Suppress focus ring on mouse click */
*:focus:not(:focus-visible) {
	outline: none;
}

/* ==========================================================================
   21. SCREEN READER TEXT
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	padding: 0.75rem 1.5rem;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--medium);
	z-index: 100000;
}

/* ==========================================================================
   22. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   23. BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.breadcrumbs a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.breadcrumbs a:hover {
	color: var(--wp--preset--color--primary);
}

.breadcrumbs .separator {
	margin-inline: 0.4rem;
	opacity: 0.5;
}

/* ==========================================================================
   24. NEWSLETTER PATTERN
   ========================================================================== */

.newsletter-form input[type="email"] {
	flex: 1;
	min-width: 0;
}

.newsletter-form {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	max-width: 480px;
}

@media (max-width: 600px) {
	.newsletter-form {
		flex-direction: column;
	}
}

/* ==========================================================================
   25. CATEGORY GRID CARDS
   ========================================================================== */

.category-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--40);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 24px rgba(34, 197, 94, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
	transform: translateY(-3px);
}

/* Color rotation on category card icons/titles */
.category-card:nth-child(3n+1) .category-card-title { color: var(--wp--preset--color--primary); }
.category-card:nth-child(3n+2) .category-card-title { color: var(--wp--preset--color--accent); }
.category-card:nth-child(3n+3) .category-card-title { color: var(--wp--preset--color--violet); }

/* ==========================================================================
   26. TOPIC / THREAD CARDS
   ========================================================================== */

.topic-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--40);
	transition: border-color 0.2s ease, transform 0.15s ease;
}

.topic-card:hover {
	border-color: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

/* HOT / VIP badges */
.badge-hot,
.badge-vip {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.badge-hot {
	background: rgba(255, 107, 53, 0.15);
	color: var(--wp--preset--color--orange);
}

.badge-vip {
	background: rgba(168, 85, 247, 0.15);
	color: var(--wp--preset--color--violet);
}

/* Tag badge color rotation */
.tag-badge:nth-child(3n+1) { color: var(--wp--preset--color--primary); background: rgba(34, 197, 94, 0.1); }
.tag-badge:nth-child(3n+2) { color: var(--wp--preset--color--accent); background: rgba(245, 213, 71, 0.1); }
.tag-badge:nth-child(3n+3) { color: var(--wp--preset--color--orange); background: rgba(255, 107, 53, 0.1); }

.tag-badge {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
}

/* ==========================================================================
   27. ENGAGEMENT METRICS
   ========================================================================== */

.engagement-meta {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.engagement-meta svg {
	width: 14px;
	height: 14px;
	opacity: 0.5;
}

/* ==========================================================================
   28. READING TIME / POST META
   ========================================================================== */

.reading-time {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

/* ==========================================================================
   29. FOOTER
   ========================================================================== */

.site-footer a {
	transition: color 0.2s ease;
}

.site-footer a:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   30. TABLE STYLES
   ========================================================================== */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table td,
.wp-block-table th {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}

.wp-block-table tr:hover td {
	background: rgba(255, 255, 255, 0.02);
}

/* Striped variant */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
	background: var(--wp--preset--color--surface);
}

/* ==========================================================================
   31. DETAILS / ACCORDION
   ========================================================================== */

.wp-block-details {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	transition: border-color 0.2s ease;
}

.wp-block-details[open] {
	border-color: var(--wp--preset--color--primary);
}

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wp-block-details summary::marker,
.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	font-size: 1.25rem;
	color: var(--wp--preset--color--muted);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after {
	content: "\2212";
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   32. SCROLLBAR
   ========================================================================== */

* {
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--border) transparent;
}

*::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

*::-webkit-scrollbar-track {
	background: transparent;
}

*::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--border);
	border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--muted);
}

/* ==========================================================================
   33. RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 782px) {
	/* Tighten card padding on mobile */
	.category-card,
	.topic-card {
		padding: var(--wp--preset--spacing--30);
	}

	/* Stats grid on small screens: 2×2 */
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.stats-grid {
		gap: var(--wp--preset--spacing--30);
	}
}

/* ==========================================================================
   Loop layout utilities
   ========================================================================== */
/* These classes are wired to the wp:query blocks emitted by content/pages and
   templates. Do not rename. Tune colours and spacing to theme.json tokens. */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}

.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: currentColor;
	opacity: 0.15;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: "";
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: var(--wp--preset--color--background);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}

@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}