/* ═══════════════════════════════════════════════════════════
   THE TRADING DESK — Paldomz Systems Blog
   Shared stylesheet · matches paldomzsystems.com design system
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0d1526;
  --surface: #121d32;
  --surface2: #172138;
  --cyan: #00e5ff;
  --cyan-dim: #00e5ff22;
  --green: #00ff88;
  --green-dim: #00ff8818;
  --red: #ff3355;
  --red-dim: #ff335518;
  --yellow: #ffd000;
  --text: #e8f0fb;
  --muted: #5a6e90;
  --border: #1e2d4a;
  --border-bright: #00e5ff30;
  --glow: 0 0 30px #00e5ff22, 0 0 60px #00e5ff0a;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  font-family: 'Instrument Sans', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── NAV ── */
nav.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px 40px;
  background: #05081099;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; justify-self: center; }
.nav-links > a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--cyan); }
.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ── LAYOUT ── */
.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
main { padding-top: 90px; }

/* ── BLOG HERO (listing) ── */
.blog-hero {
  text-align: center;
  padding: 60px 24px 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 50px;
}
.blog-hero .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 14px;
}
.blog-hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ── ARTICLE CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-bright); box-shadow: var(--glow); }
.post-card .thumb {
  height: 170px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.post-card .thumb svg { width: 100%; height: 100%; display: block; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.post-card h2 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 21px;
  line-height: 1.25; color: #fff; margin-bottom: 10px;
}
.post-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.post-card .read {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cyan); margin-top: 16px;
}

/* ── ARTICLE PAGE ── */
article { padding-bottom: 40px; }
.article-head { text-align: center; padding: 20px 0 34px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.article-head .tag {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 16px;
}
.article-head h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.1; color: #fff; margin-bottom: 18px;
}
.article-head .meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.article-head .meta span { color: var(--cyan); }

article .lead { font-size: 20px; color: var(--text); margin-bottom: 28px; line-height: 1.6; }
article p { margin-bottom: 20px; font-size: 17px; color: #c9d6ea; }
article h2 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 28px; color: #fff;
  margin: 44px 0 16px; line-height: 1.2;
}
article h3 {
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 21px; color: var(--cyan);
  margin: 30px 0 12px;
}
article strong { color: #fff; font-weight: 600; }
article ul, article ol { margin: 0 0 22px 22px; }
article li { margin-bottom: 10px; font-size: 17px; color: #c9d6ea; }
article a.inline { color: var(--cyan); border-bottom: 1px solid var(--cyan-dim); }
article a.inline:hover { border-color: var(--cyan); }

/* ── FIGURE / DIAGRAM ── */
figure {
  margin: 32px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
figure svg { max-width: 100%; height: auto; }
figcaption {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted);
  letter-spacing: 0.5px; margin-top: 16px;
}

/* ── SIGNAL BADGES ── */
.badge {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 12px; letter-spacing: 1px; padding: 3px 10px; border-radius: 6px;
}
.badge.buy { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.badge.sell { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.badge.wait { background: #ffd00018; color: var(--yellow); border: 1px solid var(--yellow); }

/* ── CALLOUT ── */
.callout {
  background: linear-gradient(135deg, #0f1a30, #131f38);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--cyan);
  border-radius: 12px; padding: 22px 26px; margin: 30px 0;
}
.callout .label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 8px;
}
.callout p { margin: 0; font-size: 16px; color: var(--text); }

/* ── KEY TAKEAWAY BOX ── */
.takeaway { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; margin: 30px 0; }
.takeaway h3 { margin-top: 0; color: var(--yellow); }
.takeaway ul { margin-bottom: 0; }

/* ── CTA BLOCK ── */
.cta-block {
  margin: 50px 0 20px;
  background: linear-gradient(135deg, #0e1a33, #0d1730);
  border: 1px solid var(--border-bright);
  border-radius: 18px; padding: 38px 34px; text-align: center;
  box-shadow: var(--glow);
}
.cta-block .kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 12px;
}
.cta-block h3 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 26px; color: #fff; margin-bottom: 12px; }
.cta-block p { color: var(--muted); font-size: 16px; max-width: 460px; margin: 0 auto 22px; }
.cta-block video { width: 100%; max-width: 460px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 22px; display: block; margin-left: auto; margin-right: auto; }
.cta-btn {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--bg); background: var(--cyan); padding: 15px 30px; border-radius: 10px;
  transition: all 0.2s;
}
.cta-btn:hover { background: #fff; transform: translateY(-2px); }
.cta-block .sub { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ── AD SLOT (AdSense-ready) ── */
.ad-slot {
  margin: 40px auto; max-width: 728px; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: 10px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
}

/* ── RELATED / BACK ── */
.back-link {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 10px 0 30px;
}
.back-link:hover { color: var(--cyan); }
.related { border-top: 1px solid var(--border); padding-top: 34px; margin-top: 50px; }
.related h4 { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.related-list a {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--text); transition: border-color 0.2s, color 0.2s;
}
.related-list a:hover { border-color: var(--border-bright); color: var(--cyan); }

.disclaimer {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted); font-style: italic; line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 40px 30px;
  background: #0a1120;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: all 0.2s;
}
.footer-socials a:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-links h4 { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 1.5px; color: var(--text); margin-bottom: 16px; text-transform: uppercase; }
.footer-links a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px;
}
.footer-bottom p { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  nav.nav { padding: 12px 20px; gap: 12px; }
  .nav-links { display: none; }
  .nav-cta { font-size: 11px; padding: 8px 12px; }
  article p, article li { font-size: 16px; }
  article h2 { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
