/*
Theme Name:   Landing Child
Theme URI:    http://localhost/
Description:  Dark casino landing child theme for Blocksy (self-contained, free features only).
Author:       landing-builder
Template:     blocksy
Version:      1.0.0
Text Domain:  landing-child
*/

/* ---------- Tokens ---------- */
:root:root {
	--lp-bg: #0b0b12;
	--lp-bg-2: #12121c;
	--lp-card: #161622;
	--lp-card-2: #1c1c2b;
	--lp-border: rgba(247, 208, 92, 0.22);
	--lp-text: #e7e9f0;
	--lp-muted: #a9aec0;
	--lp-gold-1: #fff3b0;
	--lp-gold-2: #f7d05c;
	--lp-gold-3: #d69a22;
	--lp-gold-4: #9c6727;
	--lp-green: #00c45b;
	--lp-green-2: #00ff77;
	--lp-radius: 16px;
	--lp-gold-grad: linear-gradient(180deg, var(--lp-gold-1) 0%, var(--lp-gold-2) 40%, var(--lp-gold-3) 75%, var(--lp-gold-4) 100%);
	--lp-head-grad: linear-gradient(90deg, var(--lp-gold-2) 0%, var(--lp-gold-1) 35%, var(--lp-green-2) 70%, var(--lp-green) 100%);

	/* Re-map Blocksy palette so header/footer/links inherit the dark look */
	--theme-palette-color-1: var(--lp-gold-2);
	--theme-palette-color-2: var(--lp-green);
	--theme-palette-color-3: var(--lp-text);
	--theme-palette-color-4: #ffffff;
	--theme-palette-color-5: #2a2a3a;
	--theme-palette-color-6: var(--lp-bg-2);
	--theme-palette-color-7: var(--lp-bg);
	--theme-palette-color-8: var(--lp-bg);
	--theme-text-color: var(--lp-text);
	--theme-link-initial-color: var(--lp-gold-2);
	--theme-link-hover-color: var(--lp-green-2);
	--theme-headings-color: #ffffff;
	--theme-border-color: #2a2a3a;
	--theme-button-background-initial-color: var(--lp-gold-3);
	--theme-button-background-hover-color: var(--lp-gold-2);
	--theme-button-text-initial-color: #1a1205;
	--theme-button-text-hover-color: #1a1205;
}

/* ---------- Base ---------- */
html, body {
	background: var(--lp-bg) !important;
	color: var(--lp-text);
}
body {
	background-image:
		radial-gradient(1200px 600px at 50% -200px, rgba(0, 196, 91, 0.12), transparent 70%),
		radial-gradient(900px 500px at 100% 30%, rgba(247, 208, 92, 0.06), transparent 70%) !important;
	background-attachment: fixed;
	font-family: "Kanit", "Prompt", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.75;
}
a { color: var(--lp-gold-2); }
a:hover { color: var(--lp-green-2); }

/* Blocksy chrome */
#header, .ct-header, [data-row] {
	background: rgba(11, 11, 18, 0.92) !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
#header [data-row] { border-bottom: 1px solid var(--lp-border); }
.site-title a, .site-branding .site-title {
	background: var(--lp-gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	font-weight: 800;
	letter-spacing: 0.02em;
}
.ct-header .menu > li > a, .ct-header .ct-menu-link { color: var(--lp-text) !important; font-weight: 500; }
.ct-header .menu > li > a:hover, .ct-header .current-menu-item > a { color: var(--lp-gold-2) !important; }
#offcanvas .ct-panel-inner, .ct-panel { background: var(--lp-bg-2) !important; }
.ct-footer, #footer, .ct-footer [data-row] {
	background: #07070c !important;
	color: var(--lp-muted);
	border-top: 1px solid var(--lp-border);
}
.ct-footer a { color: var(--lp-muted); }
.ct-footer a:hover { color: var(--lp-gold-2); }

/* Content width + reset Blocksy's boxed page look */
.page .entry-content, .home .entry-content { color: var(--lp-text); }
.page article > .entry-content > * { max-width: 1100px; }
.ct-container-full, [data-vertical-spacing] { padding-top: 0 !important; }
.page .hero-section { display: none; }

/* ---------- Typography ---------- */
.entry-content h1, .lp-h1 {
	font-size: clamp(1.75rem, 5.2vw, 3rem);
	line-height: 1.25;
	font-weight: 800;
	margin: 0 0 0.6em;
	background: var(--lp-head-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none;
	filter: drop-shadow(0 2px 12px rgba(247, 208, 92, 0.18));
}
.entry-content h2 {
	font-size: clamp(1.4rem, 3.6vw, 2.1rem);
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 0.6em;
	background: var(--lp-gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.entry-content h3 { color: #fff; font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 600; }
.entry-content p { color: var(--lp-text); }
.lp-muted { color: var(--lp-muted) !important; }

/* ---------- Layout blocks ---------- */
.lp-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.lp-section { margin: 28px auto; }

.lp-card {
	background: linear-gradient(180deg, var(--lp-card-2), var(--lp-card));
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	padding: 22px 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 768px) { .lp-card { padding: 32px 36px; } }

/* Hero */
.lp-hero {
	text-align: center;
	padding: 36px 18px 28px;
	border-radius: calc(var(--lp-radius) + 4px);
	background:
		radial-gradient(600px 260px at 50% 0%, rgba(0, 255, 119, 0.14), transparent 70%),
		linear-gradient(180deg, #151523 0%, #0e0e17 100%);
	border: 1px solid var(--lp-border);
	margin-top: 20px;
}
.lp-hero .lp-lead { font-size: 1.05rem; color: var(--lp-text); max-width: 820px; margin: 0 auto 1em; }
.lp-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.lp-badges li {
	font-size: 0.85rem; padding: 4px 12px; border-radius: 999px;
	border: 1px solid rgba(0, 196, 91, 0.45); color: var(--lp-green-2); background: rgba(0, 196, 91, 0.08);
}

/* Buttons */
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0 6px; }
.lp-btn, .entry-content a.lp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 200px; padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
	text-decoration: none !important;
	color: #1a1205 !important;
	background: var(--lp-gold-grad);
	border: 1px solid #ffe28a;
	box-shadow: 0 6px 22px rgba(247, 208, 92, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	position: relative; overflow: hidden;
}
.lp-btn::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(115deg, transparent 33%, rgba(255, 255, 255, 0.6) 50%, transparent 67%);
	transform: translateX(-120%);
	animation: lp-shine 3.2s ease-in-out infinite;
}
@keyframes lp-shine { 60%, 100% { transform: translateX(120%); } }
.lp-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 28px rgba(247, 208, 92, 0.45); }
.lp-btn--green, .entry-content a.lp-btn--green {
	background: linear-gradient(180deg, #5dffa8 0%, var(--lp-green) 55%, #007a39 100%);
	border-color: #6dffb3; color: #03200f !important;
	box-shadow: 0 6px 22px rgba(0, 196, 91, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.lp-btn--xl { min-width: min(100%, 320px); padding: 18px 36px; font-size: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .lp-btn::after { animation: none; } }

/* TOC */
.lp-toc { padding: 18px 20px; }
.lp-toc .lp-toc-title { margin: 0 0 10px; font-size: 1.1rem; color: var(--lp-gold-2); font-weight: 700; }
.lp-toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
@media (min-width: 768px) { .lp-toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.lp-toc a { color: var(--lp-text); text-decoration: none; }
.lp-toc a:hover { color: var(--lp-gold-2); }
.lp-toc li::marker { color: var(--lp-green); font-weight: 700; }

/* Grids */
.lp-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .lp-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .lp-grid--3 { grid-template-columns: repeat(3, 1fr); } .lp-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.lp-tile {
	background: #10101a; border: 1px solid #262636; border-radius: 12px; padding: 16px;
}
.lp-tile strong { display: block; color: var(--lp-gold-2); margin-bottom: 4px; font-size: 1.05rem; }
.lp-tile p, .lp-tile span { color: var(--lp-muted); margin: 0; font-size: 0.95rem; }

/* Steps */
.lp-steps { counter-reset: lp-step; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.lp-steps li {
	counter-increment: lp-step; position: relative; padding: 12px 14px 12px 58px;
	background: #10101a; border: 1px solid #262636; border-radius: 12px;
}
.lp-steps li::before {
	content: counter(lp-step); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 800; color: #1a1205; background: var(--lp-gold-grad);
}

/* Checklist */
.lp-check { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.lp-check li { position: relative; padding-left: 30px; }
.lp-check li::before {
	content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
	display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #03200f; background: var(--lp-green);
}

/* FAQ (Rank Math FAQ block markup + plain fallback) */
.lp-faq .rank-math-faq-item, .lp-faq-item {
	background: #10101a; border: 1px solid #262636; border-radius: 12px;
	padding: 14px 16px; margin: 0 0 10px;
}
.lp-faq .rank-math-question, .lp-faq-item h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--lp-gold-2); }
.lp-faq .rank-math-answer, .lp-faq .rank-math-answer p { color: var(--lp-text); margin: 0; }

/* CTA landing pages (/login/, /register/) */
.lp-gate { text-align: center; padding: 40px 18px; margin-top: 24px; }
.lp-gate .lp-gate-art {
	width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 28px; display: grid; place-items: center;
	font-size: 54px; background: radial-gradient(circle at 30% 30%, #2b2b40, #12121c);
	border: 1px solid var(--lp-border); box-shadow: 0 0 40px rgba(247, 208, 92, 0.15);
}
.lp-gate figcaption { color: var(--lp-muted); margin: 6px 0 18px; }

/* Promo cards */
.lp-promo { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lp-promo { grid-template-columns: repeat(3, 1fr); } }
.lp-promo .lp-tile { text-align: center; padding: 22px 16px; }
.lp-promo .lp-big {
	display: block; font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px;
	background: var(--lp-head-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lp-note { font-size: 0.85rem; color: var(--lp-muted); text-align: center; margin-top: 14px; }
.lp-placeholder-note { display: none; }

@media (max-width: 689px) {
	.site-title, .site-branding .site-title { font-size: 1.05rem !important; line-height: 1.3; }
}

/* Footer menu (printed by functions.php) */
.lp-footer-nav { background: #07070c; border-top: 1px solid var(--lp-border); padding: 22px 16px 6px; margin-top: 40px; }
.lp-footer-menu { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.lp-footer-menu a { color: var(--lp-muted); text-decoration: none; font-size: 0.95rem; }
.lp-footer-menu a:hover, .lp-footer-menu .current-menu-item > a { color: var(--lp-gold-2); }
.lp-footer-nav + .ct-footer, .lp-footer-nav + #footer { border-top: 0; }

.entry-content > .lp-hero:first-child, .entry-content > .lp-card:first-child { margin-top: 28px !important; }
