/* ===== PantryOS blog, loaded AFTER /styles.css (reuses all its tokens) ===== */

/* Category accents (mirror scripts/blog_thumbnail.py CATEGORIES). */
.cat-marnowanie     { --cat: #C2612E; --cat-soft: rgba(194, 97, 46, .12); }
.cat-przechowywanie { --cat: #3F63B8; --cat-soft: rgba(63, 99, 184, .12); }
.cat-przepisy       { --cat: #4E7A5A; --cat-soft: rgba(78, 122, 90, .12); }
.cat-organizacja    { --cat: #5B54B0; --cat-soft: rgba(91, 84, 176, .12); }
.cat-oszczedzanie   { --cat: #A8720E; --cat-soft: rgba(168, 114, 14, .12); }

.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 5px 12px; border-radius: 999px;
  background: var(--cat-soft); color: var(--cat);
}

/* ===== Blog header ===== */
.blog-head { padding: 66px 0 40px; text-align: center; }
.blog-head__title { font-size: clamp(38px, 6vw, 58px); letter-spacing: -0.03em; }
.blog-head__intro { margin: 18px auto 0; max-width: 42em; color: var(--muted); font-size: 17.5px; }

/* ===== Breadcrumb ===== */
.crumbs { padding: 26px 0 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: var(--navy); }
.crumbs span[aria-current] { color: var(--navy); font-weight: 600; }
.crumbs .sep { opacity: .5; }

/* ===== Post grid (hub) ===== */
.post-grid { display: grid; gap: 24px; padding: 8px 0 90px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__thumb { aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.24; letter-spacing: -0.02em; margin: 14px 0 0; }
.post-card__excerpt { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.post-card__meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.post-card__meta .dot { opacity: .5; }

/* "Wkrótce" placeholder cards (not yet linked) */
.post-card--soon { opacity: .92; }
.post-card--soon .post-card__thumb { filter: saturate(.85); }
.ribbon {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(10, 31, 68, .82); color: var(--cream);
  font-family: var(--font-body); font-weight: 700; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* ===== Article ===== */
.article { padding: 6px 0 20px; }
.article__header { max-width: 780px; margin: 0 auto; text-align: center; padding: 26px 0 34px; }
.article__title { font-size: clamp(32px, 5.2vw, 50px); letter-spacing: -0.03em; margin: 18px 0 0; }
.article__meta { margin-top: 20px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.article__hero { max-width: 960px; margin: 0 auto 12px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.article__hero img { width: 100%; height: auto; display: block; }

/* ===== Prose ===== */
.prose { max-width: 720px; margin: 0 auto; padding: 40px 0 10px; }
.prose h2 { font-size: clamp(24px, 3.4vw, 30px); letter-spacing: -0.02em; margin: 44px 0 0; }
.prose p { margin: 18px 0 0; color: #2c3852; font-size: 17px; line-height: 1.75; }
.prose ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.6; color: #2c3852; }
.prose li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.prose strong { font-weight: 600; color: var(--navy); }

/* ===== In-article CTA ===== */
.article-cta { max-width: 720px; margin: 52px auto 0; background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 40px 34px; text-align: center; box-shadow: var(--shadow-lg); }
.article-cta h2 { color: var(--cream); font-size: clamp(24px, 3.6vw, 32px); }
.article-cta p { margin: 14px auto 26px; color: rgba(248, 249, 251, .74); font-size: 16px; max-width: 34em; }

/* ===== Related ===== */
.related { max-width: 1140px; margin: 0 auto; padding: 70px 0 90px; }
.related__title { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 24px; }
.related__grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .related__grid { grid-template-columns: repeat(2, 1fr); } }
