/* ============================================================
   Paul Investment — Blog styles (blog.html + article pages)
   ============================================================ */

/* ── Shared: tag chip ── */
.blog-tag {
  font-family: var(--ff-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  padding: .2rem .55rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  display: inline-block;
}
.blog-cat-badge {
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  padding: .45rem 1.1rem;
  border-radius: var(--r-sm);
  position: relative;
  z-index: 1;
}

/* ── Blog listing: hero ── */
.blog-hero {
  padding: 7rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--b0);
}
.blog-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(192,155,58,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,155,58,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.blog-hero-glow {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 450px;
  background: radial-gradient(ellipse at top, rgba(192,155,58,.09) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 1; max-width: 680px; }
.blog-hero-inner h1 {
  font-size: clamp(2.25rem,6vw,3.75rem);
  color: var(--t0); margin: .75rem 0 1rem; line-height: 1.1;
}
.blog-hero-inner > p {
  font-size: 1.0625rem; color: var(--t2); line-height: 1.75;
  max-width: 520px; margin-bottom: 2rem;
}
.blog-hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.blog-hero-stats span {
  font-family: var(--ff-mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--t3);
}

/* ── Filter buttons ── */
.blog-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; background: transparent;
  border: 1px solid var(--b0); color: var(--t2);
  padding: .45rem 1.1rem; border-radius: var(--r-sm);
  cursor: pointer; transition: color var(--base), border-color var(--base), background var(--base);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--gold); border-color: var(--gold-border); background: var(--gold-dim);
}

/* ── Featured post ── */
.blog-featured { margin-bottom: 2.5rem; }
.blog-featured-link {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--b0); border-radius: var(--r-xl);
  overflow: hidden; text-decoration: none; background: var(--bg-1);
  transition: border-color var(--base);
}
.blog-featured-link:hover { border-color: var(--gold-border); }
.blog-featured-img {
  min-height: 320px;
  background: linear-gradient(150deg, var(--bg-2) 0%, rgba(192,155,58,.1) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-featured-img::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(192,155,58,.14) 0%, transparent 65%);
}
.blog-featured-content {
  padding: 2.75rem; display: flex; flex-direction: column; justify-content: center;
}
.blog-featured-meta {
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}
.blog-featured-meta time, .blog-featured-meta .read-time {
  font-family: var(--ff-mono); font-size: .62rem; color: var(--t3); letter-spacing: .05em;
}
.blog-featured-title {
  font-size: 1.625rem; font-weight: 700; color: var(--t0);
  line-height: 1.25; margin-bottom: 1rem;
}
.blog-featured-excerpt {
  font-size: .9375rem; color: var(--t2); line-height: 1.75; margin-bottom: 1.5rem; flex: 1;
}
.blog-featured-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.blog-featured-cta {
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: .5rem;
}
.blog-featured-cta svg { transition: transform var(--base); }
.blog-featured-link:hover .blog-featured-cta svg { transform: translateX(4px); }

/* ── Card grid ── */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.blog-card {
  background: var(--bg-1); border: 1px solid var(--b0);
  border-radius: var(--r-xl); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  position: relative;
  transition: border-color var(--base), transform var(--base), box-shadow var(--base);
}
.blog-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity var(--base);
}
.blog-card:hover { border-color: var(--gold-border); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.blog-card:hover::before { opacity: 1; }
.blog-card-img {
  min-height: 130px;
  background: linear-gradient(150deg, var(--bg-2) 0%, rgba(192,155,58,.07) 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--b0); position: relative; overflow: hidden;
}
.blog-card-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(transparent, var(--bg-1));
}
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.blog-card-meta time { font-family: var(--ff-mono); font-size: .6rem; color: var(--t3); letter-spacing: .05em; }
.blog-card-title { font-size: 1rem; font-weight: 600; color: var(--t0); line-height: 1.4; }
.blog-card-excerpt { font-size: .875rem; color: var(--t2); line-height: 1.65; flex: 1; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .875rem; border-top: 1px solid var(--b0); margin-top: auto; }
.blog-card-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.blog-card-read { font-family: var(--ff-mono); font-size: .6rem; color: var(--t3); letter-spacing: .05em; white-space: nowrap; }
.blog-empty {
  text-align: center; padding: 5rem 0; color: var(--t3);
  font-family: var(--ff-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
}

/* ── Newsletter ── */
.blog-newsletter { background: var(--bg-1); border-top: 1px solid var(--b0); padding: 5rem 1.5rem; text-align: center; }
.blog-newsletter h3 { font-size: 1.625rem; color: var(--t0); margin-bottom: .75rem; }
.blog-newsletter p { color: var(--t2); font-size: .9375rem; line-height: 1.7; max-width: 420px; margin: 0 auto 1.75rem; }
.blog-notify { display: flex; gap: .75rem; max-width: 380px; margin: 0 auto; }
.blog-notify input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.04);
  border: 1px solid var(--b0); border-radius: var(--r-md);
  padding: .75rem 1rem; color: var(--t0); font-size: .9375rem;
  font-family: var(--ff-body); outline: none; transition: border-color var(--base);
}
.blog-notify input:focus { border-color: var(--gold-border); }

/* ── Article cover image ── */
.art-cover-wrap {
  width: 100%; max-height: 520px; overflow: hidden;
  background: var(--bg-2); margin: 0;
}
.art-cover {
  width: 100%; max-height: 520px; object-fit: cover;
  object-position: center; display: block;
}

/* ── Article page ── */
.art-hero {
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--b0);
  background: var(--bg-0);
}
.art-hero--has-cover { padding-top: 3rem; }
.art-breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 1.75rem;
}
.art-breadcrumb a { color: var(--t3); text-decoration: none; }
.art-breadcrumb a:hover { color: var(--gold); }
.art-meta {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.art-meta time { font-family: var(--ff-mono); font-size: .65rem; color: var(--t3); letter-spacing: .05em; }
.art-read { font-family: var(--ff-mono); font-size: .65rem; color: var(--t3); letter-spacing: .05em; }
.art-title {
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  font-weight: 700; color: var(--t0); line-height: 1.12;
  max-width: 820px; margin-bottom: 1.1rem;
}
.art-excerpt {
  font-size: 1.125rem; color: var(--t2); line-height: 1.8;
  max-width: 680px; margin-bottom: 2rem;
}
.art-byline {
  display: flex; align-items: center; gap: .875rem;
  margin-bottom: 1.5rem;
}
.art-byline-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: .68rem; font-weight: 700;
  color: var(--gold); flex-shrink: 0; letter-spacing: .05em;
}
.art-byline-name {
  font-size: .875rem; font-weight: 600; color: var(--t0); line-height: 1.3;
}
.art-byline-date {
  font-family: var(--ff-mono); font-size: .62rem; color: var(--t3); letter-spacing: .04em;
}
.art-tags { display: flex; gap: .4rem; flex-wrap: wrap; }

.art-layout {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 4rem;
  padding-top: 3.5rem;
  padding-bottom: 6rem;
  align-items: start;
}

/* Prose — airy */
.art-prose { color: var(--t1); font-size: 1.0625rem; line-height: 1.85; }
.art-prose h2 {
  font-size: 1.5625rem; font-weight: 700; color: var(--t0);
  margin: 3.25rem 0 1.125rem; line-height: 1.2;
  padding-top: 1rem; border-top: 1px solid var(--b0);
}
.art-prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.art-prose h3 {
  font-size: 1.1875rem; font-weight: 600; color: var(--t0);
  margin: 2.5rem 0 .875rem; line-height: 1.3;
}
.art-prose p { margin-bottom: 1.65rem; }
.art-prose ul, .art-prose ol {
  margin: 0 0 1.65rem 1.5rem; display: flex; flex-direction: column; gap: .55rem;
}
.art-prose li { line-height: 1.8; }
.art-prose strong { color: var(--t0); font-weight: 600; }
.art-prose em { font-style: italic; }
.art-prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.art-prose a:hover { opacity: .8; }
.art-prose blockquote {
  border-left: 3px solid var(--gold);
  margin: 2.5rem 0; padding: 1.25rem 1.75rem;
  background: var(--bg-1); border-radius: 0 var(--r-xl) var(--r-xl) 0;
  color: var(--t1); font-style: italic; font-size: 1.125rem; line-height: 1.75;
}
.art-prose pre {
  background: var(--bg-2); border: 1px solid var(--b0); border-radius: var(--r-xl);
  padding: 1.5rem; overflow-x: auto; margin-bottom: 1.65rem;
}
.art-prose code { font-family: var(--ff-mono); font-size: .875rem; color: var(--gold); }
.art-prose pre code { color: var(--t1); }
.art-prose img { max-width: 100%; border-radius: var(--r-xl); margin: 2.25rem 0; display: block; }

/* Sidebar */
.art-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1.25rem; }
.art-sidebar-card {
  background: var(--bg-1); border: 1px solid var(--b0);
  border-radius: var(--r-xl); padding: 1.5rem;
}
.art-sidebar-title {
  font-family: var(--ff-mono); font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--b0);
}
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.toc-item a {
  display: block; padding: .3rem .5rem; font-size: .8rem; color: var(--t2);
  text-decoration: none; border-radius: 4px; transition: color var(--base), background var(--base);
  line-height: 1.4;
}
.toc-item a:hover, .toc-item a.toc-active { color: var(--gold); background: var(--gold-dim); }
.toc-h3 a { padding-left: 1rem; font-size: .75rem; }
.art-sidebar-cta { text-align: center; }
.art-sidebar-cta-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; color: var(--gold);
}
.art-sidebar-cta p { font-size: .875rem; color: var(--t2); line-height: 1.65; margin-bottom: 1.25rem; }
.art-sidebar-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; padding: 1rem !important;
}
.art-sidebar-stat { text-align: center; }
.art-sidebar-stat-val {
  font-family: var(--ff-mono); font-size: 1.0625rem; font-weight: 700;
  color: var(--gold); letter-spacing: .02em; line-height: 1;
}
.art-sidebar-stat-lbl {
  font-size: .65rem; color: var(--t3); margin-top: .3rem; line-height: 1.3;
}

/* Related */
.art-related { padding-top: 0; }

/* ============================================================
   LIGHT MODE — blog.css overrides
   ============================================================ */

/* Blog hero stays dark navy (same as page-hero) */
[data-theme="light"] .blog-hero {
  background: #0F2442;
  border-bottom-color: rgba(184,145,31,.2);
  --t0: #F0F5FF;
  --t1: rgba(200,220,255,.78);
  --t2: rgba(200,220,255,.52);
  --t3: rgba(200,220,255,.35);
  --b0: rgba(200,220,255,.1);
}
[data-theme="light"] .blog-hero h1 { color: #F0F5FF; }
[data-theme="light"] .blog-hero p { color: rgba(200,220,255,.75); }
[data-theme="light"] .blog-hero-stats span { color: rgba(200,220,255,.42); }

/* Filters */
[data-theme="light"] .filter-btn { color: var(--t1); border-color: var(--b0); background: transparent; }
[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active { color: var(--gold); border-color: var(--gold-border); background: var(--gold-dim); }

/* Featured post */
[data-theme="light"] .blog-featured-link { background: #fff; border-color: rgba(10,22,40,.1); }
[data-theme="light"] .blog-featured-img { background: linear-gradient(150deg, #E2ECF8 0%, rgba(184,145,31,.08) 100%); }
[data-theme="light"] .blog-featured-title { color: var(--t0); }
[data-theme="light"] .blog-featured-excerpt { color: var(--t1); }
[data-theme="light"] .blog-featured-meta time,
[data-theme="light"] .blog-featured-meta .read-time { color: var(--t2); }

/* Cards */
[data-theme="light"] .blog-card { background: #fff; border-color: rgba(10,22,40,.08); }
[data-theme="light"] .blog-card:hover { border-color: var(--gold-border); box-shadow: 0 12px 40px rgba(10,22,40,.1); }
[data-theme="light"] .blog-card-img {
  background: linear-gradient(150deg, #E2ECF8 0%, rgba(184,145,31,.06) 100%);
  border-bottom-color: rgba(10,22,40,.07);
}
[data-theme="light"] .blog-card-img::after { background: linear-gradient(transparent, #fff); }
[data-theme="light"] .blog-card-title { color: var(--t0); }
[data-theme="light"] .blog-card-excerpt { color: var(--t1); }
[data-theme="light"] .blog-card-meta time { color: var(--t2); }
[data-theme="light"] .blog-card-footer { border-top-color: rgba(10,22,40,.07); }
[data-theme="light"] .blog-card-read { color: var(--t2); }

/* Newsletter */
[data-theme="light"] .blog-newsletter { background: #EEF3FF; border-top-color: rgba(10,22,40,.08); }
[data-theme="light"] .blog-newsletter h3 { color: var(--t0); }
[data-theme="light"] .blog-newsletter p { color: var(--t1); }
[data-theme="light"] .blog-notify input { background: #fff; border-color: rgba(10,22,40,.15); color: var(--t0); }
[data-theme="light"] .blog-notify input::placeholder { color: var(--t2); }

/* Article hero stays dark navy */
[data-theme="light"] .art-hero {
  background: #0F2442;
  border-bottom-color: rgba(184,145,31,.2);
  --t0: #F0F5FF;
  --t1: rgba(200,220,255,.78);
  --t2: rgba(200,220,255,.52);
  --t3: rgba(200,220,255,.35);
  --b0: rgba(200,220,255,.1);
}
[data-theme="light"] .art-hero .art-title { color: #F0F5FF; }
[data-theme="light"] .art-hero .art-excerpt { color: rgba(200,220,255,.75); }
[data-theme="light"] .art-breadcrumb,
[data-theme="light"] .art-breadcrumb a { color: rgba(200,220,255,.42); }
[data-theme="light"] .art-breadcrumb a:hover { color: var(--gold-bright); }
[data-theme="light"] .art-meta time,
[data-theme="light"] .art-read { color: rgba(200,220,255,.42); }
[data-theme="light"] .art-byline-name { color: #F0F5FF; }
[data-theme="light"] .art-byline-date { color: rgba(200,220,255,.42); }
[data-theme="light"] .art-sidebar-stats { background: #fff; border-color: rgba(10,22,40,.08); }
[data-theme="light"] .art-sidebar-stat-lbl { color: var(--t2); }

/* Article prose */
[data-theme="light"] .art-prose { color: var(--t1); }
[data-theme="light"] .art-prose h2,
[data-theme="light"] .art-prose h3 { color: var(--t0); }
[data-theme="light"] .art-prose strong { color: var(--t0); }
[data-theme="light"] .art-prose a { color: var(--gold); }
[data-theme="light"] .art-prose blockquote { background: #EEF3FF; border-left-color: var(--gold); color: var(--t1); }
[data-theme="light"] .art-prose pre { background: #E2ECF8; border-color: rgba(10,22,40,.1); }
[data-theme="light"] .art-prose code { color: var(--gold); }
[data-theme="light"] .art-prose pre code { color: var(--t1); }

/* Article sidebar */
[data-theme="light"] .art-sidebar-card { background: #fff; border-color: rgba(10,22,40,.08); }
[data-theme="light"] .art-sidebar-title { color: var(--t2); border-bottom-color: rgba(10,22,40,.08); }
[data-theme="light"] .toc-item a { color: var(--t1); }
[data-theme="light"] .toc-item a:hover,
[data-theme="light"] .toc-item a.toc-active { color: var(--gold); background: var(--gold-dim); }
[data-theme="light"] .art-sidebar-cta p { color: var(--t1); }

/* Article inline CTA */
[data-theme="light"] .art-cta-inline { background: #EEF3FF; border-color: rgba(10,22,40,.08); }
[data-theme="light"] .art-cta-inline p { color: var(--t1); }

/* Blog empty state */
[data-theme="light"] #blog-empty h2 { color: var(--t0); }
[data-theme="light"] #blog-empty p { color: var(--t1); }
[data-theme="light"] #blog-empty input {
  background: #fff; border-color: rgba(10,22,40,.15); color: var(--t0);
}

/* Cat badge on light card images */
[data-theme="light"] .blog-cat-badge {
  color: var(--gold); border-color: var(--gold-border); background: var(--gold-dim);
}
[data-theme="light"] .art-prose blockquote { background: var(--bg-1); }

/* Responsive */
@media (max-width: 1024px) {
  .art-layout { grid-template-columns: 1fr 240px; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .blog-featured-link { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 180px; }
  .blog-featured-content { padding: 1.75rem; }
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { position: static; }
}
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 5rem 1.5rem 3rem; }
  .blog-hero-stats { gap: 1.5rem; }
  .art-hero { padding: 5rem 1.5rem 2.5rem; }
}
