/* Layout główny listy */
.blog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}
.blog-search {
  display: flex; gap: 8px; align-items: center;
  flex: 1 1 360px; min-width: 240px;
}
.blog-search input{
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
}
.blog-search button{
  padding: 8px 12px;
  border: 1px solid #ed6b84;
  background: #ed6b84;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}

.blog-cats { display:flex; flex-wrap:wrap; gap:8px; }
.chip {
  display:inline-flex; align-items:center; padding:6px 12px;
  border-radius:999px; border:1px solid #e9e9e9; background:#fff; color:#222;
  font-weight:600; font-size:13px; text-decoration:none;
}
.chip.active, .chip:hover { border-color:#ed6b84; color:#ed6b84; }

/* Karty postów (grid) */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
}
.post-card{
  border:1px solid #eee; border-radius:12px; overflow:hidden; background:#fff;
  box-shadow:0 3px 10px rgba(0,0,0,.06);
  display:flex; flex-direction:column;
}
.post-thumb img, .post-thumb .thumb-placeholder{
  width:100%; height:200px; object-fit:cover; display:block; background:#fafafa;
}
.thumb-placeholder { display:flex; align-items:center; justify-content:center; font-weight:700; color:#999; }
.post-content{ padding:14px 14px 16px; display:flex; flex-direction:column; gap:10px; }
.post-meta{ display:flex; align-items:center; gap:8px; color:#777; font-size:12px; }
.bullet{ color:#ccc; }
.post-title{ font-size:16px; font-weight:700; line-height:1.35; margin:0; }
.post-title a{ color:#222; text-decoration:none; }
.post-title a:hover{ color:#ed6b84; }
.post-excerpt{ color:#666; font-size:14px; line-height:1.6; }

.post-actions{ margin-top:auto; display:flex; justify-content:flex-end; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  height:36px; padding:0 14px; border-radius:999px;
  border:1px solid #e9e9e9; background:#fff; color:#222; font-weight:600; cursor:pointer;
  transition:all .18s ease; text-decoration:none;
}
.btn:hover{ border-color:#ed6b84; color:#ed6b84; box-shadow:0 4px 10px rgba(237,107,132,.18); }

/* Pojedynczy post */
.post-layout{ display:grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; }
.post-main{ min-width:0; }
.post-aside{ min-width:0; }
.post-cover img{ width:100%; height:420px; object-fit:cover; border-radius:12px; }
.post-intro{ font-size:18px; color:#444; line-height:1.7; margin:12px 0 6px; }
.post-body{ color:#333; line-height:1.8; }
.post-share{ margin-top:22px; display:flex; gap:12px; align-items:center; font-size:14px; }
.aside-box{ border:1px solid #eee; border-radius:12px; padding:12px; background:#fff; margin-bottom:16px; }
.aside-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.aside-related{ display:grid; grid-template-columns:1fr; gap:10px; }
.related-item{ display:grid; grid-template-columns:56px 1fr; gap:10px; align-items:center; text-decoration:none; color:#222; }
.related-item img{ width:56px; height:56px; object-fit:cover; border-radius:6px; }
.related-item:hover span{ color:#ed6b84; }

/* Paginacja – używa Twojej globalnej .pagination */
.no-posts{ text-align:center; font-size:1.1rem; color:#777; margin:30px 0 60px; }

/* Responsive */
@media (max-width: 1024px){
  .post-layout{ grid-template-columns: 1fr; }
  .post-cover img{ height:320px; }
}
@media (max-width: 520px){
  .post-cover img{ height:220px; }
}
