/* ============================================================
   IKS - blog.css
   Lista artykulow i strona artykulu
   ============================================================ */

/* ---------- Blog hero ---------- */
.blog-hero {
  padding: 80px 0 64px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 580px;
  height: 580px;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(113, 0, 255, 0.07),
    transparent 60%
  ),
  radial-gradient(
    circle at 70% 70%,
    rgba(0, 246, 160, 0.09),
    transparent 60%
  );
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin: 20px 0 16px;
}

.blog-hero-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.65;
}

/* ---------- Filtr kategorii ---------- */
.blog-filter {
  padding: 0 0 56px;
  background: var(--bg);
}

.blog-filter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.blog-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-right: 4px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--charcoal);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s,
    transform 0.25s var(--ease);
}

.filter-btn:hover {
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 4px 18px -6px rgba(113, 0, 255, 0.38);
}

/* ---------- Sekcja siatki artykulow ---------- */
.blog-list-section {
  padding: 0 0 96px;
  background: var(--bg);
}

/* ---------- Paginacja ---------- */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--bg);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s,
    transform 0.25s var(--ease);
}

.page-item .page-link:hover {
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-1px);
}

.page-item.active .page-link {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 4px 18px -6px rgba(113, 0, 255, 0.38);
}

.page-item.disabled .page-link {
  opacity: 0.38;
  pointer-events: none;
}

/* ---------- Strona artykulu ---------- */
.article-page {
  padding: 40px 0 96px;
}

.article-breadcrumb {
  margin-bottom: 40px;
}

.article-header {
  max-width: 800px;
  margin-bottom: 40px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.article-pub-date {
  font-size: 13.5px;
  color: var(--gray-600);
  font-weight: 500;
}

.article-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--ink);
}

.article-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 700px;
  font-weight: 500;
}

/* ---------- Okładka artykulu ---------- */
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 52px;
  box-shadow: var(--shadow-md);
}

/* ---------- Tresc artykulu ---------- */
.article-content {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--charcoal);
}

.article-content p {
  margin: 0 0 1.5em;
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content strong {
  color: var(--ink);
  font-weight: 700;
}

.article-content a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--violet-700);
}

/* ---------- Stopka CTA artykulu ---------- */
.article-footer-cta {
  margin-top: 64px;
  padding: 48px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 720px;
}

.article-footer-cta-text {
  flex: 1;
}

.article-footer-cta-text h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--ink);
}

.article-footer-cta-text p {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Sekcja powiazanych artykulow ---------- */
.related-section {
  background: var(--bg-alt);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .blog-hero {
    padding: 56px 0 44px;
  }

  .blog-filter {
    padding: 0 0 40px;
  }

  .blog-list-section {
    padding: 0 0 64px;
  }

  .article-page {
    padding: 28px 0 64px;
  }

  .article-footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .article-cover {
    aspect-ratio: 16 / 9;
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .blog-filter-inner {
    gap: 8px;
  }

  .filter-btn {
    font-size: 13px;
    padding: 7px 14px;
  }

  .article-footer-cta {
    padding: 24px 20px;
  }
}
