/*
Theme Name: Astra Child - Game Site
Description: Child theme for the games site. Game CPT, CrazyGames-style templates, dark/light mode.
Template: astra
Version: 1.2.0
Text Domain: astra-child
*/

/* ---------- Theme variables ---------- */
:root,
:root[data-theme="dark"] {
	--bg: #0c0e14;
	--bg-soft: #12131d;
	--card: #171825;
	--card2: #1d1f30;
	--border: #232538;
	--hover: #252739;
	--hover2: #32354d;
	--scroll: #2c2f45;
	--muted: #7c8098;
	--text: #c3c6d4;
	--text-soft: #aaadbe;
	--strong: #e4e6f1;
	--head: #ffffff;
	--accent: #6842ff;
	--accent-hover: #7d5cff;
	--link: #9b82ff;
	--link-hover: #b7a5ff;
}

:root[data-theme="light"] {
	--bg: #eef0f7;
	--bg-soft: #e6e9f2;
	--card: #ffffff;
	--card2: #f4f5fb;
	--border: #dfe2ee;
	--hover: #eceef7;
	--hover2: #e2e5f2;
	--scroll: #c9cddd;
	--muted: #6b7085;
	--text: #3d4257;
	--text-soft: #565c73;
	--strong: #23263a;
	--head: #14162b;
	--accent: #6842ff;
	--accent-hover: #5a3fd6;
	--link: #5a3fd6;
	--link-hover: #4531ad;
}

/* ---------- Typography: Inter everywhere ---------- */
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.site-title,
.main-header-menu {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ---------- Base ---------- */
.ast-container {
	max-width: 100%;
	width: 100%;
}

body,
.site-content,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
	background-color: var(--bg);
	color: var(--text);
}

.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
	color: var(--head);
}

.site-content a {
	color: var(--link);
}

.site-content a:hover {
	color: var(--link-hover);
}

/* ---------- Header ---------- */
.gh-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--card);
	border-bottom: 1px solid var(--border);
}

.gh-inner {
	max-width: 1460px;
	margin: 0 auto;
	padding: 0 20px;
	height: 62px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.gh-logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	color: var(--head);
	font-size: 20px;
	font-weight: 800;
	text-transform: capitalize;
	white-space: nowrap;
}

.gh-logo:hover {
	color: var(--head);
}

.gh-logo img {
	height: 34px;
	width: auto;
	display: block;
}

/* Logo wordmark is white — flip it dark in light mode, purple accents survive. */
:root[data-theme="light"] .gh-logo img {
	filter: invert(1) hue-rotate(180deg);
}

.gh-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
	overflow: hidden;
}

.gh-nav a {
	color: var(--text-soft);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 9px;
	white-space: nowrap;
	transition: background .13s ease, color .13s ease;
}

.gh-nav a:hover {
	background: var(--hover);
	color: var(--head);
}

.gh-nav a.is-active {
	background: var(--accent);
	color: #fff;
}

/* WP nav menu items inside the header nav */
.gh-nav li {
	list-style: none;
	margin: 0;
	display: contents;
}

.gh-nav .current-menu-item > a,
.gh-nav .current_page_item > a {
	background: var(--accent);
	color: #fff;
}

.gh-search {
	display: flex;
	margin-left: auto;
	width: 300px;
	max-width: 34vw;
}

.gh-search input {
	flex: 1;
	min-width: 0;
	background: var(--bg);
	border: 1px solid var(--border);
	border-right: 0;
	border-radius: 10px 0 0 10px;
	padding: 8px 14px;
	font-size: 14px;
	color: var(--head);
	outline: none;
}

.gh-search input::placeholder {
	color: var(--muted);
}

.gh-search input:focus {
	border-color: var(--accent);
}

.gh-search button {
	border: 0;
	padding: 0 14px;
	margin: 0;
	cursor: pointer;
	background: var(--accent);
	color: #fff;
	border-radius: 0 10px 10px 0;
	display: flex;
	align-items: center;
}

.gh-search button svg {
	width: 17px;
	height: 17px;
	min-width: 17px;
	fill: currentColor;
}

.gh-toggle,
.gh-burger {
	border: 1px solid var(--border);
	padding: 0;
	margin: 0;
	background: var(--bg);
	color: var(--text-soft);
	width: 40px;
	min-width: 40px;
	height: 40px;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .13s ease, color .13s ease;
}

.gh-toggle:hover,
.gh-burger:hover {
	background: var(--hover);
	color: var(--head);
}

.gh-toggle svg,
.gh-burger svg {
	width: 20px;
	height: 20px;
	min-width: 20px;
	fill: currentColor;
}

/* moon in dark mode, sun in light mode */
.gh-ico-sun { display: none; }
:root[data-theme="light"] .gh-ico-sun { display: block; }
:root[data-theme="light"] .gh-ico-moon { display: none; }

.gh-burger {
	display: none;
}

@media (max-width: 980px) {
	.gh-nav {
		display: none;
		position: absolute;
		top: 62px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--card);
		border-bottom: 1px solid var(--border);
		padding: 8px;
		gap: 2px;
	}

	.gh-nav.is-open {
		display: flex;
	}

	.gh-burger {
		display: inline-flex;
	}

	.gh-header {
		position: relative;
	}
}

@media (max-width: 640px) {
	.gh-search {
		display: none;
	}

	.gh-inner {
		gap: 10px;
	}

	/* Search hidden hai to buttons right side pe dhakelo */
	.gh-toggle {
		margin-left: auto;
	}
}

/* ---------- Footer (always dark, both modes) ---------- */
.gf-footer {
	background-color: #171825;
	border-top: 1px solid #232538;
	margin-top: 40px;
}

.gf-inner {
	max-width: 1460px;
	margin: 0 auto;
	padding: 48px 24px 36px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
	gap: 36px;
}

.gf-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #ffffff;
	font-size: 24px;
	font-weight: 800;
	text-transform: capitalize;
}

.gf-logo:hover {
	color: #ffffff;
}

.gf-logo img {
	height: 40px;
	width: auto;
	display: block;
}

.gf-tagline {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.8;
	color: #7c8098;
	max-width: 360px;
}

.gf-col h4 {
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	margin: 4px 0 14px;
}

.gf-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gf-col li {
	margin: 0 0 10px;
}

.gf-col ul a {
	color: #aaadbe;
	font-size: 14px;
	text-decoration: none;
	transition: color .15s ease;
}

.gf-col ul a:hover {
	color: #ffffff;
}

.gf-bottom {
	border-top: 1px solid #232538;
	padding: 18px 24px;
	max-width: 1460px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.gf-bottom p {
	margin: 0;
	font-size: 13px;
	color: #7c8098;
}

@media (max-width: 900px) {
	.gf-inner {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}
}

@media (max-width: 520px) {
	.gf-inner {
		grid-template-columns: 1fr;
	}

	.gf-bottom {
		flex-direction: column;
	}
}

/* ---------- Contact Form 7 ---------- */
.wpcf7 {
	max-width: 640px;
}

.wpcf7 label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--head);
	margin-bottom: 6px;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin: 4px 0 18px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
	width: 100%;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--head);
	outline: none;
	transition: border-color .15s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: var(--accent);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: var(--muted);
}

.wpcf7 textarea {
	min-height: 150px;
	resize: vertical;
}

.wpcf7 input[type="submit"] {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 13px 34px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
}

.wpcf7 .wpcf7-spinner {
	margin: 0 0 0 12px;
}

.wpcf7 .wpcf7-not-valid-tip {
	color: #ff6b81;
	font-size: 13px;
	margin-top: 6px;
}

.wpcf7 .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 18px;
	border-radius: 12px;
	border: 1px solid var(--border) !important;
	background: var(--card);
	color: var(--text);
	font-size: 14px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #2ecc71 !important;
	color: #2ecc71;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: #ff6b81 !important;
	color: #ff6b81;
}
