/*
 * Bliska Psychologia — bp-article.css v2.3
 * Lokalizacja: /wp-content/plugins/bp-patterns/assets/bp-article.css
 * Ładowany TYLKO na pojedynczych wpisach bloga (is_single).
 *
 * v2.3 — fixes:
 *   - Szerokość artykułu 750→860px
 *   - Specyficzność tytułów w kontenerach (0,2,0) > (0,1,1)
 *   - CTA konsultacji: flex zamiast grid — nie collapsuje
 *   - FAQ: poprawne marginesy tytułu i pytań
 */

/* ================================================================
   ODSTĘP POD MENU — tylko na pojedynczych wpisach
   ================================================================ */

.single .entry-content {
  padding-top: 48px;
}

@media (max-width: 768px) {
  .single .entry-content {
    padding-top: 32px;
  }
}

/* ================================================================
   4. KONTENER ARTYKUŁU I TYPOGRAFIA
   ================================================================ */

.bp-article {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 60px;
  color: var(--bp-text);
  font-family: var(--bp-f-sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Nadpisanie globalnego h2/h3 tylko wewnątrz .bp-article */
.bp-article h2 {
  font-family: var(--bp-f-serif) !important;
  font-size: clamp(22px, 3vw, 28px) !important;
  font-weight: 700 !important;
  color: var(--bp-navy) !important;
  line-height: 1.3;
  margin: 48px 0 16px !important;
  scroll-margin-top: 90px;
}

.bp-article h3 {
  font-family: var(--bp-f-serif) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--bp-navy) !important;
  line-height: 1.35;
  margin: 32px 0 12px !important;
  scroll-margin-top: 90px;
}

.bp-article p  { margin: 0 0 20px; }
.bp-article a  { color: var(--bp-teal); text-decoration: underline; text-underline-offset: 3px; }
.bp-article a:hover { color: var(--bp-teal-dark); }
.bp-article strong { font-weight: 700; color: var(--bp-navy); }
.bp-article ul,
.bp-article ol { padding-left: 24px; margin: 0 0 20px; }
.bp-article li { margin-bottom: 8px; }


/* ================================================================
   5. NAGŁÓWEK ARTYKUŁU
   ================================================================ */

.bp-art-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--bp-sep);
}

.bp-art-header-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.bp-art-category {
  display: inline-block;
  background: var(--bp-teal-bg);
  color: var(--bp-teal);
  font-family: var(--bp-f-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
}

.bp-art-read-time { font-size: 13px; color: var(--bp-muted); }

.bp-art-h1 {
  font-family: var(--bp-f-serif) !important;
  font-size: clamp(26px, 4vw, 38px) !important;
  font-weight: 700 !important;
  color: var(--bp-navy) !important;
  line-height: 1.22;
  margin: 0 0 14px !important;
}

.bp-art-h1 span { color: var(--bp-teal); }

.bp-art-subtitle {
  font-family: var(--bp-f-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--bp-teal);
  margin: -8px 0 20px;
  line-height: 1.45;
}

.bp-art-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #3a5060;
  margin: 0 0 24px;
}

.bp-art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bp-art-author-info { display: flex; align-items: center; gap: 12px; }

.bp-art-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bp-sep);
  flex-shrink: 0;
}

.bp-art-author-name { display: block; font-size: 14px; font-weight: 600; color: var(--bp-navy); }
.bp-art-author-title { display: block; font-size: 12px; color: var(--bp-muted); }

.bp-art-dates { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bp-art-date-pub,
.bp-art-date-mod { font-size: 12px; color: var(--bp-muted); }
.bp-art-date-mod::before { content: '🔄 '; }

@media (max-width: 560px) {
  .bp-art-meta  { flex-direction: column; align-items: flex-start; }
  .bp-art-dates { align-items: flex-start; }
}


/* ================================================================
   6. CZEGO SIĘ DOWIESZ
   ================================================================ */

.bp-learn-box {
  background: var(--bp-card);
  border: 1px solid var(--bp-sep);
  border-left: 4px solid var(--bp-teal-light);
  border-radius: 10px;
  padding: 22px 28px;
  margin: 0 0 36px;
}

.bp-learn-box .bp-learn-box-title {
  font-family: var(--bp-f-serif) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--bp-navy) !important;
  margin: 0 0 14px !important;
}

.bp-learn-list { margin: 0; padding-left: 0; list-style: none; }

.bp-learn-list li {
  position: relative;
  padding: 5px 0 5px 26px;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--bp-text);
}

.bp-learn-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--bp-teal);
  font-weight: 700;
}


/* ================================================================
   7. SPIS TREŚCI
   ================================================================ */

.bp-toc {
  background: var(--bp-card);
  border: 1px solid var(--bp-sep);
  border-left: 4px solid var(--bp-teal);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 36px 0;
}

.bp-toc .bp-toc-title {
  font-family: var(--bp-f-serif) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--bp-navy) !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px !important;
}

.bp-toc-list { margin: 0; padding-left: 20px; }
.bp-toc-list li { margin-bottom: 7px; font-size: 15px; }
.bp-toc-list a { color: var(--bp-teal); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.bp-toc-list a:hover { border-bottom-color: var(--bp-teal); }


/* ================================================================
   8. CALLOUT (INFO / WARN)
   ================================================================ */

.bp-callout {
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bp-callout-icon { font-size: 20px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.bp-callout-body { flex: 1; }

.bp-callout-title {
  display: block;
  font-family: var(--bp-f-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--bp-navy) !important;
  margin: 0 0 6px;
}

.bp-callout p { margin: 0; font-size: 15px; line-height: 1.65; }

.bp-callout-info { background: var(--bp-teal-bg); border-left: 4px solid var(--bp-teal); }
.bp-callout-info a { color: var(--bp-teal-dark); font-weight: 600; }

.bp-callout-warn { background: #FEF3EC; border-left: 4px solid #D97B3A; }
.bp-callout-warn .bp-callout-title { color: #7A3D10 !important; }
.bp-callout-warn a { color: #C05A1A; font-weight: 600; }


/* ================================================================
   9. GRID OBJAWÓW (2×2)
   ================================================================ */

.bp-symptoms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 32px;
}

@media (max-width: 580px) { .bp-symptoms-grid { grid-template-columns: 1fr; } }

.bp-symptom-card {
  background: var(--bp-card);
  border: 1px solid var(--bp-sep);
  border-radius: 10px;
  padding: 18px 20px;
}

.bp-symptom-card-icon { font-size: 26px; margin-bottom: 10px; line-height: 1; }

.bp-symptom-card .bp-symptom-card-title {
  font-family: var(--bp-f-serif) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--bp-navy) !important;
  margin: 0 0 10px !important;
}

.bp-symptom-card ul { margin: 0; padding-left: 18px; font-size: 14px; }
.bp-symptom-card li { margin-bottom: 5px; color: var(--bp-text); }


/* ================================================================
   10. GRID PORÓWNANIE (2 kolumny)
   ================================================================ */

.bp-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 32px;
}

@media (max-width: 560px) { .bp-compare-grid { grid-template-columns: 1fr; } }

.bp-compare-col { border-radius: 10px; padding: 20px 22px; }
.bp-compare-col--left  { background: var(--bp-cream); border: 1px solid var(--bp-sep); }
.bp-compare-col--right { background: var(--bp-teal-bg); border: 1px solid #B8D8DF; }

.bp-compare-col .bp-compare-col-title {
  font-family: var(--bp-f-serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--bp-navy) !important;
  margin: 0 0 12px !important;
}

.bp-compare-col ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.65; }
.bp-compare-col li { margin-bottom: 7px; color: var(--bp-text); }


/* ================================================================
   11. CTA TESTU
   ================================================================ */

.bp-test-cta {
  background: linear-gradient(135deg, #1B3A4B 0%, #2A6070 100%);
  border-radius: 14px;
  padding: 36px 40px;
  margin: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dekoracyjny okrąg */
.bp-test-cta::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(106, 175, 188, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 560px) { .bp-test-cta { padding: 28px 24px; } }

.bp-test-cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Specyficzność (0,2,0) bije .bp-article h2 (0,1,1) — stąd podwójny selektor */
.bp-test-cta .bp-test-cta-title,
.bp-test-cta h2,
.bp-test-cta h3 {
  font-family: var(--bp-f-serif) !important;
  font-size: clamp(20px, 3vw, 26px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3;
  margin: 0 0 12px;
}

.bp-test-cta p,
.bp-test-cta .bp-test-cta-desc {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 16px;
  margin: 0 0 28px;
  line-height: 1.6;
}

/* Przycisk: teal wypełniony — spójny z hero strony głównej */
.bp-test-cta-btn {
  display: inline-block;
  background: var(--bp-teal);
  color: #fff !important;
  font-family: var(--bp-f-sans);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}

.bp-test-cta-btn:hover {
  background: var(--bp-teal-dark);
  transform: translateY(-2px);
  color: #fff !important;
}


/* ================================================================
   12. CTA KONSULTACJI
   ================================================================ */

.bp-consult-cta {
  background: linear-gradient(135deg, #1B3A4B 0%, #2A6070 100%);
  border-radius: 14px;
  padding: 36px 40px;
  margin: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.bp-consult-cta::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(106, 175, 188, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 560px) { .bp-consult-cta { padding: 28px 24px; } }

/* Wewnętrzny wrapper dla starych artykułów — wyrównany z nową strukturą */
.bp-consult-cta-text {
  display: contents; /* dzieci bp-consult-cta-text stają się dziećmi flexa */
}
.bp-consult-cta-action {
  display: contents;
}

.bp-consult-cta-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bp-consult-cta .bp-consult-cta-title,
.bp-consult-cta h2 {
  font-family: var(--bp-f-serif) !important;
  font-size: clamp(20px, 3vw, 26px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3;
  margin: 0 0 12px !important;
}

/* Opis — dotyczy zarówno > p (nowa struktura) jak i p wewnątrz bp-consult-cta-text */
.bp-consult-cta p:not(.bp-consult-cta-note) {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 16px;
  margin: 0 0 20px !important;
  line-height: 1.6;
  max-width: 520px;
}

.bp-consult-cta-btn {
  display: inline-block;
  background: var(--bp-teal);
  color: #fff !important;
  font-family: var(--bp-f-sans);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 16px;
}

.bp-consult-cta-btn:hover {
  background: var(--bp-teal-dark);
  transform: translateY(-2px);
  color: #fff !important;
}

.bp-consult-cta-list {
  list-style: none;
  margin: 0 0 0 !important;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.bp-consult-cta-list li {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.bp-consult-cta-list li:last-child { border-right: none; }

.bp-consult-cta-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4) !important;
  margin: 12px 0 0 !important;
}


/* ================================================================
   13. CTA KURSU (gotowy na przyszłość)
   ================================================================ */

.bp-course-cta {
  background: linear-gradient(135deg, var(--bp-cream) 0%, var(--bp-sep) 100%);
  border: 2px solid var(--bp-teal);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

@media (max-width: 560px) { .bp-course-cta { flex-direction: column; gap: 14px; padding: 22px 20px; } }

.bp-course-cta-icon { font-size: 34px; flex-shrink: 0; line-height: 1; }
.bp-course-cta-body { flex: 1; }

.bp-course-cta-label {
  display: inline-block;
  background: var(--bp-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.bp-course-cta-title {
  font-family: var(--bp-f-serif) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--bp-navy) !important;
  margin: 0 0 8px;
  line-height: 1.35;
}

.bp-course-cta-desc { font-size: 15px; color: var(--bp-text); margin: 0 0 16px !important; line-height: 1.6; }

.bp-course-cta-btn {
  display: inline-block;
  background: var(--bp-teal);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 7px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.bp-course-cta-btn:hover { background: var(--bp-teal-dark); }


/* ================================================================
   14. FAQ
   ================================================================ */

.bp-faq { margin: 48px 0 32px; }

.bp-faq .bp-faq-title {
  font-family: var(--bp-f-serif) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--bp-navy) !important;
  margin: 0 0 8px !important;
  scroll-margin-top: 90px;
}

.bp-faq-item {
  border-top: 1.5px solid var(--bp-sep);
  padding: 14px 0;
}

.bp-faq-item:last-child {
  border-bottom: 1.5px solid var(--bp-sep);
}

.bp-faq-item .bp-faq-q {
  font-family: var(--bp-f-serif) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: var(--bp-navy) !important;
  margin: 0 0 6px !important;
  line-height: 1.4;
}

.bp-faq-a { font-size: 15px; line-height: 1.65; }
.bp-faq-a p { margin: 0; color: var(--bp-text); }


/* ================================================================
   15. STOPKA WIARYGODNOŚCI (E-E-A-T)
   ================================================================ */

.bp-credibility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  background: var(--bp-card);
  border: 1px solid var(--bp-sep);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 40px 0;
  box-shadow: 0 2px 12px rgba(27, 58, 75, 0.06);
}

@media (max-width: 560px) {
  .bp-credibility { grid-template-columns: 1fr; }
}

.bp-credibility-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* krytyczne — pozwala flex/grid itemom się kurczyć */
}

.bp-credibility-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-muted);
  margin-bottom: 2px;
}

.bp-credibility-value {
  display: block;
  font-size: 14px;
  color: var(--bp-text);
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}


/* ================================================================
   16. ŹRÓDŁA
   ================================================================ */

.bp-sources {
  background: var(--bp-card);
  border: 1px solid var(--bp-sep);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 40px 0;
}

.bp-sources .bp-sources-title {
  font-family: var(--bp-f-serif) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--bp-navy) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px !important;
}

.bp-sources-list { margin: 0; padding-left: 20px; }

.bp-sources-list li {
  font-size: 13px;
  color: var(--bp-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.bp-sources-list em { font-style: italic; color: var(--bp-text); }
.bp-sources-list a { color: var(--bp-teal); text-decoration: none; font-weight: 500; }
.bp-sources-list a:hover { text-decoration: underline; }


/* ================================================================
   17. BIO AUTORA
   ================================================================ */

.bp-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bp-card);
  border: 1px solid var(--bp-sep);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 40px 0 0;
}

@media (max-width: 500px) { .bp-author-box { flex-direction: column; gap: 16px; } }

.bp-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--bp-sep);
}

.bp-author-content { flex: 1; }

.bp-author-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-teal);
  margin: 0 0 4px !important;
}

.bp-author-name {
  font-family: var(--bp-f-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--bp-navy) !important;
  margin: 0 0 4px;
}

.bp-author-title {
  display: block;
  font-size: 13px;
  color: var(--bp-teal);
  font-weight: 600;
  margin: 0 0 10px;
}

.bp-author-bio { font-size: 14px; color: var(--bp-muted); line-height: 1.65; margin: 0; }


/* ================================================================
   18. POWIĄZANE ARTYKUŁY
   ================================================================ */

.bp-related { margin: 48px 0 0; }

.bp-related .bp-related-title {
  font-family: var(--bp-f-serif) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--bp-navy) !important;
  margin: 0 0 16px !important;
}

.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 640px) { .bp-related-grid { grid-template-columns: 1fr; } }

.bp-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bp-card);
  border: 1.5px solid var(--bp-sep);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.bp-related-card:hover {
  border-color: var(--bp-teal);
  box-shadow: 0 4px 16px rgba(61, 126, 143, 0.1);
  transform: translateY(-2px);
}

.bp-related-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-teal);
  padding: 3px 8px;
  background: var(--bp-teal-bg);
  border-radius: 4px;
  width: fit-content;
}

.bp-related-card-title {
  font-family: var(--bp-f-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--bp-navy) !important;
  line-height: 1.4;
}

.bp-related-card-excerpt {
  font-size: 13px;
  color: var(--bp-muted);
  line-height: 1.5;
}


/* ================================================================
   19. SEPARATOR
   ================================================================ */

.bp-divider {
  border: none;
  border-top: 1.5px solid var(--bp-sep);
  margin: 40px 0;
}

/* ================================================================
   SZEROKOŚĆ STANDALONE — elementy poza .bp-article
   Gdy bloki są w osobnych wp:html lub wp:shortcode,
   nie dziedziczą max-width z .bp-article. Ta reguła to naprawia.
   ================================================================ */

.bp-credibility,
.bp-sources,
.bp-related,
.bp-author-box {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.bp-related { margin-bottom: 60px; }

@media (max-width: 900px) {
  .bp-credibility,
  .bp-sources,
  .bp-related,
  .bp-author-box {
    margin-left: 20px;
    margin-right: 20px;
  }
}

