/*
Theme Name: ProgramGeeks
Theme URI: https://program-geeks.com/
Author: ProgramGeeks
Author URI: https://program-geeks.com/
Description: A clean, responsive editorial WordPress theme for practical programming tutorials and developer resources.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: programgeeks
*/

:root {
  --pg-ink: #0b1220;
  --pg-ink-soft: #111c2f;
  --pg-paper: #f7f9fc;
  --pg-white: #ffffff;
  --pg-muted: #60708a;
  --pg-line: #dfe6ef;
  --pg-green: #49e6a1;
  --pg-blue: #4f8cff;
  --pg-purple: #8b6dff;
  --pg-shadow: 0 16px 44px rgba(11, 18, 32, .09);
  --pg-radius: 16px;
  --pg-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pg-ink);
  background: var(--pg-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pg-blue); }
button, input, textarea { font: inherit; }
.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 !important;
}
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; margin: 5px; padding: 12px 16px; background: #fff; z-index: 100000; }
.container { width: min(calc(100% - 40px), var(--pg-max)); margin-inline: auto; }

.site-header { background: var(--pg-ink); color: #fff; position: relative; z-index: 20; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.04em; font-size: 1.38rem; }
.brand-mark { width: 39px; height: 39px; border-radius: 11px; background: linear-gradient(135deg, var(--pg-green), var(--pg-blue)); color: var(--pg-ink); display: grid; place-items: center; font: 700 1.15rem/1 "SFMono-Regular", Consolas, monospace; }
.brand-dot { color: var(--pg-green); }
.tagline { color: #9eabc0; font-size: .8rem; margin: 0 0 0 50px; letter-spacing: .01em; }
.primary-nav { display: flex; align-items: center; gap: 26px; font-size: .92rem; font-weight: 650; }
.primary-nav a { color: #dbe4f2; min-height: 44px; display: inline-flex; align-items: center; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--pg-green); }
.nav-toggle { display: none; border: 1px solid #33435d; background: transparent; color: #fff; border-radius: 10px; min-width: 44px; min-height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after { width: 19px; height: 2px; background: #fff; display: block; content: ""; position: relative; margin: auto; }
.nav-toggle span:before { position: absolute; top: -6px; }
.nav-toggle span:after { position: absolute; top: 6px; }

.hero { background: var(--pg-ink); color: #fff; padding: 66px 0 88px; position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; right: -130px; top: -170px; width: 560px; height: 560px; border: 1px solid rgba(73,230,161,.18); border-radius: 50%; box-shadow: 0 0 0 55px rgba(73,230,161,.04), 0 0 0 110px rgba(73,230,161,.025); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.eyebrow, .post-kicker { text-transform: uppercase; letter-spacing: .14em; color: var(--pg-green); font-size: .74rem; font-weight: 800; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.065em; max-width: 700px; margin: 16px 0 24px; }
.hero p { color: #aebbd0; font-size: 1.08rem; max-width: 570px; margin: 0 0 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px; border-radius: 9px; border: 1px solid transparent; background: var(--pg-green); color: var(--pg-ink); font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { color: var(--pg-ink); background: #76efba; transform: translateY(-2px); }
.button.secondary { background: transparent; border-color: #3a4b67; color: #fff; margin-left: 10px; }
.button.secondary:hover { color: #fff; background: #1c2a40; }
.hero-art { min-height: 330px; border: 1px solid #2c3d58; border-radius: 20px; background: linear-gradient(145deg, #15243c, #0e182b); padding: 24px; box-shadow: 0 25px 70px rgba(0,0,0,.2); }
.terminal { border-radius: 13px; overflow: hidden; background: #0a111d; box-shadow: 0 16px 35px rgba(0,0,0,.25); }
.terminal-bar { height: 35px; display: flex; align-items: center; gap: 6px; padding: 0 13px; background: #18263a; }
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff6c7d; display: block; }
.terminal-bar i:nth-child(2) { background: #ffd166; }.terminal-bar i:nth-child(3) { background: var(--pg-green); }
.terminal pre { min-height: 236px; padding: 22px; margin: 0; color: #b9c8dd; font: 13px/1.8 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; }
.code-green { color: var(--pg-green); }.code-blue { color: #76b4ff; }.code-purple { color: #bd9cff; }.code-muted { color: #73829a; }

.section { padding: 74px 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.045em; margin: 0; }
.section-intro { color: var(--pg-muted); max-width: 580px; margin: 10px 0 0; }
.text-link { color: #356ad5; font-weight: 750; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--pg-white); border: 1px solid var(--pg-line); border-radius: var(--pg-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 3px 0 rgba(11,18,32,.01); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--pg-shadow); }
.post-card-image { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #dce7f6; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; height: 100%; }
.post-card h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -.025em; margin: 8px 0 12px; }
.post-card p { color: var(--pg-muted); font-size: .93rem; line-height: 1.6; margin: 0 0 18px; }
.post-meta { color: #7b899b; font-size: .78rem; display: flex; gap: 8px; align-items: center; margin-top: auto; }
.post-meta .author { color: #43516a; font-weight: 700; }
.featured-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; }
.featured-card { min-height: 440px; border-radius: var(--pg-radius); padding: 36px; color: #fff; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(145deg, rgba(10,20,37,.24), rgba(10,20,37,.92)), url("assets/blueprint.svg") center/cover; }
.featured-card h3 { max-width: 650px; margin: 12px 0; font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.05em; }
.featured-card p { color: #c6d2e4; max-width: 600px; margin: 0 0 22px; }
.side-feature { padding: 28px; border: 1px solid #263754; border-radius: var(--pg-radius); background: var(--pg-ink-soft); color: #fff; }
.side-feature h3 { font-size: 1.35rem; line-height: 1.25; margin: 12px 0; letter-spacing: -.03em; }.side-feature p { color: #aebbd0; font-size: .91rem; }
.side-feature .button { margin-top: 13px; }

.category-band { background: #eaf0f7; border-block: 1px solid var(--pg-line); padding: 18px 0; }
.category-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.category-list a { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 15px; border: 1px solid #cbd6e3; border-radius: 99px; background: #fff; color: #34445c; font-weight: 700; font-size: .87rem; }
.category-list a:hover { border-color: var(--pg-blue); color: var(--pg-blue); }

.page-hero { padding: 78px 0 58px; background: var(--pg-ink); color: #fff; }
.page-hero h1 { max-width: 800px; font-size: clamp(2.3rem, 5vw, 4.5rem); letter-spacing: -.06em; line-height: 1.03; margin: 13px 0; }
.page-hero p { color: #afbdd2; max-width: 650px; margin: 0; font-size: 1.05rem; }
.content-wrap { max-width: 820px; }
.content-wrap h2 { font-size: 1.8rem; letter-spacing: -.03em; line-height: 1.2; margin-top: 42px; }.content-wrap h3 { font-size: 1.35rem; margin-top: 30px; }
.content-wrap p, .content-wrap li { color: #3e4d64; }
.content-wrap a { color: #356ad5; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-wrap ul, .content-wrap ol { padding-left: 22px; }
.article-header { max-width: 900px; margin-bottom: 32px; }.article-header h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.04; letter-spacing: -.065em; margin: 14px 0 20px; }.article-header .excerpt { font-size: 1.15rem; color: var(--pg-muted); max-width: 760px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: #738198; font-size: .86rem; }
.article-byline strong { color: var(--pg-ink); }.article-cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--pg-radius); margin: 32px 0 44px; background: #dce7f6; }
.article-layout { display: grid; grid-template-columns: minmax(0, 820px) 250px; gap: 70px; align-items: start; }.article-sidebar { position: sticky; top: 24px; }.article-sidebar h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #74839a; }.article-sidebar a { display: block; padding: 10px 0; border-bottom: 1px solid var(--pg-line); font-size: .88rem; color: #42516a; }
pre.wp-block-code, .content-wrap pre { overflow-x: auto; padding: 22px; border-radius: 12px; background: #0e1828; color: #c9d7ea; font: 13px/1.75 "SFMono-Regular", Consolas, monospace; max-width: 100%; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; }.content-wrap :not(pre) > code { color: #2356b3; background: #edf3ff; padding: 2px 5px; border-radius: 4px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }.pagination .page-numbers { min-width: 44px; min-height: 44px; display: grid; place-items: center; background: #fff; border: 1px solid var(--pg-line); border-radius: 8px; color: #42516a; }.pagination .current, .pagination a:hover { background: var(--pg-ink); color: #fff; border-color: var(--pg-ink); }

.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; }.contact-panel { padding: 26px; background: #eaf0f7; border-radius: var(--pg-radius); }.contact-panel h2 { margin-top: 0; }.contact-panel p { color: var(--pg-muted); }.contact-detail { padding: 18px 0; border-top: 1px solid #d2dce8; }.contact-detail strong { display: block; margin-bottom: 4px; }.contact-detail span { color: var(--pg-muted); font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.field { margin-bottom: 18px; }.field label { display: block; font-weight: 750; font-size: .88rem; margin-bottom: 7px; }.field input, .field textarea { width: 100%; border: 1px solid #cbd6e3; border-radius: 8px; background: #fff; padding: 12px 13px; min-height: 46px; color: var(--pg-ink); }.field textarea { min-height: 150px; resize: vertical; }.field input:focus, .field textarea:focus { outline: 3px solid rgba(79,140,255,.18); border-color: var(--pg-blue); }.form-notice { padding: 12px 15px; border-radius: 8px; margin-bottom: 18px; background: #e6fbf0; color: #17643c; }

.site-footer { background: var(--pg-ink); color: #fff; padding: 54px 0 26px; }.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; }.site-footer h2 { font-size: 1.1rem; margin: 0 0 14px; }.site-footer p, .site-footer li, .site-footer a { color: #aab8cc; font-size: .9rem; }.site-footer ul { list-style: none; padding: 0; margin: 0; }.site-footer li { margin: 7px 0; }.footer-bottom { border-top: 1px solid #263650; margin-top: 45px; padding-top: 20px; color: #718199; font-size: .8rem; display: flex; justify-content: space-between; gap: 18px; }
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }

@media (max-width: 900px) {
  .hero-grid, .featured-grid, .article-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 650px; }.article-sidebar { position: static; }.post-grid { grid-template-columns: repeat(2, 1fr); }.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--pg-max)); }.topbar { min-height: 72px; }.tagline { display: none; }.nav-toggle { display: block; }.primary-nav { display: none; position: absolute; left: 14px; right: 14px; top: 68px; background: #142239; border: 1px solid #2b3c57; padding: 8px; border-radius: 12px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 18px 35px rgba(0,0,0,.25); }.primary-nav.is-open { display: flex; }.primary-nav a { padding: 8px 12px; }.hero { padding: 52px 0 62px; }.hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); }.hero-art { min-height: 270px; padding: 14px; }.terminal pre { min-height: 210px; padding: 16px; font-size: 11px; }.section { padding: 52px 0; }.section-header { align-items: start; flex-direction: column; }.post-grid { grid-template-columns: 1fr; }.featured-card { min-height: 400px; padding: 24px; }.page-hero { padding: 58px 0 45px; }.article-cover { margin: 24px 0 30px; }.form-row, .footer-grid { grid-template-columns: 1fr; }.button.secondary { margin-left: 5px; }.footer-bottom { flex-direction: column; margin-top: 30px; }
}