/* Crafted with ❤️ by PixelShark.eu // */

.blog-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  margin-block: clamp(10px, 1.8vw, 18px);
}
@media (max-width: 1200px){
  .blog-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px){
  .blog-grid{ grid-template-columns: 1fr; }
}

.cat-filter{
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
  margin-top: 10px;
}
.cat-chip{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.5rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.05);
  color:#f4e9c7; text-decoration:none; font-weight:800;
  border:1px solid rgba(255,255,255,.14);
  transition: transform var(--speed), box-shadow var(--speed), background var(--speed), filter var(--speed);
}
.cat-chip:hover{ transform: translateY(-1px); }
.cat-chip.is-active{
  background: linear-gradient(180deg, var(--accent-b), var(--accent-a));
  color:#1d1303; border-color: transparent;
}


.post-card{
  display:flex; flex-direction: column;
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  overflow:hidden;
}
.post-card__thumb{
  display:block; aspect-ratio: 16/10;
  background: #0a0a0a; position:relative; overflow:hidden;
}

.post-card__thumb img{
  height:100%;
  width:auto;
  max-width:none;
  display:block;
  margin: 0 auto;                 /* wyśrodkuj horyzontalnie */
  transform: translateZ(0);
  transition: transform .5s ease;
}
.post-card:hover .post-card__thumb img{ transform: scale(1.03); }

.post-card__body{
  display:flex; flex-direction:column; gap:.5rem;
  padding: 12px 14px;
}
.post-card__header{ display:flex; flex-direction:column; gap:.2rem; }
.post-card__title{
  margin:0; font-family:"Cinzel", serif; line-height:1.2;
  font-size: clamp(18px, 2.0vw, 22px);
}
.post-card__title a{
  color:#fff;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.post-card__excerpt{
  margin: .15rem 0 .25rem;
  color: var(--ink-dim);
}


.post-card__spacer{ flex:1 1 auto; }

.post-card__meta{
  display:flex; align-items:center; justify-content:space-between; gap:.6rem;
  margin-top:.1rem;
}
.post-card__date{ color: var(--ink-dim); }

/* Prawy dolny róg */
.post-card__more{
  margin-left:auto;
  padding:.5rem .9rem;
}

.blog-pagination{ display:flex; justify-content:center; margin: 12px 0 6px; }
.pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:34px; height:34px; margin: 0 4px; padding: 0 10px;
  border-radius: 10px; background: rgba(255,255,255,.04);
  color: #f4e9c7; border: 1px solid rgba(255,255,255,.12);
  text-decoration: none; font-weight: 700;
}
.pagination .page-numbers.current{
  background: linear-gradient(180deg, var(--accent-b), var(--accent-a));
  color: #1d1303; border-color: transparent;
}


.post-lead-media{
  float:left;
  width: min(46%, 480px);
  margin: .2rem 1.2rem .6rem 0;
  border-radius: clamp(12px, 1.2vw, 18px);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.post-lead-media img{
  width:100%;
  height:auto;           /* bez rozciągania w pionie */
  display:block;
}
.post-lead-media figcaption{ padding:.4rem .6rem; color: var(--ink-dim); }

@media (max-width: 900px){
  .post-lead-media{
    float:none; width:100%; margin: 0 0 .8rem 0;
  }
}

.post-nav{ margin-top: 20px; clear: both; }
.post-nav__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px; border-top:1px solid rgba(255,255,255,.1); padding-top: 12px;
}
.post-tags a{ color:#ffe7b3; }
