/* Just jQuery - Revamped Design */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg: #0d0f14;
  --bg2: #13161e;
  --bg3: #1a1e2a;
  --border: #252a38;
  --accent: #f7c948;
  --accent2: #4fc3f7;
  --text: #c8d0e0;
  --text-dim: #6b7590;
  --text-bright: #edf0f7;
  --green: #5ae49a;
  --radius: 6px;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Syne', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 14px; line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* HEADER */
#header { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 58px; }
#logo { font-family: var(--font-sans); font-size: 20px; font-weight: 800; color: var(--text-bright); letter-spacing: -0.5px; display: flex; align-items: center; gap: 2px; text-decoration: none; }
#logo .dollar { color: var(--accent); }
#logo .paren { color: var(--text-dim); font-weight: 300; }
nav ul { list-style: none; display: flex; gap: 2px; }
nav ul li a { display: block; padding: 6px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); border-radius: var(--radius); transition: all 0.15s; }
nav ul li a:hover, nav ul li.active > a { color: var(--text-bright); background: var(--bg3); }
nav ul li.active > a { color: var(--accent); }
nav ul li { position: relative; }
nav ul li ul { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); min-width: 200px; padding: 4px; flex-direction: column; }
nav ul li:hover ul { display: flex; flex-direction: column; }
nav ul li ul li a { padding: 8px 12px; border-radius: 4px; white-space: nowrap; }

/* PAGE STRUCTURE */
#page { flex: 1; display: flex; flex-direction: column; }
#content { flex: 1; max-width: 1000px; margin: 0 auto; padding: 48px 40px; width: 100%; }

/* HOME HERO */
#homeheading { border-left: 3px solid var(--accent); padding: 24px 32px; margin-bottom: 48px; background: var(--bg2); border-radius: 0 var(--radius) var(--radius) 0; }
#homeheading h1 { font-family: var(--font-sans); font-size: 24px; font-weight: 700; color: var(--text-bright); margin-bottom: 10px; }
#homeheading h1 span { color: var(--accent); }
#homeheading p { color: var(--text-dim); font-size: 13px; max-width: 540px; }

/* FEATURED SECTIONS */
.featured { margin-bottom: 40px; }
.featured h2 { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color 0.2s, transform 0.15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--text-bright); margin-bottom: 8px; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--text-dim); font-size: 12px; line-height: 1.6; }
.plugin-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; align-items: flex-start; gap: 20px; transition: border-color 0.2s; }
.plugin-card:hover { border-color: var(--accent); }
.plugin-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--accent), #e6b800); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.plugin-card h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--text-bright); margin-bottom: 6px; }
.plugin-card h3 a { color: inherit; }
.plugin-card h3 a:hover { color: var(--accent); }
.plugin-card p { color: var(--text-dim); font-size: 12px; }

/* SEO BACKLINKS */
.seo-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 32px; }
.seo-link-item { font-size: 12px; color: var(--text-dim); }
.seo-link-item a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }

/* PAGE TITLE */
.page-title { margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.page-title h1 { font-family: var(--font-sans); font-size: 28px; font-weight: 800; color: var(--text-bright); }
.page-title .breadcrumb { font-size: 11px; color: var(--text-dim); margin-bottom: 8px; }
.page-title .breadcrumb a { color: var(--text-dim); }
.page-title .breadcrumb a:hover { color: var(--accent); }

/* SIDEBAR LAYOUT */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: start; }
#sidebar h4 { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; margin-top: 24px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
#sidebar h4:first-child { margin-top: 0; }
.sidebarlist { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebarlist li a { font-size: 12px; color: var(--text-dim); display: block; padding: 5px 0; transition: all 0.15s; }
.sidebarlist li a:hover { color: var(--accent); padding-left: 6px; }

/* POST */
.post { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.entry p { margin-bottom: 14px; color: var(--text); line-height: 1.8; font-size: 13px; }
.entry h2 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--text-bright); margin: 24px 0 10px; }
.entry ul, .entry ol { margin: 10px 0 14px 24px; color: var(--text); font-size: 13px; }
.entry li { margin-bottom: 5px; }
.entry pre { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; overflow-x: auto; font-size: 12px; line-height: 1.6; color: var(--green); margin: 16px 0; }
.entry code { background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; padding: 2px 6px; font-size: 11px; color: var(--accent2); }

/* COMMENTS */
#comments { margin-top: 40px; }
#comments h2 { font-family: var(--font-sans); font-size: 18px; font-weight: 700; color: var(--text-bright); margin-bottom: 8px; }
#comments h4 { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; font-weight: 400; }
.commentlist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.comment-body { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.comment-author { font-size: 12px; margin-bottom: 4px; }
.comment-author cite { color: var(--accent); font-style: normal; font-weight: 500; }
.comment-author .says { color: var(--text-dim); }
.comment-meta { font-size: 11px; color: var(--text-dim); margin-bottom: 10px; }
.comment-meta a { color: var(--text-dim); }
.comment-body p { font-size: 12px; color: var(--text); line-height: 1.7; margin-bottom: 6px; }
#respond { margin-top: 28px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
#respond h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--text-bright); margin-bottom: 10px; }
#respond p { font-size: 12px; color: var(--text-dim); }

/* ARTICLE LIST */
.post-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.post-list li { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; transition: border-color 0.15s; display: flex; justify-content: space-between; align-items: center; }
.post-list li:hover { border-color: var(--accent2); }
.post-list li a { color: var(--text-bright); font-size: 13px; }
.post-list li a:hover { color: var(--accent); }
.post-list .date { font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* LAB */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.lab-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: border-color 0.15s, background 0.15s; }
.lab-item:hover { border-color: var(--accent2); background: var(--bg3); }
.lab-item a { color: var(--text-bright); font-size: 13px; font-weight: 500; display: block; margin-bottom: 4px; }
.lab-item p { font-size: 11px; color: var(--text-dim); }

/* BTN */
.btn { display: inline-block; padding: 8px 18px; background: var(--accent); color: #000; font-family: var(--font-mono); font-size: 12px; font-weight: 700; border-radius: var(--radius); transition: background 0.15s; text-decoration: none; }
.btn:hover { background: #ffd84d; color: #000; }

/* FOOTER */
#footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 18px 40px; font-size: 11px; color: var(--text-dim); text-align: center; }
#footer a { color: var(--text-dim); }
#footer a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 720px) {
  #header { padding: 0 16px; flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  #content { padding: 24px 16px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
}
