/* =========================================================
   Astro Auto - Blog listing + single post styles
   Cards match the site's established dark liquid-glass card
   family (.veh-card / .pillar-card / .choice-card).
   ========================================================= */

/* ---------- Listing grid ---------- */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;padding-bottom:80px;}
@media (max-width:980px){ .blog-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:640px){ .blog-grid{grid-template-columns:1fr;} }

.blog-card{
  background:rgba(38,38,45,.5);
  backdrop-filter:blur(28px) saturate(220%);
  -webkit-backdrop-filter:blur(28px) saturate(220%);
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius-md);overflow:hidden;
  box-shadow:0 24px 50px -20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .2s ease, border-color .2s ease;
  display:flex;flex-direction:column;
}
.blog-card:hover{transform:translateY(-5px);border-color:rgba(255,255,255,.24);}
.blog-card-media{aspect-ratio:16/10;background:linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.02));position:relative;overflow:hidden;}
.blog-card-media img{width:100%;height:100%;object-fit:cover;}
.blog-card-media .blog-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(245,245,247,.35);}
.blog-card-media .blog-placeholder svg{width:52px;height:52px;opacity:.4;}
.blog-card-body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1;}
.blog-card-tags{display:flex;flex-wrap:wrap;gap:6px;}
.blog-tag{
  font-family:var(--ff-mono);font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;
  padding:4px 10px;border-radius:999px;background:rgba(227,28,44,.18);color:var(--red-2);
}
.blog-card-title{font-family:var(--ff-display);font-size:19px;font-weight:600;color:#f5f5f7;line-height:1.3;}
.blog-card-excerpt{font-size:13.5px;color:rgba(245,245,247,.68);line-height:1.6;flex:1;}
.blog-card-meta{font-family:var(--ff-mono);font-size:11.5px;color:rgba(245,245,247,.45);margin-top:4px;}
.blog-card-link{
  display:inline-flex;align-items:center;gap:7px;margin-top:auto;font-size:13px;font-weight:600;color:#f5f5f7;
  padding:9px 16px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);
  transition:border-color .25s ease, background .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  align-self:flex-start;
}
.blog-card:hover .blog-card-link{background:rgba(255,255,255,.16);border-color:var(--red-2);transform:translateX(3px);}
.blog-card-link svg{width:13px;height:13px;}

.blog-empty{grid-column:1/-1;text-align:center;padding:60px 20px;color:var(--white-faint);border:1px dashed var(--border);border-radius:var(--radius-md);}

/* ---------- Single post ---------- */
.blog-post-head{max-width:760px;padding-top:calc(var(--nav-h) + 48px);}
.blog-back{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--white-dim);margin-bottom:22px;}
.blog-back:hover{color:var(--red-2);}
.blog-post-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;}
.blog-post-tags .blog-tag{background:var(--red-soft);}
.blog-post-head h1{font-size:clamp(30px,4.4vw,46px);line-height:1.15;}
.blog-post-meta{font-family:var(--ff-mono);font-size:13px;color:var(--white-faint);margin-top:16px;}

.blog-post-cover{width:100%;max-height:480px;overflow:hidden;margin:40px 0;}
.blog-post-cover img{width:100%;height:100%;max-height:480px;object-fit:cover;display:block;}

.blog-post-body{max-width:760px;padding-bottom:60px;font-size:16.5px;line-height:1.8;color:var(--white-dim);}
.blog-post-body h2{font-size:26px;color:var(--white);margin:40px 0 14px;}
.blog-post-body h3{font-size:20px;color:var(--white);margin:32px 0 12px;}
.blog-post-body p{margin-bottom:20px;}
.blog-post-body ul{margin:0 0 20px 22px;}
.blog-post-body li{margin-bottom:8px;}
.blog-post-body a{color:var(--red-2);text-decoration:underline;text-underline-offset:2px;}
.blog-post-body strong{color:var(--white);font-weight:600;}

.blog-post-foot{max-width:760px;display:flex;gap:14px;flex-wrap:wrap;padding-bottom:70px;border-top:1px solid var(--border-soft);padding-top:32px;}

.blog-related{background:var(--black-3);padding:70px 0;}
.blog-related .section-head{margin-bottom:32px;}

@media (max-width:760px){
  .blog-post-head{padding-top:calc(var(--nav-h) + 26px);}
  .blog-post-cover{margin:28px 0;}
  .blog-post-body{font-size:15.5px;}
  .blog-post-body h2{font-size:22px;}
  .blog-post-body h3{font-size:18px;}
}
