/*
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: 3.6.1
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. */

/* Structural CSS only. Colour, type and spacing come from theme.json.

   Design measured from the reference stylesheet:
     page      #F8F9FA   light
     text      #333333
     header    #037E21   green bar, white content
     CTA       #EFBF01   gold, black text, #FFB300 on hover
     footer    #272728   the only dark region
     cards     #FFFFFF
     radius    8px · base font 14px Roboto · 1200/800 layout          */

/* --- Header ------------------------------------------------------------------
   One green block containing two rows: logo and auth on the first, navigation
   on the second. Measured from the reference: #037E21 fills the whole band with
   no divider between the rows. ---------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--accent);
}

.site-header,
.site-header a,
.site-header .wp-block-site-title a { color: #FFFFFF; }

.header-top { padding-block: 14px 6px; }

.site-header .wp-block-site-logo img {
	height: 34px;
	max-height: 34px;
	width: auto;
	display: block;
	object-fit: contain;
}

.header-auth { gap: 10px; }

.header-auth .wp-block-button__link {
	padding: 8px 20px;
	font-size: 14px;
	border-radius: 6px;
}

/* Sign-in is outlined white; register is the gold CTA. */
.site-header .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid #FFFFFF;
	color: #FFFFFF;
}

.site-header .is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* Second row: navigation, no divider — the band is continuous. */
.header-nav { padding-bottom: 10px; }

.main-nav .wp-block-navigation__container {
	gap: 0;
	flex-wrap: wrap;
}

.main-nav .wp-block-navigation-item__content {
	padding: 8px 18px 8px 0;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	text-decoration: none;
	color: #FFFFFF;
}

.main-nav .wp-block-navigation-item__content:hover { opacity: 0.8; }

/* --- Hero: banner-led ------------------------------------------------------
   No headline overlay: the banner already carries one. A second headline on
   top of it competes and reads as a mistake. --------------------------------- */

/* No gap between the header and the banner. Block themes add a blockGap margin
   between top-level blocks, which shows as a strip of page background. */
.wp-site-blocks > header + main { margin-block-start: 0; }
.hero-banner { margin-block-start: 0; }
.hero-banner .wp-block-image { margin: 0; }

.hero-banner img {
	width: 100%;
	height: auto;
	display: block;
	/* Cap the height on very wide screens so a 3.5:1 banner does not push the
	   rest of the page below the fold. */
	max-height: 460px;
	object-fit: cover;
	object-position: center;
}

.hero-under { gap: var(--wp--preset--spacing--30); }

/* No invert: it turns the placeholder payment cards into solid white blocks.
   Real payment marks are supplied as light-on-transparent already. */
.hero-payments img {
	max-height: 26px;
	width: auto;
	opacity: 0.9;
}

@media (max-width: 900px) {
	.header-top { padding-block: 10px 4px; }
	.main-nav .wp-block-navigation-item__content { font-size: 13px; padding-right: 12px; }
	.site-hero .hero-copy { text-align: center; margin-inline: auto; }
	.hero-payments { justify-content: center; }
}

/* --- Shared utilities --- */
.lede {
	max-width: 800px;
	margin-inline: auto;
	font-size: 16px;
}

.is-style-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.5rem;
}

/* Alternating bands are light grey, not dark. */
.tint-band {
	background: var(--wp--preset--color--feature);
}

/* --- Cards: white on a light page, flat, hairline border --- */
.usp-card > .wp-block-group,
.bonus-card > .wp-block-group,
.stat-card > .wp-block-group,
.jackpot-tier > .wp-block-group,
.offer-card > .wp-block-group,
.tile,
.product-tile {
	height: 100%;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 8px;
	box-shadow: none;
}

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

/* --- Product tiles: 5 across, per the source --- */
.product-grid { grid-template-columns: repeat(5, 1fr) !important; }

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

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

.product-tile:hover { border-color: var(--wp--preset--color--accent); }
.product-tile__body { padding: 14px; }
.product-tile__body h3 { margin: 0 0 2px; font-size: 15px; }
.product-tile__body h3 a { text-decoration: none; }
.product-tile__body p { margin: 0; }

/* --- Payment strip: 7 across, per the source --- */
.logo-strip {
	display: grid !important;
	grid-template-columns: repeat(7, 1fr);
	gap: var(--wp--preset--spacing--20);
	align-items: center;
}

.logo-strip img {
	max-height: 24px;
	width: auto;
	margin-inline: auto;
	opacity: 0.9;
}

/* --- Deposit steps --- */
.step-n {
	width: 44px;
	height: 44px;
	margin: 0 auto var(--wp--preset--spacing--20);
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--accent);
	color: #FFFFFF;
	font-weight: 700;
}

/* --- Jackpot tiers --- */
.jackpot-tier.is-featured > .wp-block-group {
	border: 2px solid var(--wp--preset--color--accent);
}

.jackpot-amount {
	margin: 0;
	font-weight: 700;
	font-size: clamp(20px, 3vw, 28px);
	line-height: 1.2;
	color: var(--wp--preset--color--accent);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.jackpot-amount.is-ticking { animation: csk-tick 0.35s ease; }
@keyframes csk-tick { 50% { opacity: 0.72; } }

.stat-value {
	font-weight: 700;
	font-size: 24px;
	color: var(--wp--preset--color--accent);
	margin: 0 0 0.3rem;
	font-variant-numeric: tabular-nums;
}

/* --- Game tiles --- */
.tile { overflow: hidden; }
.tile .wp-block-image { margin: 0; }
.tile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.tile p { margin: 0; padding-inline: 10px; }
.tile p:nth-of-type(1) { padding-top: 10px; }
.tile p:nth-of-type(2) { padding-bottom: 12px; }

/* --- USP icons --- */
.usp-icon img {
	background: #F0F0F0;
	border-radius: 8px;
	padding: 10px;
	box-sizing: content-box;
}

/* --- Hero / feature imagery --- */
.hero-art img, .feature-art img { width: 100%; border-radius: 8px; }
.hero-art img { aspect-ratio: 16 / 9; object-fit: cover; }
.feature-art img { aspect-ratio: 3 / 2; object-fit: cover; }

/* --- FAQ --- */
.wp-block-details {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 8px;
	margin-bottom: 8px;
	padding: 0;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 14px 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; width: 100%; }

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

.wp-block-table thead th { background: #F0F0F0; }

/* --- Footer: the only dark region on the page --- */
.wp-site-blocks > footer,
.site-footer {
	background: var(--wp--preset--color--dark);
	color: rgba(255, 255, 255, 0.87);
}

.wp-site-blocks > footer a,
.wp-site-blocks > footer .wp-block-heading,
.wp-site-blocks > footer p {
	color: rgba(255, 255, 255, 0.87);
}

.wp-site-blocks > footer a:hover { color: #FFFFFF; }
.badge-strip img { max-height: 26px; width: auto; }

/* --- Sticky CTA bar --- */
.cta-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: #FFFFFF;
	border-top: 1px solid var(--wp--preset--color--hairline);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
	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;
	cursor: pointer;
}

.editor-styles-wrapper .cta-bar { position: relative; box-shadow: none; }

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

@media (max-width: 820px) {
	.product-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.logo-strip { grid-template-columns: repeat(3, 1fr); }
	.header-bar { flex-wrap: wrap; }
	.header-tools .wp-block-search { display: none; }
}

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