/*
Theme Name: SmartMag Child
Theme URI: https://smartmag.theme-sphere.com/
Description: SmartMag TechBlog adapted for WebCode.Tools.
Author: WebCode.Tools
Template: smart-mag
Version: 1.2.0
*/

:root {
	--webcode-ink: #101010;
	--webcode-ink-soft: #202124;
	--webcode-paper: #ffffff;
	--webcode-panel: #f4f5f6;
	--webcode-line: #d8dade;
	--webcode-muted: #5c626a;
	--webcode-cyan: #087995;
	--webcode-cyan-bright: #22c7ef;
	--webcode-blue: #2457f5;
	--webcode-radius: 8px;
}

body {
	color: var(--webcode-ink);
}

/* Preserve the original text-logo character inside SmartMag's header. */
.logo-link.text-logo {
	color: var(--webcode-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 18px;
	font-weight: 750;
	letter-spacing: -0.035em;
	line-height: 1;
	white-space: nowrap;
}

.logo-link.text-logo h1,
.logo-link.text-logo > span {
	display: flex;
	align-items: center;
	min-width: 178px;
	min-height: 32px;
	margin: 0;
}

.smart-head .items-center .logo-link.text-logo,
.smart-head.dark .logo-link.text-logo {
	color: #fff;
}

.smart-head-top {
	display: none !important;
}

.smart-head-main {
	border-top: 3px solid var(--webcode-cyan);
}

.smart-head .navigation-main .menu > li > a,
.webcode-generator-bar,
.webcode-tool-card__eyebrow,
.webcode-kicker {
	letter-spacing: 0.035em;
}

.smart-head .navigation-main .menu > li > a:hover,
.smart-head .navigation-main .current-menu-item > a,
.smart-head .navigation-main .current-menu-ancestor > a {
	color: var(--webcode-cyan) !important;
}

.webcode-shell {
	box-sizing: border-box;
	width: min(100% - 44px, 1200px);
	margin-inline: auto;
}

.webcode-generator-bar {
	position: relative;
	z-index: 5;
	border-bottom: 1px solid #292929;
	background: var(--webcode-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.webcode-generator-bar__inner {
	display: flex;
	align-items: center;
	min-height: 44px;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}

.webcode-generator-bar__inner::-webkit-scrollbar {
	display: none;
}

.webcode-generator-bar__label {
	margin-right: 20px;
	color: var(--webcode-cyan-bright);
	font-size: 11px;
}

.webcode-generator-bar a {
	position: relative;
	margin-right: 24px;
	padding: 14px 0 13px;
	color: #f7f7f7;
}

.webcode-generator-bar a::after {
	position: absolute;
	right: 0;
	bottom: 7px;
	left: 0;
	height: 2px;
	background: var(--webcode-cyan-bright);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 160ms ease;
}

.webcode-generator-bar a:hover {
	color: #fff;
}

.webcode-generator-bar a:hover::after {
	transform: scaleX(1);
}

.webcode-home-intro {
	border-bottom: 1px solid var(--webcode-line);
	background:
		linear-gradient(90deg, rgba(17, 155, 193, 0.07) 1px, transparent 1px) 0 0 / 42px 42px,
		linear-gradient(rgba(17, 155, 193, 0.07) 1px, transparent 1px) 0 0 / 42px 42px,
		var(--webcode-paper);
	padding: 48px 0 54px;
}

.webcode-home-intro__copy {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.85fr);
	align-items: end;
	gap: 48px;
	margin-bottom: 32px;
}

.webcode-kicker {
	grid-column: 1 / -1;
	margin: 0 0 -26px;
	color: var(--webcode-cyan);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11px;
	font-weight: 800;
}

.webcode-home-intro h1 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(34px, 4.1vw, 58px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.02;
}

.webcode-home-intro__copy > p:last-child {
	max-width: 450px;
	margin: 0 0 3px;
	color: var(--webcode-muted);
	font-size: 17px;
	line-height: 1.62;
}

.webcode-tool-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--webcode-line);
	border-left: 1px solid var(--webcode-line);
	background: var(--webcode-line);
	gap: 1px;
}

.webcode-tool-card {
	display: flex;
	min-height: 196px;
	box-sizing: border-box;
	flex-direction: column;
	padding: 22px 22px 20px;
	border-right: 1px solid var(--webcode-line);
	border-bottom: 1px solid var(--webcode-line);
	background: rgba(255, 255, 255, 0.96);
	color: var(--webcode-ink);
	transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.webcode-tool-card:hover {
	z-index: 1;
	background: #fff;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
	color: var(--webcode-ink);
	transform: translateY(-3px);
}

.webcode-tool-card__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 26px;
}

.webcode-tool-card__icon {
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid var(--webcode-ink);
	border-radius: 5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	font-weight: 800;
}

.webcode-tool-card__eyebrow {
	color: var(--webcode-cyan);
	font-size: 9px;
	font-weight: 850;
}

.webcode-tool-card strong {
	margin-bottom: 8px;
	font-size: 18px;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.webcode-tool-card__copy {
	color: var(--webcode-muted);
	font-size: 13px;
	line-height: 1.48;
}

.webcode-tool-card__action {
	margin-top: auto;
	padding-top: 18px;
	color: var(--webcode-cyan);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

/* Unify TechBlog's category accents with the established WebCode palette. */
.cat-labels .category,
.post-cat,
.post-meta .post-cat {
	background: var(--webcode-cyan) !important;
	color: #fff !important;
}

.block-head-b .heading::after,
.block-head-c .heading::after,
.main-color,
.main-color-hover:hover,
.post-title a:hover,
.block-heading a:hover {
	color: var(--webcode-cyan) !important;
}

.button,
button,
input[type="submit"],
.load-button,
.subscribe-box .button {
	border-radius: 4px;
}

.smart-head .subscribe,
.smart-head .button,
.load-button,
.subscribe-box input[type="submit"] {
	border-color: var(--webcode-cyan) !important;
	background: var(--webcode-cyan) !important;
	color: #fff !important;
}

/* Demo promotion banners are irrelevant to the WebCode preview. */
.home .elementor-widget-smartmag-codes {
	display: none;
}

.home .main-content > .elementor {
	padding-top: 38px;
}

.main-footer {
	border-top: 3px solid var(--webcode-cyan);
}

@media (max-width: 940px) {
	.webcode-generator-bar::after {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 38px;
		background: linear-gradient(90deg, rgba(16, 16, 16, 0), var(--webcode-ink) 78%);
		content: "";
		pointer-events: none;
	}

	.webcode-home-intro__copy {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.webcode-kicker {
		margin-bottom: 2px;
	}

	.webcode-tool-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.logo-link.text-logo h1,
	.logo-link.text-logo > span {
		min-width: 146px;
	}

	.logo-link.text-logo {
		font-size: 15px;
	}

	.webcode-shell {
		width: min(100% - 28px, 1200px);
	}

	.webcode-generator-bar__inner {
		min-height: 42px;
	}

	.webcode-generator-bar__label {
		margin-right: 16px;
	}

	.webcode-generator-bar a {
		margin-right: 19px;
	}

	.webcode-home-intro {
		padding: 34px 0 38px;
	}

	.webcode-home-intro h1 {
		font-size: 37px;
	}

	.webcode-home-intro__copy > p:last-child {
		font-size: 15px;
	}

	.webcode-tool-grid {
		grid-template-columns: 1fr;
	}

	.webcode-tool-card {
		min-height: 172px;
	}
}



