/* =========================================================================
   Homepage Sidebar Widgets — General Box Style
   (Appearance > Customize > Sidebar / Post List > Homepage Sidebar —
   Widget Box Style — see inc/home-sidebar-widgets-style.php)

   Every rule below is scoped under `.gzfc-hs-widgets`, a wrapper that is
   only ever printed around the Homepage's main sidebar widgets (see the
   PHP file for exactly how that is enforced via dynamic_sidebar_before/
   dynamic_sidebar_after + is_front_page()). It never touches the sidebar
   on single posts, archives, or search results, and never touches the
   Header, Footer, or Post Cards.

   Applies to EVERY widget inside — Search, Recent Posts, Categories,
   Text, Custom Menu, etc. — via the shared `.gzf-widget` wrapper that the
   framework's own register_sidebar() before_widget/after_widget already
   prints for every widget, so no widget-specific markup is required.

   Uses --gzfc-sw-accent / --gzfc-sw-radius, populated automatically by
   the framework's existing dynamic CSS + live-preview engine (any control
   declaring a `css_var` is handled generically — see inc/customizer/
   css-output.php and assets/js/customizer-preview.js). Falls back to the
   theme's own accent color / a sensible radius if those are ever unset.
   ========================================================================= */

.gzfc-hs-widgets {
	--gzfc-sw-accent: var( --gzfc-sw-accent, var( --gzf-color-primary, #ff4d1c ) );
	--gzfc-sw-radius: var( --gzfc-sw-radius, 14px );
}

/* -------------------------------------------------------------------
   Shared resets so every default WordPress widget (Search form, Recent
   Posts list, Categories list, Text, Custom Menu, Tag Cloud, etc.) looks
   consistent inside any of the three styles below, without changing what
   each widget actually does.
   ------------------------------------------------------------------- */
.gzfc-hs-widgets .gzf-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.gzfc-hs-widgets .gzf-widget li {
	margin: 0 0 10px;
}
.gzfc-hs-widgets .gzf-widget li:last-child {
	margin-bottom: 0;
}
.gzfc-hs-widgets .gzf-widget a {
	color: var( --gzf-color-text );
	text-decoration: none;
	transition: color var( --gzf-transition, 200ms ease );
}
.gzfc-hs-widgets .gzf-widget a:hover {
	color: var( --gzfc-sw-accent );
}

/* Search widget — form, input, submit button. */
.gzfc-hs-widgets .gzf-widget .search-form {
	display: flex;
	gap: 8px;
}
.gzfc-hs-widgets .gzf-widget .search-form .search-field {
	flex: 1 1 auto;
	min-width: 0;
	background: var( --gzf-color-bg );
	border: 1px solid var( --gzf-color-border );
	border-radius: 8px;
	padding: 10px 12px;
	color: var( --gzf-color-text );
	font-size: .88rem;
}
.gzfc-hs-widgets .gzf-widget .search-form .search-field:focus {
	outline: none;
	border-color: var( --gzfc-sw-accent );
}
.gzfc-hs-widgets .gzf-widget .search-form .search-submit {
	flex: 0 0 auto;
	background: var( --gzfc-sw-accent );
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	color: #fff;
	font-weight: 600;
	font-size: .82rem;
	cursor: pointer;
	transition: opacity var( --gzf-transition, 200ms ease );
}
.gzfc-hs-widgets .gzf-widget .search-form .search-submit:hover {
	opacity: .88;
}

/* Recent Posts / Categories default counts, dates, etc. */
.gzfc-hs-widgets .gzf-widget .post-date {
	display: block;
	color: var( --gzf-color-muted );
	font-size: .76rem;
	margin-top: 2px;
}

/* =========================================================================
   1. Modern Gaming Box — clean box, bold heading, soft border.
   ========================================================================= */
.gzfc-hs-widgets-style--modern-box .gzf-widget {
	background: var( --gzf-color-surface );
	border: 1px solid var( --gzf-color-border );
	border-left: 3px solid var( --gzfc-sw-accent );
	border-radius: var( --gzfc-sw-radius );
	padding: 22px;
	margin-bottom: 22px;
}
.gzfc-hs-widgets-style--modern-box .gzf-widget:last-child {
	margin-bottom: 0;
}
.gzfc-hs-widgets-style--modern-box .gzf-widget-title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var( --gzf-color-heading );
	border-bottom: none;
	margin-bottom: 18px;
	padding-bottom: 0;
	position: relative;
	padding-left: 12px;
}
.gzfc-hs-widgets-style--modern-box .gzf-widget-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 2px;
	width: 4px;
	border-radius: 2px;
	background: var( --gzfc-sw-accent );
}
.gzfc-hs-widgets-style--modern-box .gzf-widget li {
	border-bottom: 1px solid var( --gzf-color-border );
	padding-bottom: 10px;
}
.gzfc-hs-widgets-style--modern-box .gzf-widget li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* =========================================================================
   2. Gaming Card Style — card layout, rounded corners, spacing, hover lift.
   ========================================================================= */
.gzfc-hs-widgets-style--card .gzf-widget {
	background: linear-gradient( 165deg, var( --gzf-color-surface ) 0%, var( --gzf-color-card-bg, var( --gzf-color-surface ) ) 100% );
	border: 1px solid var( --gzf-color-border );
	border-radius: calc( var( --gzfc-sw-radius ) + 4px );
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 6px 18px rgba( 0, 0, 0, .28 );
	transition: transform var( --gzf-transition, 200ms ease ), box-shadow var( --gzf-transition, 200ms ease ), border-color var( --gzf-transition, 200ms ease );
}
.gzfc-hs-widgets-style--card .gzf-widget:last-child {
	margin-bottom: 0;
}
@media ( hover: hover ) {
	.gzfc-hs-widgets-style--card .gzf-widget:hover {
		transform: translateY( -4px );
		border-color: var( --gzfc-sw-accent );
		box-shadow: 0 14px 30px rgba( 0, 0, 0, .38 );
	}
}
.gzfc-hs-widgets-style--card .gzf-widget-title {
	display: inline-block;
	font-size: .92rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var( --gzf-color-heading );
	border-bottom: 2px solid var( --gzfc-sw-accent );
	margin-bottom: 18px;
	padding-bottom: 10px;
}
.gzfc-hs-widgets-style--card .gzf-widget li {
	background: rgba( 255, 255, 255, .03 );
	border-radius: 8px;
	padding: 10px 12px;
	transition: background var( --gzf-transition, 200ms ease );
}
.gzfc-hs-widgets-style--card .gzf-widget li:hover {
	background: rgba( 255, 255, 255, .06 );
}

/* =========================================================================
   3. Neon Gaming Style — glowing neon border, highlighted heading.
   ========================================================================= */
.gzfc-hs-widgets-style--neon .gzf-widget {
	background: var( --gzf-color-bg );
	border: 1px solid var( --gzfc-sw-accent );
	border-radius: var( --gzfc-sw-radius );
	padding: 22px;
	margin-bottom: 22px;
	box-shadow:
		0 0 0 1px rgba( 0, 0, 0, .4 ) inset,
		0 0 16px -2px var( --gzfc-sw-accent );
	transition: box-shadow var( --gzf-transition, 200ms ease );
}
.gzfc-hs-widgets-style--neon .gzf-widget:last-child {
	margin-bottom: 0;
}
@media ( hover: hover ) {
	.gzfc-hs-widgets-style--neon .gzf-widget:hover {
		box-shadow:
			0 0 0 1px rgba( 0, 0, 0, .4 ) inset,
			0 0 26px 0 var( --gzfc-sw-accent );
	}
}
.gzfc-hs-widgets-style--neon .gzf-widget-title {
	font-size: .95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var( --gzfc-sw-accent );
	text-shadow: 0 0 10px var( --gzfc-sw-accent );
	border-bottom: 1px dashed rgba( 255, 255, 255, .15 );
	margin-bottom: 18px;
	padding-bottom: 12px;
}
.gzfc-hs-widgets-style--neon .gzf-widget li {
	border-bottom: 1px solid rgba( 255, 255, 255, .06 );
	padding-bottom: 10px;
}
.gzfc-hs-widgets-style--neon .gzf-widget li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.gzfc-hs-widgets-style--neon .gzf-widget .search-form .search-field {
	border-color: rgba( 255, 255, 255, .15 );
}
.gzfc-hs-widgets-style--neon .gzf-widget .search-form .search-submit {
	box-shadow: 0 0 12px -2px var( --gzfc-sw-accent );
}

/* -------------------------------------------------------------------
   Responsive — the sidebar itself already goes full-width and static on
   tablet/mobile (framework.css, max-width: 782px), this just tightens
   spacing/typography so the boxes stay comfortable at that width.
   ------------------------------------------------------------------- */
@media ( max-width: 782px ) {
	.gzfc-hs-widgets-style--modern-box .gzf-widget,
	.gzfc-hs-widgets-style--card .gzf-widget,
	.gzfc-hs-widgets-style--neon .gzf-widget {
		padding: 18px;
		margin-bottom: 16px;
	}
}

@media ( max-width: 480px ) {
	.gzfc-hs-widgets-style--modern-box .gzf-widget,
	.gzfc-hs-widgets-style--card .gzf-widget,
	.gzfc-hs-widgets-style--neon .gzf-widget {
		padding: 16px;
	}
	.gzfc-hs-widgets-style--modern-box .gzf-widget-title,
	.gzfc-hs-widgets-style--card .gzf-widget-title,
	.gzfc-hs-widgets-style--neon .gzf-widget-title {
		font-size: .88rem;
	}
}

/* Respect reduced-motion preference — disable hover lift/box-shadow
   transition animation, keep the static styling. */
@media ( prefers-reduced-motion: reduce ) {
	.gzfc-hs-widgets-style--card .gzf-widget,
	.gzfc-hs-widgets-style--neon .gzf-widget {
		transition: none;
	}
	.gzfc-hs-widgets-style--card .gzf-widget:hover {
		transform: none;
	}
}
