/*
Theme Name: ChatRandom
Theme URI: https://chatrandom.my
Author: ChatRandom.my
Description: A bold, futuristic Full Site Editing (FSE) block theme for ChatRandom.my. Fully editable via the Site Editor — colors, fonts, menus, social links, hero, features, and every section. SEO and AI-engine optimized with Schema.org, Open Graph, and Twitter Cards built in.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chatrandom
Tags: full-site-editing, block-themes, custom-colors, custom-fonts, wide-blocks, entertainment, blog
*/

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--wp--preset--font-family--body, 'Exo 2', sans-serif);
	background-color: var(--wp--preset--color--background, #fff0f5);
	color: var(--wp--preset--color--foreground, #1a0a12);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* ============================================================
   ANIMATED PAGE BACKGROUND
   ============================================================ */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255,214,231,0.85) 0%, transparent 55%),
		radial-gradient(ellipse 60% 50% at 90% 10%, rgba(255,179,209,0.75) 0%, transparent 50%),
		radial-gradient(ellipse 70% 70% at 50% 100%, rgba(255,128,171,0.45) 0%, transparent 60%),
		linear-gradient(160deg, #fff0f5 0%, #fce4ec 50%, #f8bbd9 100%);
	pointer-events: none;
}

body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(circle, rgba(233,30,140,.07) 1px, transparent 1px),
		radial-gradient(circle, rgba(192,24,91,.05) 1px, transparent 1px);
	background-size: 40px 40px, 65px 65px;
	animation: dotdrift 28s linear infinite;
	pointer-events: none;
}
@keyframes dotdrift { to { background-position: 40px 40px, -65px 65px; } }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
a {
	color: var(--wp--preset--color--primary, #ff1f6d);
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover { color: var(--wp--preset--color--secondary, #e91e8c); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--heading, 'Orbitron', sans-serif);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--foreground, #1a0a12);
	margin-top: 0;
}

p { line-height: 1.75; margin-top: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
	position: sticky !important;
	top: 0 !important;
	z-index: 200 !important;
	background: rgba(255,255,255,0.68) !important;
	backdrop-filter: blur(20px) !important;
	-webkit-backdrop-filter: blur(20px) !important;
	border-bottom: 1px solid rgba(255,182,210,0.4) !important;
	transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
	box-shadow: 0 4px 32px rgba(255,31,109,0.12);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.wp-block-navigation {
	font-family: var(--wp--preset--font-family--body, 'Exo 2', sans-serif) !important;
	font-size: 0.88rem !important;
	font-weight: 500 !important;
}
.wp-block-navigation-item__label {
	transition: color 0.2s ease;
}
.wp-block-navigation-item:hover .wp-block-navigation-item__label {
	color: var(--wp--preset--color--primary, #ff1f6d) !important;
}
.wp-block-navigation__responsive-container.is-menu-open {
	background: rgba(255,240,245,0.97) !important;
	backdrop-filter: blur(20px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link {
	border-radius: 60px !important;
	font-family: var(--wp--preset--font-family--heading, 'Orbitron', sans-serif) !important;
	font-weight: 700 !important;
	font-size: 0.82rem !important;
	letter-spacing: 0.02em !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
	white-space: nowrap;
}
.wp-block-button__link:hover {
	transform: translateY(-2px) !important;
}

/* Primary gradient button */
.wp-block-button.is-style-primary .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link {
	background: linear-gradient(135deg, #ff1f6d 0%, #e91e8c 100%) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 8px 28px rgba(255,31,109,0.38) !important;
}
.wp-block-button.is-style-primary .wp-block-button__link:hover {
	box-shadow: 0 14px 36px rgba(255,31,109,0.5) !important;
}

/* Outline / glass button */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255,255,255,0.82) !important;
	color: #ff1f6d !important;
	border: 1.5px solid rgba(255,31,109,0.35) !important;
	backdrop-filter: blur(10px) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff !important;
	border-color: #ff1f6d !important;
}

/* White button (used on dark CTA band) */
.wp-block-button.is-style-white .wp-block-button__link {
	background: #fff !important;
	color: #ff1f6d !important;
	border: none !important;
	box-shadow: 0 8px 24px rgba(0,0,0,0.14) !important;
}
.wp-block-button.is-style-white .wp-block-button__link:hover {
	box-shadow: 0 14px 32px rgba(0,0,0,0.2) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
	min-height: calc(100vh - 73px);
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 72px 40px 88px !important;
}

/* Live badge pill */
.live-badge {
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
	background: rgba(255,255,255,0.78);
	border: 1px solid rgba(255,31,109,0.22);
	border-radius: 50px;
	padding: 7px 20px;
	font-family: var(--wp--preset--font-family--body, 'Exo 2', sans-serif) !important;
	font-size: 0.82rem !important;
	font-weight: 500;
	color: var(--wp--preset--color--primary, #ff1f6d) !important;
	backdrop-filter: blur(10px);
	margin-bottom: 32px !important;
}
.live-badge::before {
	content: '';
	display: inline-block;
	width: 7px; height: 7px;
	background: var(--wp--preset--color--primary, #ff1f6d);
	border-radius: 50%;
	flex-shrink: 0;
	animation: badgepulse 1.6s ease-in-out infinite;
}
@keyframes badgepulse {
	0%,100% { opacity:1; transform:scale(1); }
	50%      { opacity:0.45; transform:scale(1.6); }
}

/* Hero heading */
.hero-section h1,
.hero-heading {
	font-family: var(--wp--preset--font-family--heading, 'Orbitron', sans-serif) !important;
	font-weight: 800 !important;
	font-size: clamp(2rem, 5vw, 3.8rem) !important;
	line-height: 1.18 !important;
	letter-spacing: 0.01em !important;
	word-break: break-word;
	margin-bottom: 28px !important;
}

/* Gradient text span */
.text-gradient {
	background: linear-gradient(135deg, #ff1f6d 0%, #e91e8c 55%, #ff6b6b 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: block;
}

/* Hero sub text */
.hero-sub {
	font-family: var(--wp--preset--font-family--body, 'Exo 2', sans-serif) !important;
	font-size: 1.08rem !important;
	color: var(--wp--preset--color--muted, #7d5064) !important;
	max-width: 540px;
	margin-left: auto !important;
	margin-right: auto !important;
	line-height: 1.75 !important;
	margin-bottom: 48px !important;
}

/* Stats row */
.stats-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
	max-width: 600px;
	margin: 52px auto 0;
}
.stats-row .wp-block-column {
	border-right: 1px solid rgba(255,31,109,0.15);
	padding: 0 20px;
	min-width: 110px;
}
.stats-row .wp-block-column:last-child { border-right: none; }

.stat-number {
	font-family: var(--wp--preset--font-family--heading, 'Orbitron', sans-serif) !important;
	font-weight: 800 !important;
	font-size: 1.7rem !important;
	color: var(--wp--preset--color--primary, #ff1f6d) !important;
	display: block;
	margin-bottom: 4px;
}
.stat-label {
	font-size: 0.7rem !important;
	color: var(--wp--preset--color--muted, #7d5064) !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-eyebrow {
	font-family: var(--wp--preset--font-family--heading, 'Orbitron', sans-serif) !important;
	font-weight: 700 !important;
	font-size: 0.7rem !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	color: var(--wp--preset--color--primary, #ff1f6d) !important;
	margin-bottom: 10px !important;
}

/* ============================================================
   CARDS
   ============================================================ */
.glass-card,
.feature-card,
.preview-card {
	background: rgba(255,255,255,0.72);
	border-radius: 24px;
	border: 1px solid rgba(255,182,210,0.48);
	backdrop-filter: blur(14px);
	box-shadow: 0 4px 24px rgba(193,24,91,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
}
.glass-card:hover,
.feature-card:hover,
.preview-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 44px rgba(255,31,109,0.16);
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-icon {
	font-size: 2rem;
	margin-bottom: 1rem;
	display: block;
}

/* ============================================================
   STEP NUMBERS
   ============================================================ */
.step-number {
	width: 68px !important;
	height: 68px !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg, #ff1f6d, #e91e8c) !important;
	color: #fff !important;
	font-family: var(--wp--preset--font-family--heading, 'Orbitron', sans-serif) !important;
	font-weight: 800 !important;
	font-size: 1.4rem !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 auto 1.25rem !important;
	box-shadow: 0 6px 24px rgba(255,31,109,0.32);
	border: 3px solid var(--wp--preset--color--background, #fff0f5) !important;
	line-height: 1 !important;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
	border-radius: 32px !important;
	background: linear-gradient(135deg, #ff1f6d 0%, #e91e8c 50%, #ff6b6b 100%) !important;
	box-shadow: 0 24px 64px rgba(255,31,109,0.32) !important;
	position: relative;
	overflow: hidden;
}
.cta-band::before {
	content: '';
	position: absolute; inset: 0;
	background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
	background-size: 28px 28px;
	pointer-events: none;
}
.cta-band .wp-block-heading,
.cta-band h2, .cta-band h3 {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
.cta-band p { color: rgba(255,255,255,0.88) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	background: rgba(255,255,255,0.55) !important;
	backdrop-filter: blur(16px) !important;
	border-top: 1px solid rgba(255,182,210,0.35) !important;
}
.site-footer a {
	color: var(--wp--preset--color--muted, #7d5064);
	transition: color 0.2s;
}
.site-footer a:hover {
	color: var(--wp--preset--color--primary, #ff1f6d);
}

/* ============================================================
   BLOG POST CARDS
   ============================================================ */
.post-card {
	background: rgba(255,255,255,0.72);
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid rgba(255,182,210,0.45);
	box-shadow: 0 4px 20px rgba(193,24,91,0.07);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(255,31,109,0.15);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.wp-block-post-content {
	font-size: 1.05rem;
	line-height: 1.8;
}
.wp-block-post-content h2,
.wp-block-post-content h3 {
	margin-top: 2.2rem;
	margin-bottom: 0.75rem;
}
.wp-block-post-content img {
	border-radius: 16px;
	max-width: 100%;
}
.wp-block-post-content blockquote {
	border-left: 4px solid var(--wp--preset--color--primary, #ff1f6d);
	padding-left: 1.5rem;
	margin-left: 0;
	color: var(--wp--preset--color--muted, #7d5064);
	font-style: italic;
}

/* ============================================================
   SCROLL REVEAL (JS-driven)
   ============================================================ */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 782px) {
	.hero-section {
		padding: 56px 24px 64px !important;
	}
	.hero-section h1,
	.hero-heading {
		font-size: clamp(1.6rem, 7vw, 2.6rem) !important;
	}
	.stats-row { gap: 0; }
	.stats-row .wp-block-column {
		border-right: none;
		border-bottom: 1px solid rgba(255,31,109,0.12);
		padding: 12px 0;
	}
	.stats-row .wp-block-column:last-child { border-bottom: none; }
	.cta-band { border-radius: 20px !important; }
}

@media (max-width: 480px) {
	.wp-block-button__link {
		font-size: 0.78rem !important;
		padding-left: 1.4em !important;
		padding-right: 1.4em !important;
	}
}
