/* ================================================================
   blog.css — extends style.css for Matthew Akintola's blog pages
   Assumes all CSS variables, nav, footer, container, btn-primary,
   btn-secondary, eyebrow, section-title, reveal/.visible are
   already defined in style.css
   ================================================================ */

/* ── NAV ACTIVE STATE ── */
.nav-links .nav-active {
  color: #fff !important;
  position: relative;
}
.nav-links .nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 2px;
}

/* ================================================================
   BLOG HERO
   ================================================================ */
.blog-hero {
  padding: 120px 0 64px;
  position: relative;
}
.blog-hero-inner {
  max-width: 680px;
}
.blog-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: #c25106;
  margin: 16px 0 20px;
  letter-spacing: -.02em;
}
.blog-hero-title em {
  font-style: italic;
  color: #010710;
}
.blog-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: rgba(0, 5, 16, 0.6);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

/* Filter row */
.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 40px;
  background: transparent;
  border: 1px solid rgba(99,132,210,.25);
  color: rgba(0, 1, 5, 0.55);
  cursor: pointer;
  transition: all .18s;
}
.filter-btn:hover {
  border-color: #c25106;
  color: #000614;
}
.filter-btn.active {
  background: rgba(59,130,246,.15);
  border-color: #01245c;
  color: #c25106;
}

/* ================================================================
   FEATURED POST
   ================================================================ */
.blog-featured {
  padding-bottom: 0;
}
.featured-post {
  position: relative;
  background: linear-gradient(135deg, rgba(30,45,80,.9) 0%, rgba(15,25,50,.95) 100%);
  border: 1px solid rgba(99,132,210,.22);
  border-radius: 16px;
  padding: 48px 52px;
  overflow: hidden;
}
.featured-post::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
}
.featured-inner { position: relative; max-width: 680px; }

.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.featured-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  color: #02164d;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.featured-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #c25106;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}
.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.featured-badge {
  position: absolute;
  top: 28px; right: 28px;
  background: rgba(59,130,246,.18);
  border: 1px solid rgba(59,130,246,.35);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c25106;
}

/* ================================================================
   POST META BADGES
   ================================================================ */
.post-cat {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.post-cat--product    { background: rgba(59,130,246,.15);  color: #01070e; }
.post-cat--fintech    { background: rgba(20,184,166,.15);  color: #c25106; }
.post-cat--operations { background: rgba(245,158,11,.15);  color: #1b015e; }
.post-cat--leadership { background: rgba(168,85,247,.15);  color: #010c6a; }

.post-date, .post-read {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(1, 8, 26, 0.4);
}

/* ================================================================
   BLOG GRID
   ================================================================ */
.blog-grid-section { padding: 80px 0 60px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.post-card {
  background: rgba(16,24,48,.7);
  border: 1px solid rgba(99,132,210,.18);
  border-radius: 14px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.post-card:hover {
  border-color: #c25106;
  transform: translateY(-3px);
}
.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.post-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #011346;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}
.post-card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(1, 8, 26, 0.55);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.post-read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c25106;
  text-decoration: none;
  transition: gap .15s;
}
.post-read-link:hover { gap: 8px; }

.blog-empty {
  text-align: center;
  padding: 60px 0;
  color: #c25106;
  font-family: 'DM Sans', sans-serif;
}

/* ================================================================
   SUBSCRIBE
   ================================================================ */
.blog-subscribe {
  padding: 80px 0;
  border-top: 1px solid rgba(99,132,210,.12);
}
.subscribe-inner {
  max-width: 520px;
}
.subscribe-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #021343;
  margin: 12px 0 8px;
}
.subscribe-inner p {
  font-family: 'DM Sans', sans-serif;
  color: rgba(1, 8, 26, 0.55);
  font-size: .95rem;
  margin-bottom: 24px;
}
.subscribe-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: rgba(20,30,60,.8);
  border: 1px solid rgba(99,132,210,.25);
  border-radius: 8px;
  color: #010718;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .18s;
}
.subscribe-form input:focus { border-color: #c25106; }
.sub-note {
  margin-top: 10px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
}

/* ================================================================
   POST PAGE
   ================================================================ */
.post-page { padding: 100px 0 80px; }
.post-page-inner { max-width: 720px; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c25106;
  text-decoration: none;
  margin-bottom: 48px;
  transition: color .18s;
}
.post-back:hover { color: #020d1a; }

.post-header { margin-bottom: 40px; }
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.post-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: #c25106;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.post-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: rgba(1, 8, 26, 0.65);
  line-height: 1.7;
  border-left: 3px solid #c25106;
  padding-left: 20px;
}

.post-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(0, 5, 17, 0.8);
  margin-bottom: 40px;
}
.post-body p { margin-bottom: 20px; }
.post-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #000c2d;
  margin: 36px 0 12px;
}
.post-body strong { color: #011447; }
.post-body ul {
  padding-left: 22px;
  margin-bottom: 20px;
}
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 3px solid #c25106;
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(59,130,246,.06);
  border-radius: 0 8px 8px 0;
  color: #c25106;
  font-style: italic;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(99,132,210,.15);
}
.post-tag {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(99,132,210,.1);
  border: 1px solid rgba(99,132,210,.2);
  color: #c25106;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(0, 2, 7, 0.45);
}
.post-share a {
  color: #c25106;
  text-decoration: none;
  font-weight: 500;
}
.post-share a:hover { text-decoration: underline; }

.post-loading, .post-not-found {
  text-align: center;
  padding: 80px 0;
  color: rgba(0, 2, 7, 0.45);
  font-family: 'DM Sans', sans-serif;
}
.post-not-found h2 { color: #011346; font-family: 'Syne', sans-serif; margin-bottom: 12px; }

/* ================================================================
   REVEAL ANIMATION (matches main site)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .blog-hero { padding: 96px 0 48px; }
  .featured-post { padding: 32px 28px; }
  .featured-badge { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .post-page { padding: 80px 0 60px; }
}
