/**
 * Gaming dark-blue theme overrides
 * Accent: electric cyan #00b4ff | Secondary: violet #7c3aed
 */
:root,
[data-theme="spnc_dark"] {
	--gaming-bg-deep: #0a0f1e;
	--gaming-bg-base: #0f1629;
	--gaming-bg-card: #131c2e;
	--gaming-bg-elevated: #1a2744;
	--gaming-border: rgba(0, 180, 255, 0.18);
	--gaming-accent: #00b4ff;
	--gaming-accent-hover: #33c3ff;
	--gaming-accent-secondary: #7c3aed;
	--gaming-text: #e2e8f0;
	--gaming-text-muted: #94a3b8;
}

[data-theme="spnc_dark"] #wrapper {
	background: linear-gradient(165deg, var(--gaming-bg-deep) 0%, var(--gaming-bg-base) 45%, #0d1528 100%);
}

[data-theme="spnc_dark"] body {
	background-color: var(--gaming-bg-deep);
}

[data-theme="spnc_dark"] .header-1 .spnc-custom .spnc-navbar .spnc-container,
[data-theme="spnc_dark"] .header-2 .spnc-custom .spnc-navbar,
[data-theme="spnc_dark"] .header-3 .spnc-custom .spnc-navbar,
[data-theme="spnc_dark"] .page-title-section {
	background: linear-gradient(135deg, var(--gaming-bg-elevated) 0%, var(--gaming-bg-card) 100%);
	box-shadow: 0 4px 24px rgba(0, 180, 255, 0.08);
	border-bottom: 1px solid var(--gaming-border);
}

[data-theme="spnc_dark"] .spnc-blog-1 .spnc-blog-wrapper .spnc-post,
[data-theme="spnc_dark"] .spnc-blog-2 .spnc-blog-wrapper .spnc-post,
[data-theme="spnc_dark"] .spnc-category-page .spnc-grid-catpost .spnc-post-wrapper,
[data-theme="spnc_dark"] .spnc-blog-page .spnc-post-wrapper,
[data-theme="spnc_dark"] .spnc-single-post .spnc-blog-wrapper .spnc-post {
	border: 1px solid var(--gaming-border);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(0, 180, 255, 0.06);
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-theme="spnc_dark"] .spnc-blog-1 .spnc-blog-wrapper .spnc-post:hover,
[data-theme="spnc_dark"] .spnc-blog-2 .spnc-blog-wrapper .spnc-post:hover,
[data-theme="spnc_dark"] .spnc-category-page .spnc-grid-catpost .spnc-post-wrapper:hover {
	border-color: rgba(0, 180, 255, 0.35);
	box-shadow: 0 8px 32px rgba(0, 180, 255, 0.12), inset 0 1px 0 rgba(0, 180, 255, 0.1);
}

[data-theme="spnc_dark"] button,
[data-theme="spnc_dark"] input[type="button"],
[data-theme="spnc_dark"] input[type="submit"],
[data-theme="spnc_dark"] .btn-default {
	box-shadow: 0 0 14px rgba(0, 180, 255, 0.25);
}

[data-theme="spnc_dark"] button:hover,
[data-theme="spnc_dark"] input[type="submit"]:hover,
[data-theme="spnc_dark"] .btn-default:hover {
	box-shadow: 0 0 22px rgba(0, 180, 255, 0.45);
}

/* Navigation: compact white links, no active background */
[data-theme="spnc_dark"] .spnc-custom .spnc-nav > li > a,
[data-theme="spnc_dark"] .spnc-custom .spnc-nav li > a,
[data-theme="spnc_dark"] .spnc-custom .spnc-nav li > a.search-icon,
[data-theme="spnc_dark"] .header-cart .cart-icon {
	color: #ffffff !important;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 8px 12px;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0;
}

body .spnc-custom .spnc-nav > .active > a,
body .spnc-custom .spnc-nav > .active > a:hover,
body .spnc-custom .spnc-nav > .active > a:focus,
body .spnc-custom .spnc-nav > li.parent-menu.active > a,
body .spnc-custom .spnc-nav > li.parent-menu.active > a:hover,
body .spnc-custom .spnc-nav > li.parent-menu.active.open > a,
[data-theme="spnc_dark"] body .spnc-custom .spnc-nav > .active > a,
[data-theme="spnc_dark"] body .spnc-custom .spnc-nav > .active > a:hover,
[data-theme="spnc_dark"] body .spnc-custom .spnc-nav > .active > a:focus,
[data-theme="spnc_dark"] .spnc-custom .spnc-nav.nav > li.active > a,
[data-theme="spnc_dark"] body.newscrunch .spnc-custom .spnc-nav .open.active > a {
	color: #ffffff !important;
	background: transparent !important;
	box-shadow: none !important;
}

[data-theme="spnc_dark"] .spnc-custom .spnc-nav > li > a:hover,
[data-theme="spnc_dark"] .spnc-custom .spnc-nav > li > a:focus,
[data-theme="spnc_dark"] .spnc-custom .spnc-nav .open > a,
[data-theme="spnc_dark"] .spnc-custom .spnc-nav .open > a:hover,
[data-theme="spnc_dark"] .spnc-custom .spnc-nav .open > a:focus {
	color: rgba(255, 255, 255, 0.72) !important;
	background: transparent !important;
}

@media (max-width: 1100px) {
	[data-theme="spnc_dark"] body.newscrunch #wrapper .header-sidebar .spnc-custom .spnc-collapse .spnc-nav li > a,
	[data-theme="spnc_dark"] .spnc-custom .spnc-nav.nav > li.active > a,
	[data-theme="spnc_dark"] body.newscrunch .spnc-custom .spnc-nav .open.active > a {
		color: #ffffff !important;
		background: transparent !important;
	}
}

[data-theme="spnc_dark"] .scroll-up a {
	background: linear-gradient(135deg, var(--gaming-accent) 0%, var(--gaming-accent-secondary) 100%);
	box-shadow: 0 0 16px rgba(0, 180, 255, 0.35);
}

[data-theme="spnc_dark"] .site-footer {
	background: linear-gradient(180deg, var(--gaming-bg-card) 0%, var(--gaming-bg-deep) 100%);
	border-top: 1px solid var(--gaming-border);
}

[data-theme="spnc_dark"] .spnc_sidebar_panel {
	background: linear-gradient(180deg, #0d1b2e 0%, var(--gaming-bg-deep) 100%);
	border-right: 1px solid var(--gaming-border);
}

[data-theme="spnc_dark"] .spnc-highlights-1 .spnc-container .spnc-row,
[data-theme="spnc_dark"] .spnc-page-section-space.spnc-video .spnc-container .spnc-video-row:not(.video-img) {
	background: var(--gaming-bg-card);
	border-top: 1px solid var(--gaming-border);
	border-bottom: 1px solid var(--gaming-border);
}

[data-theme="spnc_dark"] .owl-carousel .owl-dots span.active,
[data-theme="spnc_dark"] .owl-carousel .owl-dots span:hover {
	background-color: var(--gaming-accent) !important;
	box-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
}

[data-theme="spnc_dark"] a:hover,
[data-theme="spnc_dark"] a:focus {
	color: var(--gaming-accent-hover);
}

[data-theme="spnc_dark"] .spnc-sidebar .widget_categories .wp-block-categories-list .cat-item:before,
[data-theme="spnc_dark"] .spnc-sidebar .spnc_widget_recent_entries .wp-block-latest-posts__list li:before,
[data-theme="spnc_dark"] .spnc-sidebar .widget_categories .wp-block-categories-list .cat-item a:hover,
[data-theme="spnc_dark"] .spnc-sidebar .spnc_widget_recent_entries .wp-block-latest-posts__list li a:hover {
	color: var(--gaming-accent);
}

[data-theme="spnc_dark"] .pagination .current,
[data-theme="spnc_dark"] .pagination a:hover,
[data-theme="spnc_dark"] .pagination a:focus {
	color: var(--gaming-accent);
	border-color: var(--gaming-accent);
	box-shadow: 0 0 10px rgba(0, 180, 255, 0.2);
}

/* Responsive card images */
.spnc-post,
.spnc-post-wrapper,
article.spnc-post {
	max-width: 100%;
	overflow: hidden;
}

.spnc-post-thumbnail,
.spnc-post-overlay,
.spnc-post-img,
figure.spnc-post-thumbnail {
	display: block;
	max-width: 100%;
	overflow: hidden;
}

.spnc-post-thumbnail img,
.spnc-post-overlay img,
.spnc-post-img img,
.spnc-category-page .spnc-grid-catpost .spnc-post-thumbnail img,
.spnc-blog-page .spnc-post-thumbnail img,
.spnc-blog-1 .spnc-blog-wrapper .spnc-post .spnc-post-thumbnail img,
.spnc-blog-2 .spnc-blog-wrapper .spnc-post .spnc-post-thumbnail img,
.spnc-related-posts .spnc-post-thumbnail img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

.spnc-blog-wrapper-1 .spnc-post .spnc-post-thumbnail,
.widget_newscrunch_grid_slider_two_column .spnc-filter .spnc-post .spnc-post-thumbnail,
.widget_spncp_filter_two_column .spnc-filter .spnc-post .spnc-post-thumbnail,
.widget_newscrunch_list_view_slider .spnc-blog-wrapper .spnc-post .spnc-post-thumbnail {
	min-width: 0 !important;
	max-width: 100% !important;
}

.spnc-category-page .spnc-grid-catpost .spnc-post-thumbnail,
.spnc-blog-1 .spnc-blog-wrapper-2 .spnc-post .spnc-post-thumbnail,
.spnc-post-grid-slider-three-column .spnc-post-thumbnail {
	width: 100%;
}

@media (max-width: 1024px) {
	.widget_newscrunch_list_view_slider .spnc-blog-wrapper .spnc-post .spnc-post-thumbnail {
		width: 100% !important;
		float: none !important;
		height: auto !important;
		aspect-ratio: 16 / 9;
	}

	.spnc-blog-wrapper-1 .spnc-post-wrapper .spnc-post {
		flex-direction: column !important;
	}

	.spnc-blog-wrapper-1 .spnc-post-wrapper .spnc-post .spnc-post-overlay,
	.spnc-blog-wrapper-1 .spnc-post-wrapper .spnc-post .spnc-post-content {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
}

@media (max-width: 768px) {
	.widget_newscrunch_grid_slider_two_column .spnc-filter .spnc-post .spnc-post-thumbnail,
	.widget_spncp_filter_two_column .spnc-filter .spnc-post .spnc-post-thumbnail {
		min-width: 0 !important;
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 16 / 9;
	}

	.spnc-category-page .spnc-grid-catpost .spnc-post-thumbnail {
		height: auto !important;
		aspect-ratio: 16 / 9;
	}
}

/* Single post: breadcrumbs (small nav) + H1 (main title) */
.spnc-single-post .spnc-single-inline-breadcrumbs {
	margin: 0 0 0.5rem;
	padding: 0;
}

.spnc-single-post .spnc-single-inline-breadcrumbs .breadcrumb-trail.breadcrumbs {
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	line-height: 1.3 !important;
}

.spnc-single-post .spnc-single-inline-breadcrumbs .breadcrumb.trail-items,
.spnc-single-post .spnc-single-inline-breadcrumbs .trail-items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.6875rem !important;
	line-height: 1.3 !important;
	font-weight: 400 !important;
	font-family: inherit;
	color: #64748b !important;
	text-transform: none;
	letter-spacing: 0.02em;
}

.spnc-single-post .spnc-single-inline-breadcrumbs .breadcrumb-item,
.spnc-single-post .spnc-single-inline-breadcrumbs .trail-items li {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.6875rem !important;
	line-height: 1.3 !important;
	font-weight: 400 !important;
	font-family: inherit !important;
	list-style: none !important;
}

.spnc-single-post .spnc-single-inline-breadcrumbs .breadcrumb-item + .breadcrumb-item::before,
.spnc-single-post .spnc-single-inline-breadcrumbs .trail-items li::after {
	font-size: 0.625rem !important;
	font-family: inherit !important;
	font-weight: 400 !important;
	padding: 0 0.35rem !important;
	margin: 0 !important;
	color: #475569 !important;
	content: "/" !important;
}

.spnc-single-post .spnc-single-inline-breadcrumbs .trail-items li:last-child::after {
	content: none !important;
}

.spnc-single-post .spnc-single-inline-breadcrumbs a,
.spnc-single-post .spnc-single-inline-breadcrumbs .breadcrumb-item a {
	font-size: inherit !important;
	font-weight: 400 !important;
	color: #94a3b8 !important;
	text-decoration: none;
}

.spnc-single-post .spnc-single-inline-breadcrumbs a:hover {
	color: #ffffff !important;
}

/* H1 — главный заголовок, явно крупнее крошек */
.spnc-single-post .spnc-blog-wrapper .entry-header .spnc-entry-title,
.spnc-single-post .spnc-post-content .entry-header h1.spnc-entry-title {
	margin: 0 0 1rem;
	padding: 0;
	color: #ffffff !important;
	font-size: clamp(1.625rem, 2.5vw + 1rem, 2.375rem) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.02em;
}

.spnc-single-post .spnc-post-overlay-below-title {
	margin-bottom: 1.25rem;
	overflow: hidden;
	border-radius: 4px;
}

.spnc-single-post .spnc-entry-meta-below-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.875rem;
	color: var(--gaming-text-muted, #94a3b8);
}

.spnc-single-post .spnc-entry-meta-below-title a {
	color: #ffffff;
}

.spnc-single-post .spnc-entry-meta-below-title .spnc-cat-links a {
	color: var(--gaming-accent, #00b4ff);
}

/* Global typography scale */
html {
	font-size: 15px;
}

[data-theme="spnc_dark"] body {
	font-size: 0.9375rem;
	line-height: 1.65;
}

[data-theme="spnc_dark"] h1:not(.spnc-entry-title) { font-size: 1.75rem; }
[data-theme="spnc_dark"] h2 { font-size: 1.375rem; }
[data-theme="spnc_dark"] h3 { font-size: 1.125rem; }
[data-theme="spnc_dark"] h4 { font-size: 1rem; }
[data-theme="spnc_dark"] h5,
[data-theme="spnc_dark"] h6 { font-size: 0.9375rem; }

[data-theme="spnc_dark"] p,
[data-theme="spnc_dark"] .spnc-entry-content {
	font-size: 0.9375rem;
	line-height: 1.7;
}

[data-theme="spnc_dark"] .spnc-entry-title,
[data-theme="spnc_dark"] .spnc-entry-title a,
[data-theme="spnc_dark"] h4.spnc-entry-title a {
	font-size: 1.0625rem;
	line-height: 1.45;
}

[data-theme="spnc_dark"] .spnc-category-page .spnc-grid-catpost .spnc-entry-title a {
	font-size: 1.0625rem;
}

[data-theme="spnc_dark"] .widget-title,
[data-theme="spnc_dark"] .spnc-widget-title {
	font-size: 1rem !important;
	letter-spacing: 0.02em;
}

/* Author box */
[data-theme="spnc_dark"] .spnc-author-box {
	padding: 1.25rem;
}

[data-theme="spnc_dark"] .spnc-author-box .spnc-author figure,
[data-theme="spnc_dark"] .spnc-author-box .spnc-author img {
	width: 72px;
	height: 72px;
	max-width: 72px;
	border-radius: 50%;
}

[data-theme="spnc_dark"] .spnc-author-box .spnc-author a {
	font-size: 1rem;
	font-weight: 600;
}

[data-theme="spnc_dark"] .spnc-author-box .spnc-author-desc {
	font-size: 0.875rem;
	line-height: 1.6;
	margin-top: 0.5rem;
}

[data-theme="spnc_dark"] .spnc-author-box .spnc-author-posts-link {
	font-size: 0.8125rem;
}

/* Highlight ticker - compact */
[data-theme="spnc_dark"] .spnc-highlights-2.spnc-highlights-1 .spnc-container {
	margin: 0.35rem auto 0.75rem;
}

[data-theme="spnc_dark"] .spnc-highlights-2.spnc-highlights-1 .spnc-container .spnc-row {
	padding: 0.5rem 0.625rem;
}

[data-theme="spnc_dark"] .spnc-highlights-2 .spnc-highlights-title {
	padding: 0.5rem 0.75rem;
}

[data-theme="spnc_dark"] .spnc-highlights-2 .spnc-highlights-title h3 {
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	line-height: 1.2;
}

[data-theme="spnc_dark"] .spnc-highlights-2 .spnc-marquee-wrapper .spnc-post-thumbnail {
	width: 36px;
	height: 36px;
	min-width: 36px;
}

[data-theme="spnc_dark"] .spnc-highlights-2 .spnc-marquee-wrapper .spnc-post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

[data-theme="spnc_dark"] .spnc-highlights-2.spnc-highlights-1 .spnc-post {
	gap: 0.625rem;
	max-width: 280px;
	margin-right: 0.875rem;
}

[data-theme="spnc_dark"] .spnc-highlights-2.spnc-highlights-1 .spnc-marquee-wrapper .spnc-entry-title,
[data-theme="spnc_dark"] .spnc-highlights-2.spnc-highlights-1 .spnc-marquee-wrapper .spnc-entry-title a {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
}

/* Gaming sidebar widget */
.gaming-latest-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gaming-latest-posts__item {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gaming-latest-posts__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.gaming-latest-posts__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 4px;
}

.gaming-latest-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gaming-latest-posts__body {
	flex: 1;
	min-width: 0;
}

.gaming-latest-posts__title {
	display: block;
	font-size: 0.875rem;
	line-height: 1.4;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	margin-bottom: 0.25rem;
}

.gaming-latest-posts__title:hover {
	color: var(--gaming-accent, #00b4ff);
}

.gaming-latest-posts__date {
	display: block;
	font-size: 0.75rem;
	color: var(--gaming-text-muted, #94a3b8);
}

[data-theme="spnc_dark"] .spnc-dark-layout {
	display: none !important;
}
