/* ═══════════════════════════════════════════
   BLOG PAGE STYLES
═══════════════════════════════════════════ */

.blog-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ─────────────── BLOG HERO ─────────────── */
.blog-hero {
  padding: 10rem 3rem 5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin: .8rem 0 1.2rem;
  opacity: 0;
  animation: fu .9s .3s forwards;
}

.blog-hero h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  background: linear-gradient(135deg, var(--a1) 0%, var(--a2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-sub {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fu .9s .5s forwards;
}

.medium-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.8rem;
  border: 1px solid rgba(124,108,255,.4);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .08em;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  transition: border-color .3s, background .3s, box-shadow .3s, transform .25s;
  cursor: none;
  opacity: 0;
  animation: fu .9s .7s forwards;
}

.medium-profile-btn:hover {
  border-color: var(--a1);
  background: rgba(124,108,255,.08);
  box-shadow: 0 0 30px rgba(124,108,255,.2);
  transform: translateY(-2px);
}

/* ─────────────── BLOG GRID ─────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 3rem;
}

/* ─────────────── BLOG CARD ─────────────── */
.blog-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s, transform .7s, background .3s, border-color .3s, box-shadow .3s;
}

.blog-card.vis {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  background: var(--surface2);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  transform: translateY(-6px) !important;
}

/* Coloured top accent bar */
.blog-card-accent {
  height: 3px;
  width: 100%;
}

.blog-card-accent--purple {
  background: linear-gradient(90deg, var(--a1), var(--a2));
}

.blog-card-accent--pink {
  background: linear-gradient(90deg, var(--a2), var(--a4));
}

.blog-card:hover .blog-card-accent--purple {
  box-shadow: 0 0 20px rgba(124,108,255,.6);
}

.blog-card:hover .blog-card-accent--pink {
  box-shadow: 0 0 20px rgba(255,107,157,.6);
}

.blog-card-inner {
  padding: 2rem 2.2rem 2rem;
}

/* ─────────────── META ROW ─────────────── */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .85rem;
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-tag--purple {
  background: rgba(124,108,255,.15);
  color: var(--a1);
  border: 1px solid rgba(124,108,255,.3);
}

.blog-tag--pink {
  background: rgba(255,107,157,.12);
  color: var(--a2);
  border: 1px solid rgba(255,107,157,.3);
}

.blog-read-time {
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* ─────────────── TITLE & EXCERPT ─────────────── */
.blog-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 1rem;
}

.blog-excerpt {
  font-size: .88rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 2rem;
}

.blog-excerpt code {
  font-family: 'DM Mono', monospace;
  color: var(--a3);
  background: rgba(0,229,176,.08);
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .84em;
}

/* ─────────────── CARD FOOTER ─────────────── */
.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.3rem;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--muted);
}

.blog-author-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a1);
  flex-shrink: 0;
}

.blog-author-dot--pink {
  background: var(--a2);
}

/* ─────────────── READ BUTTON ─────────────── */
.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.3rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .05em;
  transition: transform .25s, box-shadow .25s;
  cursor: none;
  white-space: nowrap;
}

.blog-read-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(124,108,255,.4);
}

.blog-read-btn--pink {
  background: linear-gradient(135deg, var(--a2), var(--a4));
}

.blog-read-btn--pink:hover {
  box-shadow: 0 8px 30px rgba(255,107,157,.4);
}

/* ─────────────── CTA BANNER ─────────────── */
.blog-cta-banner {
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 2.5rem 3rem;
  background: var(--surface);
  border: 1px solid rgba(124,108,255,.25);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.blog-cta-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.blog-cta-banner > div {
  flex: 1;
}

.blog-cta-banner h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
}

.blog-cta-banner p {
  font-size: .85rem;
  color: var(--muted);
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 768px) {
  .blog-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .blog-cta-banner {
    margin: 0 1.5rem 4rem;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .blog-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
