/* Casino theme: page background, header, smooth hero transitions */

body.csbb-casino-theme {
	--csbb-bg: #0b0818;
	--csbb-bg-2: #120e24;
	--csbb-bg-3: #1a1434;
	--csbb-purple: #7e0ca1;
	--csbb-purple-deep: #4a0660;
	--csbb-gold: #f7c948;
	--csbb-text: #ece8f5;
	--csbb-text-soft: #b8b0cc;
	--csbb-line: rgba(255, 255, 255, 0.08);

	/* Переопределяем переменные GeneratePress — без белых блоков */
	--base: transparent;
	--base-2: transparent;
	--base-3: transparent;
	--contrast: #ece8f5;
	--contrast-2: #b8b0cc;
	--contrast-3: #8a819c;

	background-color: var(--csbb-bg) !important;
	background-attachment: fixed;
	background-image:
		radial-gradient(900px 500px at 10% -5%, rgba(126, 12, 161, 0.35), transparent 60%),
		radial-gradient(700px 420px at 95% 0%, rgba(247, 201, 72, 0.12), transparent 55%),
		radial-gradient(600px 400px at 50% 100%, rgba(30, 115, 190, 0.14), transparent 60%),
		linear-gradient(180deg, #0f0a1f 0%, var(--csbb-bg) 38%, #090612 100%) !important;
	color: var(--csbb-text) !important;
}

body.csbb-casino-theme a {
	color: #8ec8ff;
}

body.csbb-casino-theme a:hover,
body.csbb-casino-theme a:focus {
	color: var(--csbb-gold);
}

/* Header */
body.csbb-casino-theme .site-header {
	position: relative;
	z-index: 4;
	background:
		linear-gradient(180deg, rgba(74, 6, 96, 0.96) 0%, rgba(46, 8, 72, 0.92) 100%) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(10px);
}

body.csbb-casino-theme .site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -56px;
	height: 56px;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(46, 8, 72, 0.95) 0%,
		rgba(46, 8, 72, 0.45) 45%,
		transparent 100%
	);
}

body.csbb-casino-theme .inside-header {
	padding-top: 14px;
	padding-bottom: 14px;
}

body.csbb-casino-theme .site-logo .header-image,
body.csbb-casino-theme .site-logo .custom-logo {
	max-height: 72px;
	width: auto;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

body.csbb-casino-theme .main-navigation .main-nav ul li a,
body.csbb-casino-theme .menu-toggle {
	color: var(--csbb-text) !important;
}

body.csbb-casino-theme .main-navigation .main-nav ul li[class*="current-menu-"] > a,
body.csbb-casino-theme .main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a {
	color: var(--csbb-gold) !important;
}

/* Hero: smooth blend with header and page */
body.csbb-casino-theme.csbb-hero-active .featured-image.page-header-image.csbb-hero {
	margin-top: -8px;
	border-radius: 0 0 32px 32px;
	box-shadow:
		0 24px 48px rgba(0, 0, 0, 0.35),
		inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.csbb-casino-theme.csbb-hero-active .featured-image.page-header-image.csbb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(46, 8, 72, 0.72) 0%, rgba(46, 8, 72, 0.18) 22%, transparent 48%),
		linear-gradient(0deg, var(--csbb-bg) 0%, rgba(11, 8, 24, 0.88) 18%, transparent 52%),
		radial-gradient(ellipse at center, transparent 35%, rgba(11, 8, 24, 0.35) 100%);
}

body.csbb-casino-theme.csbb-hero-active .featured-image.page-header-image.csbb-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 96px;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(11, 8, 24, 0.55) 42%,
		var(--csbb-bg) 100%
	);
}

body.csbb-casino-theme.csbb-hero-active .csbb-hero__overlay {
	padding-top: 64px;
	padding-bottom: 72px;
}

/* Content area flows from hero */
body.csbb-casino-theme.csbb-hero-active .site-content {
	position: relative;
	z-index: 2;
	margin-top: -40px;
}

/* Контент — тот же фон, что и у страницы (прозрачные обёртки GP) */
body.csbb-casino-theme .site,
body.csbb-casino-theme #page,
body.csbb-casino-theme .site-content,
body.csbb-casino-theme #content,
body.csbb-casino-theme .content-area,
body.csbb-casino-theme #primary,
body.csbb-casino-theme .site-main,
body.csbb-casino-theme article,
body.csbb-casino-theme .inside-article,
body.csbb-casino-theme .inside-page-header,
body.csbb-casino-theme .one-container .container,
body.csbb-casino-theme .separate-containers .inside-article,
body.csbb-casino-theme .separate-containers .page-header,
body.csbb-casino-theme .separate-containers .comments-area,
body.csbb-casino-theme .separate-containers .paging-navigation,
body.csbb-casino-theme .widget-area,
body.csbb-casino-theme .inside-right-sidebar,
body.csbb-casino-theme .inside-left-sidebar,
body.csbb-casino-theme .widget,
body.csbb-casino-theme .site-info,
body.csbb-casino-theme .footer-widgets,
body.csbb-casino-theme .footer-widgets-container,
body.csbb-casino-theme .main-navigation,
body.csbb-casino-theme .main-navigation ul ul {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none;
}

body.csbb-casino-theme.csbb-hero-active .inside-article {
	padding-top: 8px;
}

body.csbb-casino-theme .entry-content {
	color: var(--csbb-text-soft);
}

body.csbb-casino-theme .entry-title,
body.csbb-casino-theme .entry-title a,
body.csbb-casino-theme h1,
body.csbb-casino-theme h2,
body.csbb-casino-theme h3 {
	color: var(--csbb-text);
}

/* Footer */
body.csbb-casino-theme .site-footer {
	margin-top: 24px;
	border-top: 1px solid var(--csbb-line);
	background: transparent !important;
}

body.csbb-casino-theme .site-info {
	color: var(--csbb-text-soft);
}

body.csbb-casino-theme .copyright-bar a {
	color: #8ec8ff;
}

/* Pages without hero */
body.csbb-casino-theme:not(.csbb-hero-active) .site-content {
	padding-top: 8px;
}

body.csbb-casino-theme:not(.csbb-hero-active) .featured-image.page-header-image {
	position: relative;
	border-radius: 0 0 28px 28px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

body.csbb-casino-theme:not(.csbb-hero-active) .featured-image.page-header-image::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 72px;
	background: linear-gradient(180deg, transparent, var(--csbb-bg));
	pointer-events: none;
}

@media (max-width: 768px) {
	body.csbb-casino-theme .site-logo .header-image,
	body.csbb-casino-theme .site-logo .custom-logo {
		max-height: 52px;
	}

	body.csbb-casino-theme.csbb-hero-active .featured-image.page-header-image.csbb-hero {
		border-radius: 0 0 22px 22px;
	}

	body.csbb-casino-theme.csbb-hero-active .site-content {
		margin-top: -28px;
	}

	body.csbb-casino-theme.csbb-hero-active .csbb-hero__overlay {
		padding-top: 48px;
		padding-bottom: 56px;
	}
}
