/* ============================================================
   Allingo — Blog styles
   ============================================================ */

/* ---------- hero ---------- */
.blog-hero { padding: 64px 0 52px; position: relative; overflow: hidden; }
.blog-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(80% 60% at 78% 0%, rgba(37,99,235,.10), transparent 72%),
    radial-gradient(60% 50% at 5% 6%, rgba(91,139,255,.07), transparent 72%);
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.035em; line-height: 1.04; max-width: 16ch; }
.blog-hero .lead { margin-top: 18px; max-width: 56ch; }

/* ---------- featured ---------- */
.blog-featured { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: stretch; margin-top: 44px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.bf-media { position: relative; min-height: 340px; }
.bf-text { padding: 40px 40px 40px 8px; display: flex; flex-direction: column; justify-content: center; }
.bf-text .post-cat { margin-bottom: 16px; }
.bf-text h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; line-height: 1.1; margin-bottom: 14px; }
.bf-text p { font-size: 16px; color: var(--text-sec); line-height: 1.6; margin-bottom: 22px; max-width: 46ch; }

/* ---------- toolbar / filters ---------- */
.blog-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 56px 0 26px; }
.blog-toolbar h3 { font-size: 20px; letter-spacing: -.02em; margin-right: auto; }
.blog-filters { display: flex; gap: 9px; flex-wrap: wrap; }
.blog-chip { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-sec); background: var(--surface); border: 1px solid var(--border-strong); padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: .18s; }
.blog-chip:hover { border-color: #b9bfcc; }
.blog-chip.on { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- post grid ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; transition: .2s; text-decoration: none; color: inherit; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-strong); }
.post-card.hide { display: none; }
.post-thumb { position: relative; aspect-ratio: 16 / 10; }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-cat { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 6px; color: var(--accent); background: var(--accent-soft); }
.post-card h3 { font-size: 18px; letter-spacing: -.015em; line-height: 1.25; margin: 14px 0 9px; }
.post-card p { font-size: 14px; color: var(--text-mut); line-height: 1.55; margin-bottom: 18px; }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.post-meta .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #5b8bff); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.post-meta .mn { font-size: 12.5px; font-weight: 650; color: var(--text); line-height: 1.2; }
.post-meta .md { font-size: 11.5px; color: var(--text-mut); }
.post-meta .rt { margin-left: auto; font-size: 11.5px; font-family: var(--mono); color: var(--text-mut); }

/* ---------- thumbnail placeholders (soft brand tints + line icon) ---------- */
.thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb-ph svg { width: 46px; height: 46px; opacity: .9; }
.thumb-ph.has-cover { background: #0d1526; }
.thumb-ph.has-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb .thumb-ph.has-cover img { object-position: left center; }
.bf-media .thumb-ph.has-cover img { object-position: left center; }
.thumb-ph .tg { position: absolute; bottom: 12px; left: 14px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.tp-blue   { background: #eaf0fb; color: #2f5bb7; }
.tp-green  { background: #e9f3ec; color: #2f7d52; }
.tp-amber  { background: #f6efe4; color: #9a7636; }
.tp-violet { background: #efebf8; color: #5b4699; }
.tp-rose   { background: #f6ebec; color: #a25358; }
.tp-teal   { background: #e6f1f2; color: #2f7a82; }

.blog-more-wrap { display: flex; justify-content: center; margin-top: 32px; }

@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; }
  .bf-media { min-height: 220px; }
  .bf-text { padding: 28px; }
}
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
