/* ─────────────────────────────────────────────────────
   BLOG.CSS — style dla bloga Akademii Lidera
   Dołączany do blog/index.html i blog/<slug>.html
   NIE modyfikuje niczego w index.html ani style.css
   ───────────────────────────────────────────────────── */

/* ── 1. Menu: białe, stabilne tło na podstronach ───── */
.navbar-container.navbar--solid {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(74, 85, 157, 0.12);
}

/* ── 2. Offset pod fixed navbar (80px + 16px zapas) ── */
.blog-page-top {
  padding-top: 96px;
}

/* ══════════════════════════════════════════════════════
   SIATKA BLOGA
   ══════════════════════════════════════════════════════ */

/* eyebrow i nagłówek sekcji */
.blog-hero {
  padding-top: 96px;
  padding-bottom: 0;
}

/* siatka 3-up → 2-up → 1-up */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .post-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── neutralizacja globalnego selektora article ze style.css ──
   style.css ma: article { flex:0 0 auto; border:1px solid gray;
   margin:2.5rem 0; article div p z sign wodnym cudzysłowu... }
   Poniżej zerujemy wszystkie dziedziczone reguły dla .post-card.
   ──────────────────────────────────────────────────────────── */
.post-card {
  flex: initial;
  min-width: 0;
  align-items: stretch;
  line-height: 1.5;
  border: 0;
  margin: 0;
}
.post-card div {
  text-align: left;
  padding: 0;
}
.post-card div p {
  color: inherit;
  font-weight: 300;
  font-style: normal;
  font-size: inherit;
  padding-top: 0;
}
.post-card div p::before {
  content: none;
}

/* ── karta: język wizualny .benefit-card ── */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}
.post-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 32px 64px -12px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* miniatura */
.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--Gray2);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

/* body karty — spec (0,2,0) bije neutralizację .post-card div (0,1,1) */
.post-card .post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 22px;
  gap: 10px;
}

/* tytuł — stretched link na całą kartę */
.post-card .post-card__title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ColorMainShades);
  margin: 0;
}
.post-card .post-card__title a {
  color: inherit;
  text-decoration: none;
}
/* stretched link: klikalna cała karta, ale tylko jeden <a> w DOM */
.post-card .post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.post-card:hover .post-card__title {
  color: var(--ColorMain);
}

/* data publikacji na kartach */
.post-card .post-card__date {
  display: block;
  font-size: 0.8rem;
  color: #9aa7b7;
  margin: 4px 0 8px;
}

/* lead z clamp — spec (0,2,0) bije neutralizację .post-card div p (0,1,2) */
.post-card .post-card__lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5a6a82;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* „czytaj całość" — strzałka jak w .quiz-start-btn */
.post-card .post-card__more {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ColorMain);
  text-decoration: none;
  position: relative; /* wynurza ponad ::after stretched linka */
  z-index: 1;
}
.post-card .post-card__more i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}
.post-card:hover .post-card__more {
  color: var(--ColorAccentShades);
}
.post-card:hover .post-card__more i {
  transform: translateX(4px);
}


/* ══════════════════════════════════════════════════════
   WIDOK ARTYKUŁU
   ══════════════════════════════════════════════════════ */

/* zdjęcie na pełną szerokość kolumny */
.post-cover {
  margin: 0 0 36px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}
.post-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* tytuł artykułu */
.post-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--ColorMainShades);
  margin: 0 auto 14px;
  max-width: 46rem;
}

/* okruszki — nowy wzorzec, na stronie nie było żadnych
   KRYTYCZNE: nadpisuje niescopowany nav { display:flex; justify-content:center; width:100% }
   z style.css:161 — bez tego breadcrumbs zostaną wycentrowane */
.breadcrumbs {
  display: block;      /* override: nav { display:flex } */
  width: auto;         /* override: nav { width:100% } */
  justify-content: initial;  /* override: nav { justify-content:center } */
  align-items: initial;
  margin: 0 auto 36px;
  font-size: 0.85rem;
  max-width: 46rem;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.breadcrumbs ol::before { content: none; }
.breadcrumbs li::before { content: none !important; }
.breadcrumbs li + li::before {
  content: "›" !important;
  margin: 0 4px;
  color: var(--Gray3);
}
.breadcrumbs a {
  color: var(--ColorMain);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--ColorAccentShades);
  text-decoration: underline;
}
.breadcrumbs [aria-current="page"] {
  color: #5a6a82;
}

/* miara czytania (~72 znaki), kontener wycentrowany */
.post-meta,
.post-body,
.post-cta,
.author-box,
.post-references,
.post-back {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

/* typografia treści */
.post-body {
  font-size: 1.1rem;
  line-height: 1.75;
}
.post-body > p {
  margin: 0 0 1.35rem;
}
/* pierwszy akapit jako lead */
.post-body > p:first-child {
  font-size: 1.2rem;
  line-height: 1.65;
  color: #2c3d5c;
}

/* H2 (### z MD → h2 po mapowaniu) */
.post-body h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--ColorMainShades);
  margin: 2.6rem 0 1rem;
}

/* **Zdanie.** samodzielnie w linii */
.post-lead-in {
  margin: 2.2rem 0 1.1rem;
  font-weight: 600;
  color: var(--ColorMainShades);
}

/* listy — zastępujemy globalny ✓ z .col ul li::before
   .post-body ul li::before ma spec. 0,2,2 vs .col ul li::before 0,1,2 — bije bez !important */
.post-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem;
}
.post-body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}
.post-body ul li::before {
  content: "•";
  color: var(--ColorAccent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* linki w treści artykułu */
.post-body a {
  color: var(--ColorMain);
  text-decoration: underline;
  text-decoration-color: rgba(57, 99, 168, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}
.post-body a:hover {
  text-decoration-color: var(--ColorMain);
}

/* separator --- */
.post-body hr {
  border: none;
  border-top: 1px solid var(--Gray2);
  margin: 2.5rem 0;
}

/* ramka CTA (końcowa kursywa artykułu → .alert.alert---blue)
   Nadpisuje odziedziczone: font-size:.8rem, letter-spacing:1px, border-radius:2px */
.post-cta {
  margin: 2.8rem auto 2rem;
  border-radius: 10px;
  padding: 24px;
  letter-spacing: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.post-cta .alertTxt h4 {
  letter-spacing: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--ColorMainShades);
}
.post-cta .alertTxt p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
  font-style: normal;
}
@media (max-width: 767px) {
  .post-cta .alertContent {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .post-cta .button {
    width: 100%;
    box-sizing: border-box;
  }
}

/* meta daty i autora pod tytułem */
.post-meta {
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: #5a6a82;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-meta time {
  font-weight: 500;
}
.post-meta__sep {
  color: #9aa7b7;
}

/* blok autorki pod artykułem */
.author-box {
  margin: 40px auto 28px;
  padding: 24px 28px;
  background: #f0f4fa;
  border-radius: 12px;
  border-left: 4px solid var(--ColorMain);
}
.author-box__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ColorMainShades);
  margin: 0 0 8px;
}
.author-box__bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3d4e68;
  margin: 0 0 12px;
}
.author-box__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ColorMain);
  text-decoration: none;
}
.author-box__link:hover {
  text-decoration: underline;
  color: var(--ColorAccentShades);
}

/* bibliografia / źródła */
.post-references {
  margin: 32px auto;
  padding: 24px 28px;
  background: #f8f9fb;
  border-radius: 12px;
  border-left: 4px solid var(--Gray2);
}
.post-references h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--ColorMainShades);
  margin: 0 0 16px;
}
.post-references ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ref-counter;
}
.post-references li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 10px;
  font-size: 0.83rem;
  line-height: 1.65;
  color: #5a6a82;
  counter-increment: ref-counter;
}
.post-references li::before {
  content: counter(ref-counter) ".";
  position: absolute;
  left: 0;
  color: var(--ColorMain);
  font-weight: 600;
}
.post-references a {
  color: var(--ColorMain);
  text-decoration: none;
  word-break: break-all;
}
.post-references a:hover {
  text-decoration: underline;
}

/* powrót do bloga */
.post-back {
  margin: 0 auto 2rem;
}
.post-back a {
  color: var(--ColorMain);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.post-back a:hover {
  color: var(--ColorAccentShades);
}
.post-back a i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}
.post-back a:hover i {
  transform: translateX(-3px);
}

/* stopka bloga */
.blog-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  margin-top: 4rem;
}
.blog-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.85rem;
}
.blog-footer__bar a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-footer__bar a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .blog-footer__bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* responsywność artykułu na mobile */
@media (max-width: 767px) {
  .post-cover {
    border-radius: 10px;
    margin-bottom: 24px;
  }
  .post-title {
    max-width: 100%;
  }
  .breadcrumbs {
    max-width: 100%;
  }
  .post-meta,
  .post-body,
  .post-cta,
  .author-box,
  .post-references,
  .post-back {
    max-width: 100%;
  }
}
