/* Blog czystobezchemii.eu - dopelnienie assets/style.css ze strony glownej.
   Tokeny (--ink, --accent, --bg-soft, --border) pochodza z tamtego arkusza. */

.blog-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 40px 80px;
}

/* Sam tekst wpisu zostaje waski - dluga linia zle sie czyta.
   Szeroka jest kolumna, nie akapit. */
.post-single,
.blog-intro { max-width: 760px; margin-left: auto; margin-right: auto; }

nav.main-nav a.is-active { color: var(--accent); }

/* Naglowek listy wpisow */
.blog-intro { text-align: center; margin-bottom: 48px; }

.blog-intro h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.blog-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.blog-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
}

/* Karta wpisu na liscie */
.post-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 32px;
}

.post-cover img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.post-body { padding: 28px; }

.post-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--accent); }

.post-meta {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.post-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Pojedynczy wpis */
.post-single .post-cover { margin-bottom: 32px; border-radius: 14px; overflow: hidden; }
.post-single .post-cover img { height: 360px; }

.post-single h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.post-content h2 { font-size: 24px; margin: 40px 0 12px; }
.post-content h3 { font-size: 19px; margin: 32px 0 10px; }
.post-content p { margin: 0 0 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content img { border-radius: 12px; margin: 24px 0; }
.post-content blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

/* Zachęta do sklepu pod wpisem */
.post-cta {
  margin: 48px 0 32px;
  padding: 32px;
  background: var(--bg-soft);
  border-radius: 14px;
  text-align: center;
}
.post-cta p {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.post-back { font-size: 14px; }

/* Paginacja */
.paginator {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}
.paginator a {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.paginator a:hover { border-color: var(--accent); }

@media (max-width: 640px) {
  .blog-wrap { padding: 36px 18px 64px; }
  .blog-intro h1 { font-size: 28px; }
  .post-single h1 { font-size: 26px; }
  .post-body { padding: 20px; }
  .post-cover img, .post-single .post-cover img { height: 200px; }
  .post-cta { padding: 24px 18px; }
}
