/*
Theme Name: Casino Skeleton
Theme URI: https://example.com/casino-skeleton
Author: Placeholder
Author URI: https://example.com
Description: A structural block theme scaffold for casino / iGaming brand sites. Ships one rich front page template and one long-form content template, plus header and footer parts. All copy, links and imagery are placeholders. Rebrand via theme.json.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casino-skeleton
Tags: full-site-editing, block-patterns, one-column, wide-blocks, custom-colors, custom-logo, custom-menu, editor-style, block-styles
*/

/* Block themes get almost everything from theme.json.
   Only genuinely structural CSS lives here. */

/* --- Sticky header --- */
.site-header-sticky {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(12px);
	background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
}

/* --- Shared utilities --- */
.lede {
	max-width: 56ch;
	margin-inline: auto;
	font-size: 1.05rem;
}

.is-style-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.6rem;
}

.is-style-card,
.tint-band .wp-block-group.is-style-card {
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--surface);
}

/* Card surface + lift, shared by every card-shaped component. */
.usp-card > .wp-block-group,
.offer-card > .wp-block-group,
.jackpot-tier > .wp-block-group,
.tile {
	height: 100%;
	background: var(--wp--preset--gradient--card);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--large);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.45);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.usp-card > .wp-block-group:hover,
.offer-card > .wp-block-group:hover,
.tile:hover {
	transform: translateY(-3px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 26px 64px rgba(0, 0, 0, 0.6);
}

.usp-row,
.offer-pair,
.jackpot-tiers {
	align-items: stretch;
}

/* --- Hero --- */
.hero-art img,
.feature-art img {
	width: 100%;
	box-shadow: 0 26px 64px rgba(0, 0, 0, 0.6);
}

.hero-art img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.feature-art img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Outline button: quieter secondary action. */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: none;
	border: 2px solid var(--wp--preset--color--hairline);
	color: var(--wp--preset--color--accent);
	box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--accent);
	background: none;
}

/* --- Deposit steps --- */
.step-n {
	width: 46px;
	height: 46px;
	margin: 0 auto var(--wp--preset--spacing--20);
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--wp--preset--gradient--feature-wash);
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

/* --- Jackpot tiers --- */
.jackpot-tier.is-featured > .wp-block-group {
	border: 2px solid transparent;
	background:
		linear-gradient(165deg, #3A2280, #241553) padding-box,
		linear-gradient(140deg, #FFD24A, #C026D3, #7C3AED) border-box;
	box-shadow: 0 26px 64px rgba(0, 0, 0, 0.6);
}

@media (min-width: 782px) {
	.jackpot-tier.is-featured {
		transform: scale(1.05);
		z-index: 2;
	}
}

.jackpot-amount {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--accent);
	text-shadow: 0 0 24px rgba(255, 210, 74, 0.45);
	/* Fixed-width digits: without this the number visibly jitters as it ticks. */
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.jackpot-tier.is-featured .jackpot-amount {
	font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

.jackpot-amount.is-ticking {
	animation: csk-tick 0.35s ease;
}

@keyframes csk-tick {
	50% { opacity: 0.72; }
}

/* --- Game tiles --- */
.tile {
	padding: 0;
	overflow: hidden;
}

.tile .wp-block-image {
	margin: 0;
}

.tile img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	display: block;
}

.tile p {
	margin: 0;
	padding-inline: 0.6rem;
}

.tile p:nth-of-type(1) { padding-top: 0.7rem; }
.tile p:nth-of-type(2) { padding-bottom: 0.8rem; }

/* --- USP icons --- */
.usp-icon img {
	background: rgba(124, 58, 237, 0.22);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 14px;
	padding: 10px;
	box-sizing: content-box;
}

/* --- Logo strips --- */
.logo-strip img {
	max-height: 30px;
	width: auto;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.logo-strip img:hover {
	opacity: 1;
}

/* --- FAQ --- */
.wp-block-details {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--medium);
	margin-bottom: 0.7rem;
	padding: 0;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem var(--wp--preset--spacing--30);
}

.wp-block-details summary::-webkit-details-marker { display: none; }

.wp-block-details summary::after {
	content: "+";
	font-size: 1.4em;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	transition: transform 0.2s ease;
	flex: none;
}

.wp-block-details[open] summary::after { transform: rotate(45deg); }

.wp-block-details > *:not(summary) {
	padding-inline: var(--wp--preset--spacing--30);
}

.wp-block-details > *:last-child { padding-bottom: var(--wp--preset--spacing--30); }

/* --- Tables --- */
.wp-block-table { overflow-x: auto; }

.wp-block-table table {
	border-collapse: collapse;
	min-width: 30rem;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--wp--preset--color--hairline);
	padding: var(--wp--preset--spacing--20);
	text-align: left;
}

.wp-block-table thead th {
	background: rgba(124, 58, 237, 0.22);
	font-family: var(--wp--preset--font-family--display);
}

/* --- Sticky CTA bar --- */
.cta-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	border-top: 1px solid var(--wp--preset--color--hairline);
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55);
	transition: transform 0.28s ease, opacity 0.28s ease;
}

.cta-bar.is-parked,
.cta-bar.is-dismissed {
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
}

.cta-bar__dismiss {
	position: absolute;
	top: 50%;
	right: var(--wp--preset--spacing--20);
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-bar__dismiss:hover {
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--accent);
}

/* The bar must not float over the canvas while being edited. */
.editor-styles-wrapper .cta-bar {
	position: relative;
	box-shadow: none;
}

@media (max-width: 600px) {
	.cta-bar__dismiss {
		top: 6px;
		right: 6px;
		transform: none;
		width: 26px;
		height: 26px;
		font-size: 16px;
	}
}

/* --- Quality floor --- */
:where(a:focus-visible),
:where(button:focus-visible),
:where(summary:focus-visible),
:where(.wp-block-button__link:focus-visible) {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Ambient glow, matched to the artwork --- */
body {
	background-image:
		radial-gradient(1100px 620px at 78% -8%, rgba(124, 58, 237, 0.30), transparent 62%),
		radial-gradient(900px 520px at 8% 22%, rgba(192, 38, 211, 0.16), transparent 60%);
	background-attachment: fixed;
	background-repeat: no-repeat;
}

/* Tinted bands fade in and out rather than banding hard against the base. */
.tint-band {
	background: linear-gradient(180deg,
		rgba(18, 11, 46, 0),
		rgba(18, 11, 46, 0.85) 12%,
		rgba(18, 11, 46, 0.85) 88%,
		rgba(18, 11, 46, 0)) !important;
}
