/*
Theme Name: TechPks Signal
Theme URI: https://techpks.com/
Author: Tech Pks
Author URI: https://techpks.com/
Description: A clean white, fast and mobile-friendly tech magazine theme for Tech Pks. Lightweight, no page builder, works with Rank Math, Easy Table of Contents and the Classic Editor.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techpks-signal
*/

:root {
	--bg: #ffffff;
	--surface: #f7f8fc;
	--surface2: #eef0f8;
	--line: #e1e4f0;
	--text: #12163a;
	--muted: #4b5280;
	--accent: #5b4bff;
	--accent-text: #4434d6;
	--on-accent: #ffffff;
	--coral: #c2402d;
	--glow: rgba(91, 75, 255, 0.2);
	--glow2: rgba(255, 107, 87, 0.22);
	--font-head: "Space Grotesk", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
	background: var(--accent); color: var(--on-accent); padding: 12px 18px; left: 8px; top: 8px;
}

.tps-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.tps-mono { font-family: var(--font-mono); }
.tps-eyebrow {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
	color: var(--accent-text); text-transform: uppercase;
}
.tps-lift { transition: transform 0.2s ease, border-color 0.2s ease; }
.tps-lift:hover { transform: translateY(-3px); border-color: var(--accent); }

/* Utility bar */
.tps-util { border-bottom: 1px solid var(--line); background: var(--surface); }
.tps-util .tps-wrap {
	display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
	padding-top: 10px; padding-bottom: 10px;
	font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.tps-util ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.tps-util a:hover { color: var(--accent-text); }
.tps-live { color: var(--accent-text); }

/* Header */
.tps-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 22px 0; }
.tps-brand { display: flex; align-items: center; gap: 14px; }
.tps-brand svg { flex: none; }
.tps-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.tps-brand__name { font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.tps-brand__name span { color: var(--accent-text); }
.tps-brand__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
.tps-head__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.tps-search { display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; min-height: 44px; }
.tps-search input[type="search"] {
	border: 0; background: transparent; color: var(--text); padding: 0 8px 0 16px; min-height: 42px; min-width: 190px; outline-offset: 2px;
}
.tps-search button {
	border: 0; background: transparent; color: var(--muted); cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center;
}
.tps-search button:hover { color: var(--accent-text); }

.tps-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
	border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px; cursor: pointer;
}
.tps-btn:hover { filter: brightness(1.1); }

/* Nav */
.tps-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.tps-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; font-weight: 500; }
.tps-nav a { display: block; padding: 10px 14px; border-radius: 999px; }
.tps-nav a:hover { background: var(--surface2); }
.tps-nav .current-menu-item > a, .tps-nav .current-cat > a, .tps-nav .current-menu-ancestor > a {
	background: var(--accent); color: var(--on-accent);
}

/* Trending */
.tps-trend { display: flex; align-items: stretch; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tps-trend__label {
	display: flex; align-items: center; padding: 0 16px; background: var(--accent); color: var(--on-accent);
	font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; white-space: nowrap;
}
.tps-trend__list { display: flex; gap: 32px; padding: 14px 20px; overflow-x: auto; white-space: nowrap; font-size: 14px; scrollbar-width: thin; }
.tps-trend__list a { display: inline-flex; gap: 10px; align-items: baseline; }
.tps-trend__list a:hover { color: var(--accent-text); }
.tps-trend__n { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }

/* Home intro */
.tps-intro { margin-top: 40px; max-width: 820px; }
.tps-intro h1 { margin: 10px 0 12px; font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.tps-intro p { margin: 0; color: var(--muted); font-size: 18px; }

/* Hero */
.tps-hero { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.tps-feature {
	flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column;
	border: 1px solid var(--line); border-radius: 28px; background: var(--surface); overflow: hidden;
}
.tps-feature__media {
	position: relative; min-height: 300px; display: flex; align-items: flex-end; padding: 24px; overflow: hidden;
	background:
		radial-gradient(circle at 22% 25%, var(--glow), transparent 55%),
		radial-gradient(circle at 85% 80%, var(--glow2), transparent 50%),
		radial-gradient(var(--line) 1.6px, transparent 1.6px) 0 0 / 22px 22px,
		var(--surface2);
}
.tps-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tps-feature__glyph { font-family: var(--font-head); font-weight: 700; font-size: clamp(64px, 12vw, 120px); line-height: 1; letter-spacing: -0.04em; opacity: 0.9; }
.tps-chip {
	position: absolute; top: 18px; left: 20px; z-index: 2; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
	padding: 6px 10px; border-radius: 8px; background: var(--bg); color: var(--accent-text); border: 1px solid var(--line); text-transform: uppercase;
}
.tps-feature__body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 12px; }
.tps-feature__body h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; }
.tps-feature__body p { margin: 0; font-size: 17px; color: var(--muted); max-width: 640px; }
.tps-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tps-meta .tps-more { color: var(--accent-text); }

.tps-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tps-panel { border: 1px solid var(--line); border-radius: 28px; background: var(--surface); padding: 24px; }
.tps-panel .tps-eyebrow { margin-bottom: 8px; }
.tps-start { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.tps-start:hover .tps-start__t { color: var(--accent-text); }
.tps-start__n { font-family: var(--font-mono); font-size: 13px; color: var(--coral); padding-top: 3px; }
.tps-start__t { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.25; display: block; margin-bottom: 4px; }
.tps-term {
	border: 1px solid var(--line); border-radius: 28px; background: #12163a; color: #c9cffa; padding: 22px 24px;
	font-family: var(--font-mono); font-size: 13px; line-height: 1.9;
}
.tps-term b { color: #a99fff; font-weight: 500; }
.tps-term i { font-style: normal; color: #7be0b0; }
.tps-dots { display: flex; gap: 6px; margin-bottom: 10px; }
.tps-dots span { width: 10px; height: 10px; border-radius: 50%; background: #3a4072; }
.tps-dots span:last-child { background: var(--accent); }

/* Sections */
.tps-section { margin-top: 64px; }
.tps-section__head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.tps-section__head h2, .tps-section__head h1 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: -0.01em; }
.tps-section__head a, .tps-section__head span { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }
.tps-section__head span { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; }

.tps-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tps-cat { display: flex; flex-direction: column; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tps-cat__top { display: flex; justify-content: space-between; align-items: center; }
.tps-cat__code { font-family: var(--font-mono); font-weight: 700; font-size: 13px; padding: 5px 9px; border-radius: 8px; background: var(--surface2); color: var(--accent-text); }
.tps-cat__n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tps-cat__name { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.2; }
.tps-cat__go { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.tps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tps-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden; }
.tps-card__thumb {
	position: relative; display: flex; align-items: flex-end; padding: 16px; aspect-ratio: 16 / 10; overflow: hidden;
	background:
		radial-gradient(circle at 25% 20%, var(--glow), transparent 62%),
		radial-gradient(var(--line) 1.6px, transparent 1.6px) 0 0 / 20px 20px,
		var(--surface2);
}
.tps-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tps-card__glyph { font-family: var(--font-head); font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.tps-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.tps-card__cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent-text); text-transform: uppercase; }
.tps-card__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.28; }

/* Login help band */
.tps-band {
	margin-top: 64px; border: 1px solid var(--accent); border-radius: 28px; padding: 36px;
	display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center;
	background: radial-gradient(circle at 92% 10%, var(--glow), transparent 55%), var(--surface);
}
.tps-band__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.tps-band h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.tps-band p { margin: 0; color: var(--muted); max-width: 480px; }
.tps-band__act { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.tps-band .tps-search { background: var(--bg); }
.tps-band .tps-search input[type="search"] { flex: 1; min-width: 0; }

.tps-why { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tps-why > div { padding: 28px; border-top: 2px solid var(--accent); background: var(--surface); border-radius: 0 0 16px 16px; }
.tps-why > div:nth-child(2) { border-top-color: var(--coral); }
.tps-why b { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); display: block; margin-bottom: 10px; font-weight: 500; }
.tps-why h3 { margin: 0 0 8px; font-family: var(--font-head); font-weight: 600; font-size: 22px; }
.tps-why p { margin: 0; color: var(--muted); }

/* Archive header */
.tps-archive-head { margin: 40px 0 28px; max-width: 820px; }
.tps-archive-head h1 { margin: 8px 0 10px; font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
.tps-archive-head p { margin: 0; color: var(--muted); font-size: 17px; }
.navigation.pagination { margin: 40px 0 0; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-family: var(--font-mono); font-size: 14px; }
.navigation.pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.navigation.pagination .page-numbers.current, .navigation.pagination a.page-numbers:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Single */
.tps-crumbs { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tps-crumbs a { color: var(--accent-text); }
.tps-post { max-width: 820px; margin: 0 auto; padding-top: 24px; }
.tps-post__cat { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface2); }
.tps-post h1 { margin: 0 0 16px; font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; letter-spacing: -0.02em; }
.tps-post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tps-post__img { margin: 28px 0 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.tps-post__img img { display: block; width: 100%; height: auto; }

.entry-content { margin-top: 28px; font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-head); line-height: 1.25; letter-spacing: -0.01em; margin: 2em 0 0.6em; scroll-margin-top: 20px; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--coral); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.25em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--surface2); }
.entry-content pre { overflow-x: auto; padding: 16px; background: #12163a; color: #e6e9ff; border-radius: 12px; font-family: var(--font-mono); font-size: 14px; }
.entry-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface2); padding: 2px 6px; border-radius: 6px; }
.entry-content pre code { background: transparent; padding: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.2em; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
#ez-toc-container { border: 1px solid var(--line) !important; background: var(--surface) !important; border-radius: 16px !important; padding: 16px 20px !important; }

.tps-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tps-tags a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tps-tags a:hover { border-color: var(--accent); color: var(--accent-text); }
.tps-author { display: flex; gap: 16px; margin-top: 36px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.tps-author img { border-radius: 50%; flex: none; }
.tps-author__name { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.tps-author p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.tps-related { margin-top: 56px; }

/* Comments */
.tps-comments { max-width: 820px; margin: 56px auto 0; }
.tps-comments h2, .tps-comments .comment-reply-title { font-family: var(--font-head); font-size: 24px; margin: 0 0 16px; }
.tps-comments ol { list-style: none; padding: 0; margin: 0 0 32px; }
.tps-comments .children { list-style: none; padding-left: 24px; }
.tps-comments .comment-body { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 14px; }
.tps-comments .comment-meta { font-size: 13px; color: var(--muted); }
.tps-comments input[type="text"], .tps-comments input[type="email"], .tps-comments input[type="url"], .tps-comments textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text);
}
.tps-comments .submit { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 12px; min-height: 44px; padding: 0 22px; font-weight: 600; cursor: pointer; }

/* Footer */
.tps-foot { margin-top: 72px; border-top: 1px solid var(--line); padding: 44px 0 28px; background: var(--surface); }
.tps-foot__cols { display: flex; flex-wrap: wrap; gap: 36px 48px; justify-content: space-between; }
.tps-foot__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tps-foot__col--brand { flex: 2 1 280px; max-width: 380px; gap: 12px; }
.tps-foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tps-foot__col a { color: var(--muted); }
.tps-foot__col a:hover { color: var(--accent-text); }
.tps-foot__col p { margin: 0; color: var(--muted); font-size: 15px; }
.tps-foot__copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.tps-empty { padding: 48px 0; max-width: 560px; }
.tps-empty .tps-search { margin-top: 18px; }

@media (max-width: 720px) {
	.tps-wrap { padding: 0 18px; }
	.tps-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.tps-nav li { flex: none; }
	.tps-search input[type="search"] { min-width: 0; width: 150px; }
	.tps-feature__body { padding: 22px 20px 26px; }
	.tps-band { padding: 24px; }
	.entry-content { font-size: 17px; }
	.tps-brand__name { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.tps-lift { transition: none; }
	.tps-lift:hover { transform: none; }
}
