/*
Theme Name: Paid Developer
Theme URI: https://paiddeveloper.com
Author: Paid Developer Editorial
Description: Dark-mode developer news theme for paiddeveloper.com — indigo & signal-lime accents, Space Grotesk headlines, JetBrains Mono meta. Built for fast-moving tech-update coverage: trending rail, category badges, ads, related posts, author bios.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: paiddev
*/

:root {
  --pd-bg: #0F1016;
  --pd-panel: #171820;
  --pd-panel-2: #1D1F2A;
  --pd-indigo: #2A1F6E;
  --pd-indigo-light: #5B3FD9;
  --pd-lime: #C6F24E;
  --pd-ink: #EDEDF2;
  --pd-muted: #9B98AE;
  --pd-muted-2: #6E6B85;
  --pd-border: #2A2C38;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pd-bg);
  color: var(--pd-ink);
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--pd-lime); }
img { max-width: 100%; display: block; }

.mono { font-family: 'JetBrains Mono', monospace; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container--article { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* placeholder photo pattern */
.ph-shot {
  background-image:
    repeating-linear-gradient(135deg, rgba(198,242,78,0.08) 0px, rgba(198,242,78,0.08) 2px, transparent 2px, transparent 14px),
    linear-gradient(#1B1C26, #14151D);
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
}
.ph-shot span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pd-muted);
  background: rgba(15,16,22,0.85);
  padding: 4px 10px;
  border-radius: 4px;
}

/* header */
.pd-topbar {
  background: var(--pd-panel);
  border-bottom: 1px solid var(--pd-border);
  padding: 10px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--pd-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.pd-topbar .links { display: flex; gap: 20px; }

.pd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid var(--pd-border);
}
.pd-brand { display: flex; align-items: center; gap: 12px; }
.pd-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--pd-indigo);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pd-mark svg { width: 22px; height: 22px; }
.pd-wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.pd-wordmark .accent { color: var(--pd-indigo-light); }
.pd-tagline { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--pd-muted-2); margin-top: 2px; }

.pd-nav { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.pd-nav a {
  font-size: 14px; font-weight: 500; color: var(--pd-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.pd-nav .current-menu-item a, .pd-nav a.is-active { color: var(--pd-lime); }

.pd-breadcrumb {
  max-width: 760px; margin: 22px auto 0; padding: 0 32px;
  font-size: 12px; color: var(--pd-muted-2); font-family: 'JetBrains Mono', monospace;
}

/* badges */
.pd-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--pd-lime); text-transform: uppercase;
  background: rgba(198,242,78,0.1); border: 1px solid rgba(198,242,78,0.25);
  padding: 4px 10px; border-radius: 100px;
}
.pd-badge::before { content: "#"; opacity: 0.7; }

/* hero */
.pd-hero { padding: 44px 0 0; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; }
.pd-hero-main { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.pd-hero-media { aspect-ratio: 4/3; }
.pd-hero-media img, .pd-card-media img, .pd-related-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--pd-border); }
.pd-hero h1 {
  font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em;
  margin: 16px 0 14px; color: #fff;
}
.pd-hero .pd-dek { font-size: 16px; line-height: 1.6; color: var(--pd-muted); margin: 0 0 18px; }
.pd-readmore { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--pd-lime); font-weight: 600; }

/* trending rail */
.pd-trending {
  background: var(--pd-panel); border: 1px solid var(--pd-border); border-radius: 12px;
  padding: 24px;
}
.pd-trending h2 {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--pd-lime); margin: 0 0 18px;
}
.pd-trending-item {
  display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--pd-border);
}
.pd-trending-item:last-child { border-bottom: none; }
.pd-trending-item .num {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 18px;
  color: var(--pd-indigo-light); min-width: 22px;
}
.pd-trending-item .title { font-size: 14px; line-height: 1.4; font-weight: 500; }

/* category rows / grid */
.pd-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 56px 0 24px;
}
.pd-section-head h2 { font-size: 22px; font-weight: 700; margin: 0; }
.pd-section-head a { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--pd-muted); }

.pd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pd-card { display: flex; flex-direction: column; }
.pd-card-media { aspect-ratio: 16/10; margin-bottom: 14px; }
.pd-card .pd-badge { margin-bottom: 10px; align-self: flex-start; }
.pd-card h3 { font-size: 18px; line-height: 1.32; font-weight: 700; margin: 0 0 8px; color: #fff; }
.pd-card p { font-size: 13.5px; line-height: 1.55; color: var(--pd-muted); margin: 0; }
.pd-card .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--pd-muted-2); margin-top: 10px; }

/* newsletter */
.pd-newsletter {
  margin-top: 64px; background: linear-gradient(135deg, var(--pd-indigo), #1B143F);
  border-radius: 16px; padding: 48px; text-align: center;
}
.pd-newsletter h2 { font-size: 26px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.pd-newsletter p { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0 0 22px; }
.pd-newsletter form { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pd-newsletter input[type="email"] {
  width: 280px; padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 14px;
}
.pd-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.pd-newsletter button {
  padding: 12px 22px; border-radius: 8px; border: none; background: var(--pd-lime);
  color: #14151A; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; cursor: pointer;
}

/* footer */
.pd-footer { border-top: 1px solid var(--pd-border); padding: 48px 32px 32px; max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.pd-footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--pd-muted-2); margin-top: 8px; }
.pd-footer-cols { display: flex; gap: 56px; font-size: 13px; flex-wrap: wrap; }
.pd-footer-col { display: flex; flex-direction: column; gap: 8px; }
.pd-footer-col-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pd-lime); margin-bottom: 4px; }
.pd-footer-col a { color: var(--pd-muted); }

/* article */
.pd-article { padding: 22px 0 0; }
.pd-article h1 { font-size: 38px; line-height: 1.14; font-weight: 700; letter-spacing: -0.01em; margin: 16px 0 16px; color: #fff; }
.pd-article .pd-dek { font-size: 17px; line-height: 1.55; color: var(--pd-muted); margin: 0 0 22px; }

.pd-byline { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--pd-border); border-bottom: 1px solid var(--pd-border); margin-bottom: 28px; }
.pd-byline .pd-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--pd-indigo); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--pd-lime); }
.pd-byline .pd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-byline .name { font-size: 13px; font-weight: 600; }
.pd-byline .date { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--pd-muted-2); }

.pd-article-media { aspect-ratio: 16/9; margin-bottom: 10px; }
.pd-article-caption { font-size: 12px; color: var(--pd-muted-2); margin-bottom: 36px; font-style: italic; }

.entry-content { font-size: 16.5px; line-height: 1.8; color: #D6D5E0; }
.entry-content h2 { font-size: 24px; font-weight: 700; margin: 44px 0 16px; color: #fff; }
.entry-content h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; color: #fff; }
.entry-content p { margin: 0 0 16px; }
.entry-content a { color: var(--pd-lime); text-decoration: underline; text-decoration-color: rgba(198,242,78,0.4); }
.entry-content blockquote { border-left: 3px solid var(--pd-lime); margin: 28px 0; padding: 4px 0 4px 22px; color: var(--pd-muted); font-style: italic; }
.entry-content pre, .entry-content code {
  font-family: 'JetBrains Mono', monospace; background: var(--pd-panel); border: 1px solid var(--pd-border);
  border-radius: 8px; font-size: 14px;
}
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 16px 18px; overflow-x: auto; margin: 0 0 24px; }
.entry-content pre code { border: none; padding: 0; background: none; }
.entry-content ul, .entry-content ol { padding-left: 0; list-style: none; margin: 0 0 20px; }
.entry-content ul li { padding-left: 22px; position: relative; margin-bottom: 10px; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--pd-lime); border-radius: 50%; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 32px; border: 1px solid var(--pd-border); border-radius: 8px; overflow: hidden; }
.entry-content th { text-align: left; padding: 10px 16px; background: var(--pd-panel); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pd-muted); }
.entry-content td { padding: 12px 16px; border-top: 1px solid var(--pd-border); color: var(--pd-muted); }

/* author bio card */
.pd-author-card { display: flex; gap: 16px; background: var(--pd-panel); border: 1px solid var(--pd-border); border-radius: 12px; padding: 22px; margin: 40px 0; }
.pd-author-card .pd-avatar-lg { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.pd-author-card .pd-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.pd-author-card .name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.pd-author-card .role { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--pd-lime); margin-bottom: 8px; }
.pd-author-card .bio { font-size: 13.5px; color: var(--pd-muted); line-height: 1.6; margin: 0; }

/* ad slots */
.pd-ad-slot { margin: 0 0 36px; padding: 26px 20px; border: 1px dashed var(--pd-border); background: var(--pd-panel); border-radius: 10px; text-align: center; }
.pd-ad-slot .label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pd-muted-2); margin-bottom: 6px; }
.pd-ad-slot .slot { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--pd-muted); }

/* related */
.pd-related { max-width: 1000px; margin: 0 auto; padding: 0 32px 60px; }
.pd-related h2 { font-size: 20px; font-weight: 700; margin: 0 0 22px; }
.pd-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pd-related-grid .pd-card-media { aspect-ratio: 4/3; margin-bottom: 12px; }
.pd-related-grid h3 { font-size: 15px; line-height: 1.35; font-weight: 700; margin: 0; }

/* page template */
.pd-page { max-width: 760px; margin: 0 auto; padding: 44px 32px 80px; }
.pd-page h1 { font-size: 34px; font-weight: 700; margin: 0 0 22px; color: #fff; }

/* archive / search */
.pd-archive { max-width: 1240px; margin: 0 auto; padding: 44px 32px 60px; }
.pd-archive-head { margin-bottom: 32px; }
.pd-archive-head h1 { font-size: 30px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.pd-archive-head p { color: var(--pd-muted); font-size: 14px; margin: 0; }
.pd-pagination { display: flex; justify-content: center; gap: 20px; margin-top: 48px; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.pd-pagination a { color: var(--pd-lime); font-weight: 600; }

/* 404 */
.pd-404 { max-width: 640px; margin: 0 auto; padding: 90px 32px 100px; text-align: center; }
.pd-404 .code { font-family: 'JetBrains Mono', monospace; font-size: 88px; font-weight: 700; color: var(--pd-lime); line-height: 1; margin: 0 0 14px; }
.pd-404 h1 { font-size: 24px; font-weight: 700; margin: 0 0 12px; color: #fff; }
.pd-404 p { color: var(--pd-muted); font-size: 15px; margin: 0 0 26px; }
.pd-404 form { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.pd-404 input[type="search"] { width: 280px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--pd-border); background: var(--pd-panel); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 14px; }
.pd-404 button { padding: 12px 22px; border-radius: 8px; border: none; background: var(--pd-lime); color: #14151A; font-weight: 700; font-size: 13px; cursor: pointer; }
.pd-404 .home-link { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--pd-lime); }

/* responsive */
@media (max-width: 980px) {
  .pd-hero { grid-template-columns: 1fr; }
  .pd-hero-main { grid-template-columns: 1fr; }
  .pd-grid, .pd-related-grid, .pd-archive-grid { grid-template-columns: 1fr; }
  .pd-nav { display: none; }
  .pd-footer { flex-direction: column; }
}
