/*
Theme Name: WTG TechGeek
Theme URI: https://wtgtechgeek.blog/
Author: WTG TechGeek
Author URI: https://wtgtechgeek.blog/
Description: A fast, clean, professional technology & blogging theme built for WTG TechGeek (wtgtechgeek.blog). Features a magazine-style homepage, category highlight cards, responsive layout, custom widget areas, SEO-friendly markup, and a modern dark/neon tech aesthetic. Perfect for tech news, gadget reviews, AI, software, cybersecurity, and how-to content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: wtgtechgeek
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* =========================================================
   TABLE OF CONTENTS
   1.0  Reset & Base
   2.0  Variables
   3.0  Typography
   4.0  Layout / Grid
   5.0  Header
   6.0  Navigation
   7.0  Hero / Front Page
   8.0  Category Cards
   9.0  Post Cards / Loop
   10.0 Single Post
   11.0 Sidebar & Widgets
   12.0 Footer
   13.0 Forms & Buttons
   14.0 Comments
   15.0 Utilities
   16.0 Responsive
========================================================= */

/* 1.0 Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #f5f7fa;
	color: #1b2430;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

/* 2.0 Variables */
:root {
	--wtg-navy: #0b1120;
	--wtg-navy-light: #131b2e;
	--wtg-accent: #00e5a0;
	--wtg-accent-blue: #3b82f6;
	--wtg-text: #1b2430;
	--wtg-muted: #5c6b7a;
	--wtg-border: #e4e9ef;
	--wtg-card-bg: #ffffff;
	--wtg-radius: 14px;
	--wtg-max: 1180px;
}

/* 3.0 Typography */
body, button, input, select, textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
	font-family: inherit;
	font-weight: 800;
	line-height: 1.25;
	color: var(--wtg-navy);
	margin: 0 0 .6em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { color: var(--wtg-accent-blue); text-decoration: underline; }
.entry-content blockquote {
	margin: 1.5em 0;
	padding: .8em 1.4em;
	border-left: 4px solid var(--wtg-accent);
	background: #f0fdf9;
	font-style: italic;
	color: var(--wtg-muted);
}
.entry-content code { background: #eef1f5; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content pre { background: var(--wtg-navy); color: #d7f9ec; padding: 1em; border-radius: 10px; overflow-x: auto; }
.entry-content img { border-radius: var(--wtg-radius); margin: 1em 0; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.4em; }
.entry-content li { margin-bottom: .4em; }

/* 4.0 Layout / Grid */
.wtg-container {
	max-width: var(--wtg-max);
	margin: 0 auto;
	padding: 0 20px;
}
.wtg-main-layout {
	display: grid;
	grid-template-columns: 2.3fr 1fr;
	gap: 40px;
	max-width: var(--wtg-max);
	margin: 40px auto;
	padding: 0 20px;
	align-items: start;
}
.site-content { min-width: 0; }

/* 5.0 Header */
.site-header {
	background: var(--wtg-navy);
	position: sticky;
	top: 0;
	z-index: 999;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header-inner {
	max-width: var(--wtg-max);
	margin: 0 auto;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title {
	font-size: 1.5rem;
	font-weight: 900;
	color: #fff;
	letter-spacing: -.5px;
	margin: 0;
}
.site-title span { color: var(--wtg-accent); }
.site-description {
	color: #9aa7b8;
	font-size: .78rem;
	margin: 2px 0 0;
	letter-spacing: .5px;
	text-transform: uppercase;
}
.custom-logo { max-height: 44px; width: auto; border-radius: 8px; }

/* 6.0 Navigation */
.main-navigation { display: flex; align-items: center; gap: 28px; }
.main-navigation ul { display: flex; gap: 26px; }
.main-navigation a {
	color: #cbd5e1;
	font-weight: 600;
	font-size: .95rem;
	transition: color .2s ease;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: #fff;
	border-bottom-color: var(--wtg-accent);
}
.main-navigation ul ul {
	position: absolute;
	background: var(--wtg-navy-light);
	flex-direction: column;
	padding: 10px 0;
	border-radius: 10px;
	min-width: 200px;
	box-shadow: 0 12px 30px rgba(0,0,0,.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .2s ease;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation ul ul a { padding: 8px 18px; display: block; border-bottom: none; }
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid #334155;
	color: #fff;
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.2rem;
}
.header-search { display: flex; align-items: center; }
.header-search .search-field {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.15);
	color: #fff;
	padding: 8px 12px;
	border-radius: 20px;
	font-size: .85rem;
	width: 170px;
}
.header-search .search-field::placeholder { color: #94a3b8; }
.header-search .search-submit { display: none; }

/* 7.0 Hero / Front Page */
.wtg-hero {
	background: radial-gradient(circle at 20% 20%, #12213d 0%, var(--wtg-navy) 60%);
	color: #fff;
	padding: 70px 20px;
}
.wtg-hero-inner {
	max-width: var(--wtg-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 40px;
	align-items: center;
}
.wtg-hero-eyebrow {
	display: inline-block;
	color: var(--wtg-accent);
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.wtg-hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: .4em; }
.wtg-hero p.lead { color: #b7c3d6; font-size: 1.1rem; max-width: 540px; }
.wtg-hero-actions { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.wtg-featured-post {
	background: var(--wtg-navy-light);
	border-radius: var(--wtg-radius);
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.08);
}
.wtg-featured-post img { aspect-ratio: 16/10; object-fit: cover; }
.wtg-featured-post .fp-body { padding: 18px 20px 22px; }
.wtg-featured-post .fp-cat {
	color: var(--wtg-accent);
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.wtg-featured-post h3 { color: #fff; margin: 8px 0; font-size: 1.15rem; }
.wtg-featured-post p { color: #94a3b8; font-size: .9rem; margin: 0; }

/* 8.0 Category Cards */
.wtg-section { max-width: var(--wtg-max); margin: 60px auto; padding: 0 20px; }
.wtg-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 26px;
	border-bottom: 3px solid var(--wtg-navy);
	padding-bottom: 12px;
}
.wtg-section-head h2 { margin: 0; }
.wtg-section-head a { color: var(--wtg-accent-blue); font-weight: 700; font-size: .9rem; }
.wtg-cat-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}
.wtg-cat-card {
	background: var(--wtg-card-bg);
	border: 1px solid var(--wtg-border);
	border-radius: var(--wtg-radius);
	padding: 22px 16px;
	text-align: center;
	transition: transform .18s ease, box-shadow .18s ease;
}
.wtg-cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,17,32,.1); }
.wtg-cat-card .cat-icon { font-size: 1.8rem; margin-bottom: 10px; }
.wtg-cat-card h3 { font-size: .95rem; margin: 0 0 6px; }
.wtg-cat-card span { color: var(--wtg-muted); font-size: .8rem; }

/* 9.0 Post Cards / Loop */
.wtg-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.wtg-card {
	background: var(--wtg-card-bg);
	border-radius: var(--wtg-radius);
	overflow: hidden;
	border: 1px solid var(--wtg-border);
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease;
}
.wtg-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11,17,32,.12); }
.wtg-card .card-thumb { aspect-ratio: 16/10; overflow: hidden; background: #dde3ea; }
.wtg-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wtg-card .card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wtg-card .cat-pill {
	align-self: flex-start;
	background: #eafff6;
	color: #0a9f6b;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 4px 10px;
	border-radius: 20px;
}
.wtg-card h3 { font-size: 1.08rem; margin: 4px 0; }
.wtg-card h3 a:hover { color: var(--wtg-accent-blue); }
.wtg-card p { color: var(--wtg-muted); font-size: .9rem; margin: 0; flex: 1; }
.wtg-card .card-meta { font-size: .78rem; color: #94a3b8; margin-top: 8px; }

.wtg-list-post {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 22px;
	padding: 22px 0;
	border-bottom: 1px solid var(--wtg-border);
}
.wtg-list-post .card-thumb { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: #dde3ea; }
.wtg-list-post .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wtg-list-post h2 { font-size: 1.35rem; margin-bottom: 8px; }
.wtg-list-post .card-meta { font-size: .8rem; color: #94a3b8; margin-bottom: 8px; }
.wtg-list-post p.excerpt { color: var(--wtg-muted); }
.read-more { font-weight: 700; color: var(--wtg-accent-blue); }

/* 10.0 Single Post */
.single-hero {
	background: var(--wtg-navy);
	color: #fff;
	padding: 50px 20px 40px;
}
.single-hero-inner { max-width: 820px; margin: 0 auto; }
.single-hero .cat-pill-single {
	display: inline-block;
	background: rgba(0,229,160,.15);
	color: var(--wtg-accent);
	font-weight: 700;
	font-size: .75rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 20px;
	margin-bottom: 16px;
}
.single-hero h1 { color: #fff; font-size: 2.1rem; }
.single-hero .single-meta { color: #94a3b8; font-size: .9rem; margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.single-hero .single-meta strong { color: #e2e8f0; }
.single-thumb { max-width: 900px; margin: -30px auto 30px; padding: 0 20px; }
.single-thumb img { border-radius: var(--wtg-radius); box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.entry-content { max-width: 820px; margin: 0 auto; }
.entry-tags { max-width: 820px; margin: 30px auto 0; display: flex; gap: 8px; flex-wrap: wrap; }
.entry-tags a {
	background: #eef1f5;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: .8rem;
	color: var(--wtg-muted);
	font-weight: 600;
}
.author-box {
	max-width: 820px;
	margin: 40px auto 0;
	background: #fff;
	border: 1px solid var(--wtg-border);
	border-radius: var(--wtg-radius);
	padding: 22px;
	display: flex;
	gap: 16px;
	align-items: center;
}
.author-box img { border-radius: 50%; width: 64px; height: 64px; }
.author-box h4 { margin: 0 0 4px; }
.author-box p { margin: 0; color: var(--wtg-muted); font-size: .9rem; }
.post-nav-links {
	max-width: 820px;
	margin: 30px auto 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.post-nav-links a {
	background: #fff;
	border: 1px solid var(--wtg-border);
	border-radius: 10px;
	padding: 14px 18px;
	display: block;
	font-size: .85rem;
}
.post-nav-links span { display: block; color: var(--wtg-muted); font-size: .75rem; text-transform: uppercase; margin-bottom: 4px; }
.post-nav-links .nav-next { text-align: right; }

/* 11.0 Sidebar & Widgets */
.widget {
	background: #fff;
	border: 1px solid var(--wtg-border);
	border-radius: var(--wtg-radius);
	padding: 22px;
	margin-bottom: 26px;
}
.widget-title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--wtg-navy);
}
.widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--wtg-border); font-size: .92rem; }
.widget ul li:last-child { border-bottom: none; }
.widget_search .search-form { display: flex; gap: 8px; }
.widget_search input[type="search"] {
	flex: 1;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--wtg-border);
}
.wtg-newsletter-widget { background: var(--wtg-navy); color: #fff; }
.wtg-newsletter-widget h3 { color: #fff; border-color: rgba(255,255,255,.2); }
.wtg-newsletter-widget p { color: #94a3b8; font-size: .88rem; }
.wtg-newsletter-widget input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: none;
	margin-bottom: 10px;
}

/* 12.0 Footer */
.site-footer { background: var(--wtg-navy); color: #94a3b8; margin-top: 60px; }
.footer-widgets {
	max-width: var(--wtg-max);
	margin: 0 auto;
	padding: 50px 20px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 30px;
}
.footer-widgets h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.footer-widgets a { color: #94a3b8; }
.footer-widgets a:hover { color: var(--wtg-accent); }
.footer-widgets li { padding: 6px 0; font-size: .9rem; }
.footer-about p { font-size: .9rem; color: #94a3b8; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
	width: 36px; height: 36px;
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: .85rem;
}
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 18px 20px;
	text-align: center;
	font-size: .82rem;
}
.footer-bottom .wtg-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* 13.0 Forms & Buttons */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 30px;
	font-weight: 700;
	font-size: .9rem;
	cursor: pointer;
	border: none;
}
.btn-primary { background: var(--wtg-accent); color: #04231a; }
.btn-primary:hover { background: #00c98d; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-outline:hover { border-color: var(--wtg-accent); color: var(--wtg-accent); }
.wtg-contact-form input, .wtg-contact-form textarea, .wtg-contact-form select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wtg-border);
	border-radius: 10px;
	margin-bottom: 16px;
	font-family: inherit;
	font-size: .95rem;
}
.wtg-contact-form label { font-weight: 700; font-size: .85rem; display: block; margin-bottom: 6px; }
.wtg-contact-form button { background: var(--wtg-navy); color: #fff; }
.wtg-contact-form button:hover { background: #1e293b; }

.contact-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 40px; }
.contact-info-card {
	background: #fff;
	border: 1px solid var(--wtg-border);
	border-radius: var(--wtg-radius);
	padding: 24px;
	text-align: center;
}
.contact-info-card .icon { font-size: 1.8rem; margin-bottom: 10px; }

/* 14.0 Comments */
.comments-area { max-width: 820px; margin: 50px auto 0; }
.comment-list { margin-top: 20px; }
.comment-body {
	background: #fff;
	border: 1px solid var(--wtg-border);
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 16px;
}
.comment-author { font-weight: 700; font-size: .92rem; }
.comment-metadata { color: var(--wtg-muted); font-size: .78rem; margin-bottom: 8px; }
.comment-reply-link { color: var(--wtg-accent-blue); font-size: .8rem; font-weight: 700; }
.comment-respond { background: #fff; border: 1px solid var(--wtg-border); border-radius: var(--wtg-radius); padding: 24px; margin-top: 24px; }

/* 15.0 Utilities */
.screen-reader-text { position: absolute; left: -9999px; }
.wtg-breadcrumbs { max-width: var(--wtg-max); margin: 20px auto 0; padding: 0 20px; font-size: .82rem; color: var(--wtg-muted); }
.wtg-breadcrumbs a { color: var(--wtg-accent-blue); }
.wtg-pagination { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.wtg-pagination a, .wtg-pagination span {
	padding: 8px 14px;
	border: 1px solid var(--wtg-border);
	border-radius: 8px;
	font-size: .85rem;
	background: #fff;
}
.wtg-pagination .current { background: var(--wtg-navy); color: #fff; border-color: var(--wtg-navy); }
.page-header { max-width: var(--wtg-max); margin: 0 auto; padding: 0 20px; }
.alignwide { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* 16.0 Responsive */
@media (max-width: 960px) {
	.wtg-main-layout { grid-template-columns: 1fr; }
	.wtg-hero-inner { grid-template-columns: 1fr; }
	.wtg-cat-grid { grid-template-columns: repeat(3, 1fr); }
	.wtg-post-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	.main-navigation { display: none; }
	.menu-toggle { display: inline-block; }
	.site-header-inner.nav-open .main-navigation {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--wtg-navy-light);
		flex-direction: column;
		padding: 16px 20px;
	}
	.site-header-inner.nav-open .main-navigation ul { flex-direction: column; gap: 4px; }
	.header-search { display: none; }
	.wtg-cat-grid { grid-template-columns: repeat(2, 1fr); }
	.wtg-post-grid { grid-template-columns: 1fr; }
	.wtg-list-post { grid-template-columns: 1fr; }
	.footer-widgets { grid-template-columns: 1fr; }
	.contact-info-grid { grid-template-columns: 1fr; }
	h1 { font-size: 1.9rem; }
	.wtg-hero h1 { font-size: 2rem; }
	.post-nav-links { grid-template-columns: 1fr; }
}
