/*
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.0.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(10px);
}

/* --- FAQ: core/details block --- */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

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

.wp-block-details summary::after {
	content: "+";
	font-size: 1.5em;
	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 summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

/* --- Tables: readable at small widths --- */
.wp-block-table {
	overflow-x: auto;
}

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

.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: var(--wp--preset--color--surface);
}

/* --- Eyebrow label utility (block style: "Eyebrow") --- */
.is-style-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

/* --- Card block style --- */
.is-style-card {
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
}

/* --- Payment / licence logo strip --- */
.logo-strip img {
	max-height: 34px;
	width: auto;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

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

/* --- Quality floor --- */
:where(a:focus-visible),
:where(button: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;
	}
}

/* --- Prevent layout shift on theme-supplied art --- */
.wp-block-image img[src*="/assets/tile-"] {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
	height: auto;
}

/* --- 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 28px rgba(0, 0, 0, 0.45);
	transform: translateY(0);
	transition: transform 0.28s ease, opacity 0.28s ease;
}

/* Parked while the footer's own offer band is on screen. */
.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: 32px;
	height: 32px;
	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: 20px;
	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);
}

/* Editor: 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 {
		padding-inline: var(--wp--preset--spacing--10);
	}
	.cta-bar__dismiss {
		top: 6px;
		right: 6px;
		transform: none;
		width: 26px;
		height: 26px;
		font-size: 16px;
	}
}

/* --- Jackpot tiers --- */
.jackpot-tiers {
	align-items: stretch;
}

.jackpot-tier > .wp-block-group {
	height: 100%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 22px;
	background: var(--wp--preset--color--feature);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.jackpot-tier.is-featured > .wp-block-group {
	border: 2px solid transparent;
	background:
		linear-gradient(#7B1FD4, #6C16C3) padding-box,
		linear-gradient(135deg, #7DE2FF, #B36BFF, #FF5EA8, #FFC85E) border-box;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

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

.jackpot-readout {
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.22);
}

.jackpot-amount {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(1.5rem, 3.2vw, 2.125rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	/* 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 {
	color: #FFE24A;
	font-size: clamp(1.875rem, 4vw, 2.75rem);
}

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

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

/* --- Hero: copy column clears the artwork --- */
.hero-cover .hero-copy {
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

/* The baked scrim covers the left column on wide screens. When the copy
   goes full width on narrow ones, top the overlay up instead. */
@media (max-width: 781px) {
	.hero-cover .wp-block-cover__background {
		opacity: 0.55;
	}
	.hero-cover .hero-copy {
		text-align: center;
	}
	.hero-cover .hero-copy .wp-block-buttons {
		justify-content: center;
	}
}
