/* Sticky Casino CTA – Frontend styles */

:root {
	--scc-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Bar shell ─────────────────────────────────────────────── */
#scc-bar {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	background-color: var(--scc-bg, #1b1b1b);
	color: var(--scc-text, #ffffff);
	z-index: var(--scc-z, 9999);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	transition: transform var(--scc-transition), opacity var(--scc-transition);
}

/* Position variants */
#scc-bar.scc-bar--bottom {
	bottom: 0;
	top: auto;
	transform: translateY(100%);
	box-shadow: 0 -3px 12px rgba(0,0,0,.35);
}

#scc-bar.scc-bar--top {
	top: 0;
	bottom: auto;
	transform: translateY(-100%);
	box-shadow: 0 3px 12px rgba(0,0,0,.35);
}

/* Visible state (JS adds .scc-bar--visible) */
#scc-bar.scc-bar--visible {
	transform: translateY(0);
	opacity: 1;
}

/* Hidden initial state */
#scc-bar.scc-bar--hidden {
	opacity: 0;
	pointer-events: none;
}

/* ── Main row ──────────────────────────────────────────────── */
.scc-main-row {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 32px;
	padding: 10px 40px;
	min-height: 64px;
	max-width: 960px;
	margin: 0 auto;
}

/* ── Logo area ─────────────────────────────────────────────── */
.scc-logo-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 0 0 auto;
	min-width: 0;
}

.scc-logo {
	display: block;
	object-fit: contain;
	object-position: center;
	max-width: 150px;
}

.scc-casino-name {
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

/* Stars */
.scc-stars {
	display: flex;
	align-items: center;
	gap: 3px;
	color: #f5c518;
}

.scc-star {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex-shrink: 0;
}

.scc-star--empty {
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
}

.scc-rating-num {
	font-size: 12px;
	font-weight: 600;
	color: var(--scc-text, #fff);
	margin-left: 2px;
}

/* ── CTA area ──────────────────────────────────────────────── */
.scc-cta-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.scc-cta-btn {
	display: inline-block;
	background-color: var(--scc-cta-bg, #006000);
	color: var(--scc-cta-text, #ffffff) !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 700;
	padding: 10px 24px;
	border-radius: 6px;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	letter-spacing: 0.02em;
	border: none;
}

.scc-cta-btn:hover,
.scc-cta-btn:focus {
	filter: brightness(1.1);
	transform: scale(1.04);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
	outline: none;
}

/* ── Compliance strip ──────────────────────────────────────── */
.scc-compliance-strip {
	text-align: center;
	padding: 6px 40px;
	background-color: var(--scc-footer-bg, #1b1b1b);
	font-size: 11px;
	color: var(--scc-footer-text, #b8b8b8);
	line-height: 1.6;
}

.scc-compliance-link {
	color: var(--scc-footer-link, #b8b8b8) !important;
	text-decoration: none;
}

a.scc-compliance-link:hover {
	text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
	.scc-main-row {
		padding: 8px 12px;
		gap: 18px;
	}

	.scc-logo {
		max-width: 90px;
	}

	.scc-cta-btn {
		font-size: 18px;
		padding: 12px 22px;
	}


	.scc-compliance-strip {
		font-size: 10px;
		padding: 5px 12px;
	}
}

/* ── JNews back-to-top: lift above bar ─────────────────────── */
body.scc-pos-bottom.scc-bar-active .jscroll-to-top_link,
body.scc-pos-bottom.scc-bar-active .jnews_scroll_to_top,
body.scc-pos-bottom.scc-bar-active #jnews_scroll_up,
body.scc-pos-bottom.scc-bar-active .jeg_back_to_top,
body.scc-pos-bottom.scc-bar-active #jeg_back_to_top {
	bottom: calc(var(--scc-bar-height, 0px) + 8px) !important;
	transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Body padding so content isn't hidden behind bar */
body.scc-pos-bottom {
	padding-bottom: 0; /* JS sets this dynamically */
}

body.scc-pos-top {
	padding-top: 0;
}
