/* U9 Guide – dark navy theme styling (supplements theme.json). */

body { background: var(--wp--preset--color--base); }

/* ---- Header ---- */
.u9-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10,16,48,0.92);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.admin-bar .u9-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .u9-header { top: 46px; } }
.u9-header .wp-block-navigation a { color: #d7ddf2; }
.u9-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }

.u9-notice { background: #06091f; color: #aeb6d6; font-size: 0.8rem; }
.u9-notice a { color: var(--wp--preset--color--gold); }

/* Header logo */
.u9-logo { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.u9-logo img { width: 54px; height: 54px; object-fit: contain; display: block; }
@media (max-width: 860px) { .u9-logo img { width: 46px; height: 46px; } }

/* ---- Full-bleed banners (no side gaps) ---- */
.u9-main-col { padding-left: 0; padding-right: 0; }

/* ---- Uniform vertical rhythm between home/inner sections ---- */
.u9-main-col > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.u9-main-col > * + * { margin-top: var(--wp--preset--spacing--40) !important; }
.u9-hero-wrap, .u9-main-col > .u9-inner-banner, .u9-main-col .wp-block-image.u9-inner-banner {
	width: 100%; max-width: none; margin-left: 0; margin-right: 0;
}

/* ---- Hero slider (CSS-only auto-rotate) ---- */
.u9-hero { position: relative; overflow: hidden; border-radius: 0; }
.u9-hero-track { display: flex; width: 500%; animation: u9hero 28s infinite; }
.u9-hero-slide { width: 20%; display: block; flex: 0 0 20%; }
.u9-hero-slide img { width: 100%; height: auto; display: block; aspect-ratio: 1600 / 500; object-fit: cover; }
.u9-hero:hover .u9-hero-track { animation-play-state: paused; }
@keyframes u9hero {
	0%, 17%  { transform: translateX(0); }
	20%, 37% { transform: translateX(-20%); }
	40%, 57% { transform: translateX(-40%); }
	60%, 77% { transform: translateX(-60%); }
	80%, 100%{ transform: translateX(-80%); }
}
@media (prefers-reduced-motion: reduce) {
	.u9-hero-track { animation: none; }
}

/* ---- Inner-page banner (full-bleed) ---- */
.u9-inner-banner { margin-top: 0; margin-bottom: 0; width: 100%; max-width: none; }
.u9-inner-banner img { width: 100%; height: auto; display: block; aspect-ratio: 1600 / 400; object-fit: cover; border-radius: 0; }

/* ---- Sidebar shell layout ---- */
.u9-shell { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 0; }
.u9-side-col { flex: 0 0 240px; width: 240px; align-self: stretch; position: sticky; top: 86px; }
.u9-main-col { flex: 1 1 auto; min-width: 0; }
.u9-side {
	display: flex; flex-direction: column; gap: 4px;
	padding: 14px 12px;
	background: #0b1538;
	border-right: 1px solid var(--wp--preset--color--border);
	min-height: 100%;
}
.u9-side-item {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 15px; border-radius: 10px;
	color: #cfd6ef; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 0.95rem;
}
.u9-side-ic { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.u9-side-ic img { width: 22px; height: 22px; object-fit: contain; }
.u9-side-item:hover { background: #15205a; color: #fff; }
.u9-side-item.active { background: linear-gradient(90deg,#2f6fe0,#2a5fd0); color: #fff; box-shadow: 0 6px 16px rgba(47,111,224,0.3); }
/* ---- Mobile slide-in drawer menu ---- */
.u9-menu-toggle { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.u9-burger { display: none; }
.u9-drawer-col { display: none; }

@media (max-width: 860px) {
	.u9-side-col { display: none; }

	.u9-burger {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 42px; height: 42px; padding: 0 9px; border-radius: 10px; cursor: pointer;
		background: var(--wp--preset--color--base-2); border: 1px solid var(--wp--preset--color--border);
	}
	.u9-burger span { display: block; height: 2px; width: 100%; background: #e7ebfb; border-radius: 2px; }

	.u9-drawer-col { display: block; position: fixed; inset: 0; z-index: 200; visibility: hidden; }
	.u9-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; transition: opacity .25s ease; }
	.u9-drawer {
		position: absolute; top: 0; left: 0; height: 100%; width: 272px; max-width: 82vw;
		background: #0b1538; border-right: 1px solid var(--wp--preset--color--border);
		transform: translateX(-100%); transition: transform .28s ease; overflow-y: auto;
		box-shadow: 0 0 40px rgba(0,0,0,0.5); padding-bottom: 2rem;
	}
	.u9-drawer-close {
		display: flex; align-items: center; justify-content: center; margin: 10px 10px 4px auto;
		width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1.6rem; line-height: 1;
		color: #cfd6ef; background: #15205a;
	}
	.u9-drawer .u9-side { border-right: none; min-height: auto; }

	.u9-menu-toggle:checked ~ .u9-drawer-col { visibility: visible; }
	.u9-menu-toggle:checked ~ .u9-drawer-col .u9-drawer-overlay { opacity: 1; }
	.u9-menu-toggle:checked ~ .u9-drawer-col .u9-drawer { transform: translateX(0); }
	body:has(.u9-menu-toggle:checked) { overflow: hidden; }
}

/* ---- Buttons: colored variants ---- */
.wp-block-button.is-style-gold .wp-block-button__link {
	background: linear-gradient(180deg,#f3d27a 0%,#e4ad35 100%);
	color: #241a04;
	border: 1px solid #c9922a;
	box-shadow: 0 6px 16px rgba(228,173,53,0.25);
}
.wp-block-button.is-style-gold .wp-block-button__link:hover { filter: brightness(1.05); color:#241a04; }

.wp-block-button.is-style-green .wp-block-button__link { background: var(--wp--preset--color--green); color:#fff; }
.wp-block-button.is-style-green .wp-block-button__link:hover { background:#0f6b34; }

.wp-block-button.is-style-red .wp-block-button__link { background: var(--wp--preset--color--primary); color:#fff; }
.wp-block-button.is-style-red .wp-block-button__link:hover { background:#b20d15; }

.wp-block-button.is-style-outline-gold .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--gold);
	border: 2px solid var(--wp--preset--color--gold);
}
.wp-block-button.is-style-outline-gold .wp-block-button__link:hover { background: var(--wp--preset--color--gold); color:#241a04; }

.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent; color:#fff; border: 2px solid rgba(255,255,255,0.7);
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background:#fff; color: var(--wp--preset--color--base); }

/* ---- Surfaces ---- */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--40);
	box-shadow: var(--wp--preset--shadow--card);
	height: 100%;
}
.wp-block-group.is-style-content-box {
	background: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	padding: clamp(1.5rem, 4vw, 3rem);
	box-shadow: var(--wp--preset--shadow--card);
}
.wp-block-group.is-style-content-box ul { padding-left: 1.2rem; }
.wp-block-group.is-style-content-box li { margin-bottom: 0.5rem; }

/* ---- Trusted-website hero box ---- */
.u9-trust { text-align:center; }
.u9-trust h1 { color:#fff; }
.u9-trust .wp-block-buttons { justify-content:center; }

/* ---- Game category tabs (CSS-only) ---- */
.u9-games { margin-top: 1.5rem; }
.u9-tabin { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.u9-tabrow { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.4rem; }
.u9-tab {
	cursor: pointer; padding: 0.6rem 1.3rem; border-radius: 999px;
	background: var(--wp--preset--color--base-2); border: 1px solid var(--wp--preset--color--border);
	color: #cfd6ef; font-weight: 700; font-size: 0.95rem; user-select: none; transition: .15s;
}
.u9-tab:hover { border-color: var(--wp--preset--color--gold); color: #fff; }
.u9-panel { display: none; }
.u9-bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.u9-banner { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--wp--preset--color--border); box-shadow: var(--wp--preset--shadow--card); transition: transform .2s ease, box-shadow .2s ease; }
.u9-banner img { width: 100%; height: auto; display: block; }
.u9-banner:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--soft); }
/* active panel + active tab per category */
#u9tab-casino:checked  ~ .u9-panels .u9-panel[data-k="casino"],
#u9tab-slots:checked   ~ .u9-panels .u9-panel[data-k="slots"],
#u9tab-sports:checked  ~ .u9-panels .u9-panel[data-k="sports"],
#u9tab-lottery:checked ~ .u9-panels .u9-panel[data-k="lottery"] { display: block; }
#u9tab-casino:checked  ~ .u9-tabrow label[for="u9tab-casino"],
#u9tab-slots:checked   ~ .u9-tabrow label[for="u9tab-slots"],
#u9tab-sports:checked  ~ .u9-tabrow label[for="u9tab-sports"],
#u9tab-lottery:checked ~ .u9-tabrow label[for="u9tab-lottery"] {
	background: linear-gradient(180deg,#f3d27a 0%,#e4ad35 100%); color: #241a04; border-color: #c9922a;
}
.u9-tab:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }
@media (max-width: 680px) { .u9-bgrid { grid-template-columns: 1fr; } }

/* ---- Payment / play-safe chips ---- */
.u9-chips { display:flex; flex-wrap:wrap; gap:0.6rem; }
.u9-chip {
	display:inline-flex; align-items:center; gap:0.4rem;
	background: var(--wp--preset--color--base-3);
	border:1px solid var(--wp--preset--color--border);
	color:#dfe4f5; border-radius:10px; padding:0.55rem 1rem; font-size:0.9rem;
}
.u9-chip.age { border-color:#d4111a; }
.u9-chip .u9-21 { background:#d4111a; color:#fff; border-radius:50%; width:1.5rem;height:1.5rem; display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:0.72rem; }

/* ---- FAQ accordion (details) ---- */
.u9-faq .wp-block-details {
	background: var(--wp--preset--color--base-2);
	border:1px solid var(--wp--preset--color--border);
	border-radius:12px; padding:1rem 1.3rem; list-style:none;
}
.u9-faq .wp-block-details summary { font-weight:700; color:#eef1fb; cursor:pointer; list-style:none; position:relative; padding-right:2rem; }
.u9-faq .wp-block-details summary::-webkit-details-marker { display:none; }
.u9-faq .wp-block-details summary::after { content:"+"; position:absolute; right:0; top:-2px; color: var(--wp--preset--color--primary); font-size:1.5rem; line-height:1; font-weight:700; }
.u9-faq .wp-block-details[open] summary::after { content:"\2013"; }
.u9-faq .wp-block-details p { color: var(--wp--preset--color--contrast-2); margin-top:0.7rem; }

/* ---- Footer ---- */
.u9-footer { background:#06091f; border-top:1px solid var(--wp--preset--color--border); }
.u9-footer a { color:#c3cae6; text-decoration:none; }
.u9-footer a:hover { color: var(--wp--preset--color--gold); }
.u9-footer .u9-footnav a { color:#dfe4f5; font-weight:600; }

/* Download section — light card */
.u9-download { background:#f4f5f8; border:1px solid #e4e6ee; color:#16181d; }
.u9-download h2 { color:#16181d !important; }
.u9-download .u9-eyebrow { color:#157a36; }
.u9-dl-list { display:flex; flex-direction:column; gap:0.7rem; margin-top:0.4rem; }
.u9-dl-row {
	display:flex; align-items:center; gap:0.9rem;
	background:#fff; border:1px solid #e7e9f0; border-radius:12px;
	padding:0.85rem 1.1rem; text-decoration:none; color:#16181d;
	box-shadow:0 2px 8px rgba(20,22,29,0.04); transition:.15s;
}
.u9-dl-row:hover { border-color:#cfd3e2; transform:translateX(2px); }
.u9-dl-ic { font-size:1.5rem; line-height:1; width:2.4rem; height:2.4rem; display:inline-flex; align-items:center; justify-content:center; background:#f4f5f8; border-radius:10px; flex:0 0 auto; }
.u9-dl-ic img { width:1.5rem; height:1.5rem; object-fit:contain; }
.u9-dl-txt { display:flex; flex-direction:column; flex:1; }
.u9-dl-txt strong { color:#16181d; font-size:1rem; }
.u9-dl-txt em { color:#565c6e; font-style:normal; font-size:0.82rem; }
.u9-dl-arrow { color:#9aa0b2; }
.u9-dl-note { margin-top:0.9rem; font-size:0.82rem; color:#565c6e; }
.u9-download .u9-qr { background:#fff; border:1px solid #e7e9f0; border-radius:16px; padding:1rem; text-align:center; color:#16181d; box-shadow:0 2px 8px rgba(20,22,29,0.05); }
.u9-qr { background:#fff; border-radius:16px; padding:1.2rem; text-align:center; color:#16181d; }
.u9-qr img { border-radius:8px; max-width:100%; height:auto; }
/* Keep Android + iOS QR codes side by side, including on mobile */
.u9-qr-cols { gap:0.7rem; }
.u9-qr-cols.is-not-stacked-on-mobile > .wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 860px) {
	.u9-download .u9-qr { padding:0.8rem; }
	.u9-qr img { width:100% !important; height:auto !important; }
}

/* Eyebrow */
.u9-eyebrow { text-transform:uppercase; letter-spacing:0.14em; font-weight:700; font-size:0.8rem; color: var(--wp--preset--color--gold); }

/* Screen-reader-only text */
.u9-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Inline links in prose get an underline (not color alone) for accessibility */
.wp-block-group.is-style-content-box p a,
.wp-block-group.is-style-content-box li a,
.u9-footer p a { text-decoration: underline; }

/* "Player" pill on the light download card (accessible green) */
.u9-pill { display:inline-block; border:1.5px solid #157a36; color:#157a36; background:transparent; border-radius:999px; padding:0.35rem 1rem; font-size:0.8rem; font-weight:700; margin:0; }

a:focus-visible, button:focus-visible, .wp-block-button__link:focus-visible { outline:3px solid var(--wp--preset--color--gold); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ * { transition:none !important; } }
