/* ============================================================
   PPF Blog Theme — mirrors profitpathfunding.com design system
   ============================================================ */

:root {
  --navy:   #0B1829;
  --navy2:  #0f2035;
  --gold:   #C9A84C;
  --gold2:  #e8c96a;
  --cream:  #F5F0E8;
  --white:  #FFFFFF;
  --text:   #1a2b3c;
  --muted:  #6b7f92;
  --radius: 6px;
  --ff-head: 'Bebas Neue', sans-serif;
  --ff-serif: 'DM Serif Display', serif;
  --ff-body: 'DM Sans', sans-serif;
  --max-content: 780px;
  --max-wide: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); color: var(--text); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── NAV ──────────────────────────────────────────────────── */
.ppf-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,24,41,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.ppf-nav-logo { display: flex; align-items: center; gap: 10px; }
.ppf-nav-logo img { height: 38px; width: auto; }
.ppf-nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.ppf-nav-links > li > a {
  color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.ppf-nav-links > li > a:hover { color: var(--gold2); background: rgba(201,168,76,0.08); }
.ppf-nav-cta {
  background: var(--gold); color: var(--navy) !important; font-weight: 600 !important;
  padding: 9px 20px !important; border-radius: var(--radius) !important;
  font-size: 13.5px !important; transition: background .2s, transform .15s !important;
}
.ppf-nav-cta:hover { background: var(--gold2) !important; transform: translateY(-1px); }
.ppf-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.ppf-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
.ppf-mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--navy2); border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 16px 24px 24px; z-index: 999;
}
.ppf-mobile-menu.open { display: block; }
.ppf-mobile-menu a {
  display: block; color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); transition: color .2s;
}
.ppf-mobile-menu a:hover { color: var(--gold2); }
.ppf-mobile-menu .ppf-mobile-cta {
  display: block; margin-top: 16px; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 15px; text-align: center; padding: 14px;
  border-radius: var(--radius); border-bottom: none;
}
@media (max-width: 768px) {
  .ppf-nav-links { display: none; }
  .ppf-hamburger { display: flex; }
}

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
.ppf-page { padding-top: 68px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ── BLOG INDEX HERO ──────────────────────────────────────── */
.ppf-blog-hero {
  background: var(--navy); padding: 72px 24px 60px; text-align: center; position: relative; overflow: hidden;
}
.ppf-blog-hero::before {
  content: '';  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.ppf-blog-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.ppf-blog-hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.ppf-blog-hero-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.ppf-blog-hero h1 {
  font-family: var(--ff-head); font-size: clamp(42px, 7vw, 80px);
  color: var(--white); line-height: .95; margin-bottom: 16px;
}
.ppf-blog-hero h1 span { color: var(--gold); }
.ppf-blog-hero p {
  font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.65;
  font-family: var(--ff-serif); font-style: italic;
}

/* ── POST CARD GRID ───────────────────────────────────────── */
.ppf-posts-section { background: var(--white); padding: 64px 24px 80px; }
.ppf-posts-container { max-width: var(--max-wide); margin: 0 auto; }
.ppf-posts-header { margin-bottom: 40px; }
.ppf-posts-header h2 {
  font-family: var(--ff-head); font-size: clamp(28px, 4vw, 40px);
  color: var(--navy); margin-bottom: 4px;
}
.ppf-posts-header p { font-size: 15px; color: var(--muted); }
.ppf-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ppf-post-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px; overflow: hidden; position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.ppf-post-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.ppf-post-card:hover::before { transform: scaleX(1); }
.ppf-post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.1); border-color: rgba(201,168,76,0.2); }
.ppf-post-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.ppf-post-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ppf-post-card-date { font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.ppf-post-card-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); background: rgba(201,168,76,0.1); padding: 3px 10px; border-radius: 100px;
}
.ppf-post-card-title {
  font-family: var(--ff-head); font-size: 22px; color: var(--navy);
  line-height: 1.1; margin-bottom: 10px; transition: color .2s;
}
.ppf-post-card:hover .ppf-post-card-title { color: var(--gold); }
.ppf-post-card-desc { font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 20px; }
.ppf-post-card-link {
  font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .04em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s; margin-top: auto;
}
.ppf-post-card:hover .ppf-post-card-link { gap: 10px; }

/* ── PAGINATION ───────────────────────────────────────────── */
.ppf-pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 32px 24px 64px; max-width: var(--max-wide); margin: 0 auto;
}
.ppf-pagination a, .ppf-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; transition: background .2s, color .2s;
  border: 1px solid rgba(0,0,0,0.1);
}
.ppf-pagination a { color: var(--text); }
.ppf-pagination a:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); color: var(--gold); }
.ppf-pagination .active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── POST HERO ────────────────────────────────────────────── */
.ppf-post-hero {
  background: var(--navy); padding: 90px 24px 60px; text-align: center;
  position: relative; overflow: hidden;
}
.ppf-post-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.ppf-post-hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.ppf-post-hero-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.ppf-post-hero-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.25);
  padding: 4px 14px; border-radius: 100px;
}
.ppf-post-hero h1 {
  font-family: var(--ff-head); font-size: clamp(34px, 6vw, 64px);
  color: var(--white); line-height: 1.0; margin-bottom: 20px;
}
.ppf-post-hero-meta { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.ppf-post-hero-meta span { font-size: 13px; color: rgba(255,255,255,0.45); }
.ppf-post-hero-meta span strong { color: rgba(255,255,255,0.75); font-weight: 500; }

/* ── SINGLE POST LAYOUT ───────────────────────────────────── */
.ppf-post-layout {
  max-width: 1060px; margin: 0 auto; padding: 56px 24px 80px;
  display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start;
}

/* TOC sidebar */
.ppf-toc-sidebar {
  position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto;
}
.ppf-toc-sidebar::-webkit-scrollbar { width: 3px; }
.ppf-toc-sidebar::-webkit-scrollbar-track { background: transparent; }
.ppf-toc-sidebar::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
.ppf-toc-label {
  font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.ppf-toc-sidebar nav#TableOfContents ul {
  list-style: none; padding: 0; border-left: 2px solid rgba(201,168,76,0.2);
}
.ppf-toc-sidebar nav#TableOfContents ul ul { padding-left: 12px; }
.ppf-toc-sidebar nav#TableOfContents li { margin-bottom: 0; }
.ppf-toc-sidebar nav#TableOfContents a {
  display: block; font-size: 13px; color: var(--muted); padding: 5px 0 5px 14px;
  border-left: 2px solid transparent; margin-left: -2px;
  transition: color .2s, border-color .2s; line-height: 1.4;
}
.ppf-toc-sidebar nav#TableOfContents a:hover { color: var(--gold); border-left-color: var(--gold); }

/* Article body */
.ppf-post-body { min-width: 0; }
.ppf-post-content { font-size: 17px; line-height: 1.8; color: var(--text); }
.ppf-post-content h2 {
  font-family: var(--ff-head); font-size: clamp(26px, 3.5vw, 38px);
  color: var(--navy); margin: 48px 0 16px; line-height: 1.05;
}
.ppf-post-content h3 {
  font-family: var(--ff-head); font-size: clamp(20px, 2.5vw, 28px);
  color: var(--navy); margin: 36px 0 12px; line-height: 1.1;
}
.ppf-post-content p { margin-bottom: 24px; }
.ppf-post-content ul, .ppf-post-content ol {
  padding-left: 28px; margin-bottom: 24px;
}
.ppf-post-content li { margin-bottom: 8px; }
.ppf-post-content strong { font-weight: 600; color: var(--navy); }
.ppf-post-content a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(201,168,76,0.4); }
.ppf-post-content a:hover { color: var(--gold2); }
.ppf-post-content blockquote {
  border-left: 3px solid var(--gold); margin: 32px 0; padding: 16px 24px;
  background: rgba(201,168,76,0.05); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--ff-serif); font-style: italic; font-size: 18px; color: var(--navy);
}
.ppf-post-content hr { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 40px 0; }
.ppf-post-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 15px; }
.ppf-post-content th { background: var(--navy); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 600; }
.ppf-post-content td { padding: 10px 14px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.ppf-post-content tr:nth-child(even) td { background: var(--cream); }
.ppf-post-content code {
  font-family: 'Courier New', monospace; font-size: 14px;
  background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 3px; color: var(--navy);
}
.ppf-post-content pre {
  background: var(--navy); color: var(--cream); padding: 20px 24px;
  border-radius: var(--radius); overflow-x: auto; margin-bottom: 24px;
}
.ppf-post-content pre code { background: none; color: inherit; padding: 0; }

/* TOC above content on mobile */
.ppf-toc-mobile { display: none; margin-bottom: 36px; }
.ppf-toc-mobile details summary {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); cursor: pointer; user-select: none; list-style: none;
  display: flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.2);
  padding: 12px 16px; border-radius: var(--radius);
}
.ppf-toc-mobile details summary::after { content: '▾'; margin-left: auto; }
.ppf-toc-mobile details[open] summary::after { content: '▴'; }
.ppf-toc-mobile nav#TableOfContents {
  border: 1px solid rgba(0,0,0,0.07); border-top: none;
  padding: 12px 16px 16px; border-radius: 0 0 var(--radius) var(--radius);
}
.ppf-toc-mobile nav#TableOfContents ul { list-style: none; padding: 0; }
.ppf-toc-mobile nav#TableOfContents ul ul { padding-left: 14px; }
.ppf-toc-mobile nav#TableOfContents a {
  display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; transition: color .2s;
}
.ppf-toc-mobile nav#TableOfContents a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .ppf-post-layout { grid-template-columns: 1fr; gap: 0; }
  .ppf-toc-sidebar { display: none; }
  .ppf-toc-mobile { display: block; }
}

/* ── POST CTA ─────────────────────────────────────────────── */
.ppf-post-cta {
  background: var(--navy); border-radius: 12px; padding: 44px 40px; text-align: center;
  margin: 56px 0 0; position: relative; overflow: hidden;
}
.ppf-post-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 120%, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.ppf-post-cta-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.ppf-post-cta h3 {
  font-family: var(--ff-head); font-size: clamp(28px, 4vw, 48px);
  color: var(--white); line-height: 1; margin-bottom: 12px;
}
.ppf-post-cta h3 span { color: var(--gold); }
.ppf-post-cta p {
  font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 28px; line-height: 1.6;
}
.ppf-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy); font-family: var(--ff-body);
  font-weight: 700; font-size: 16px; padding: 16px 36px;
  border-radius: var(--radius); transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .02em;
}
.ppf-btn-primary:hover {
  background: var(--gold2); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,168,76,0.35);
}
.ppf-post-cta-micro {
  margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: .03em;
}

/* ── POST TAGS ────────────────────────────────────────────── */
.ppf-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(0,0,0,0.07); }
.ppf-post-tags a {
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); background: var(--cream); padding: 5px 12px;
  border-radius: 100px; border: 1px solid rgba(0,0,0,0.08); transition: color .2s, border-color .2s;
}
.ppf-post-tags a:hover { color: var(--gold); border-color: rgba(201,168,76,0.4); }

/* ── POST NAV ─────────────────────────────────────────────── */
.ppf-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 1060px; margin: 0 auto; padding: 0 24px 64px;
}
.ppf-post-nav-item {
  background: var(--cream); border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius); padding: 20px 24px; transition: border-color .2s, box-shadow .2s;
}
.ppf-post-nav-item:hover { border-color: rgba(201,168,76,0.3); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.ppf-post-nav-item.next { text-align: right; }
.ppf-post-nav-dir { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ppf-post-nav-title { font-family: var(--ff-head); font-size: 18px; color: var(--navy); line-height: 1.15; }
@media (max-width: 640px) { .ppf-post-nav { grid-template-columns: 1fr; } }

/* ── LIST PAGE (categories / tags) ───────────────────────── */
.ppf-list-hero { background: var(--navy2); padding: 90px 24px 52px; text-align: center; }
.ppf-list-hero-label { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.ppf-list-hero h1 { font-family: var(--ff-head); font-size: clamp(36px, 6vw, 64px); color: var(--white); line-height: 1; }
.ppf-list-section { padding: 56px 24px 80px; }
.ppf-list-container { max-width: var(--max-wide); margin: 0 auto; }

/* ── TAXONOMY LIST ────────────────────────────────────────── */
.ppf-taxonomy-grid { display: flex; flex-wrap: wrap; gap: 12px; padding: 56px 24px 80px; max-width: var(--max-wide); margin: 0 auto; }
.ppf-taxonomy-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border: 1px solid rgba(0,0,0,0.08); border-radius: 100px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--text);
  transition: border-color .2s, color .2s, background .2s;
}
.ppf-taxonomy-tag:hover { border-color: rgba(201,168,76,0.4); color: var(--gold); background: rgba(201,168,76,0.06); }
.ppf-taxonomy-count { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ── FOOTER ───────────────────────────────────────────────── */
.ppf-footer { background: #070f1a; padding: 40px 24px 28px; border-top: 1px solid rgba(201,168,76,0.1); }
.ppf-footer-inner { max-width: var(--max-wide); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ppf-footer-logo img { height: 32px; width: auto; opacity: .7; }
.ppf-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; list-style: none; }
.ppf-footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color .2s; }
.ppf-footer-links a:hover { color: var(--gold2); }
.ppf-footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); line-height: 1.6; max-width: 620px; }

/* ── 404 PAGE ─────────────────────────────────────────────── */
.ppf-404 { text-align: center; padding: 100px 24px; }
.ppf-404 h1 { font-family: var(--ff-head); font-size: 120px; color: var(--gold); line-height: 1; }
.ppf-404 p { font-size: 18px; color: var(--muted); margin: 16px 0 32px; }

/* ── UTILS ────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.ppf-anim { animation: fadeUp .6s ease both; }
.ppf-anim-d1 { animation-delay: .1s; }
.ppf-anim-d2 { animation-delay: .22s; }
