/* Site Core: shared components. Site colours/fonts come from sharegf.css / swingersex.css. */

/* Fonts: override Kadence variables so the self-hosted fonts win even if theme settings change. */
:root {
	--global-body-font-family: var(--sc-font-body);
	--global-heading-font-family: var(--sc-font-head);
}
body,
button,
input,
select,
textarea {
	font-family: var(--sc-font-body);
}
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
	font-family: var(--sc-font-head);
}

/* Buttons used by the overlays. */
.sc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75em 1.75em;
	border: 1px solid var(--sc-btn-bg);
	border-radius: var(--sc-btn-radius);
	background: var(--sc-btn-bg);
	color: var(--sc-btn-fg);
	font: 600 1rem/1.2 var(--sc-font-body);
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.sc-btn:hover,
.sc-btn:focus-visible {
	background: var(--sc-btn-bg-hover);
	border-color: var(--sc-btn-bg-hover);
	color: var(--sc-btn-fg);
}
.sc-btn--ghost {
	background: transparent;
	color: var(--sc-text);
	border-color: var(--sc-line);
}
.sc-btn--ghost:hover,
.sc-btn--ghost:focus-visible {
	background: transparent;
	color: var(--sc-text);
	border-color: var(--sc-text);
}
.sc-btn:focus-visible,
.sc-link-button:focus-visible {
	outline: 2px solid var(--sc-accent);
	outline-offset: 3px;
}

/* 18+ age gate. */
.sc-age-open,
.sc-age-open body {
	overflow: hidden;
}
.sc-age {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--sc-overlay);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.sc-age[hidden] {
	display: none;
}
.sc-age__box {
	width: 100%;
	max-width: 480px;
	padding: 48px 40px;
	background: var(--sc-surface);
	color: var(--sc-text);
	border-radius: var(--sc-card-radius);
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.sc-age__badge {
	margin: 0 0 12px;
	font: 600 0.875rem/1 var(--sc-font-body);
	letter-spacing: 0.2em;
	color: var(--sc-muted);
}
.sc-age h2.sc-age__title {
	margin: 0 0 16px;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--sc-text);
}
.sc-age__text {
	margin: 0 0 32px;
	color: var(--sc-muted);
}
.sc-age__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Law 25 cookie banner: both choices are the same size and weight. */
.sc-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99999;
	max-width: 960px;
	margin: 0 auto;
	padding: 24px;
	background: var(--sc-surface);
	color: var(--sc-text);
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-card-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.sc-consent[hidden] {
	display: none;
}
.sc-consent__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
}
.sc-consent__copy {
	flex: 1 1 420px;
}
.sc-consent h2.sc-consent__title {
	margin: 0 0 6px;
	font-size: 1.125rem;
}
.sc-consent__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--sc-muted);
}
.sc-consent__text a {
	color: var(--sc-text);
	text-decoration: underline;
}
.sc-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	flex: 0 1 320px;
}
.sc-btn--consent {
	width: 100%;
	min-width: 0;
}
@media (max-width: 560px) {
	.sc-consent {
		left: 8px;
		right: 8px;
		bottom: 8px;
		padding: 20px;
	}
	.sc-consent__actions {
		flex-basis: 100%;
	}
	.sc-age__box {
		padding: 36px 24px;
	}
}

/* Footer legal links and the "Cookie settings" button. */
.sc-footer-links {
	display: inline;
	margin-left: 0.5em;
}
.sc-link-button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* Menu: language switch and call-to-action item. */
.sc-menu-lang .sc-lang {
	opacity: 0.55;
}
.sc-menu-lang .sc-lang.is-current {
	opacity: 1;
	font-weight: 700;
}
.sc-menu-lang .sc-lang-sep {
	margin: 0 0.25em;
	opacity: 0.4;
}
/* Kadence colours menu links with high specificity, so the CTA needs !important on colour/padding. */
.header-navigation .menu li.menu-item.sc-menu-cta > a,
.mobile-navigation .menu li.menu-item.sc-menu-cta > a {
	background: var(--sc-btn-bg);
	color: var(--sc-btn-fg) !important;
	border-radius: var(--sc-btn-radius);
	padding: 0.6em 1.4em !important;
	margin-left: 0.5em;
	line-height: 1.2;
	text-decoration: none;
}
.header-navigation .menu li.menu-item.sc-menu-cta > a:hover,
.header-navigation .menu li.menu-item.sc-menu-cta > a:focus-visible,
.mobile-navigation .menu li.menu-item.sc-menu-cta > a:hover {
	background: var(--sc-btn-bg-hover);
	color: var(--sc-btn-fg) !important;
}
.mobile-navigation .menu li.menu-item.sc-menu-cta > a {
	display: inline-flex;
	margin: 0.75em 0 0;
}

@media (prefers-reduced-motion: reduce) {
	.sc-btn {
		transition: none;
	}
}

/* Embedded apps (games, quiz). */
iframe.sc-embed {
	display: block;
	width: 100%;
	min-height: 720px;
	border: 0;
	border-radius: var(--sc-card-radius);
}
