/*
 * Silent Heroes — Single Post (single.php)
 * Brandbook polsof.pl: 1100px max, art 1fr + sidebar 280px, gap 2rem.
 * Hero: 340px image z badge + tytuł.
 * Lead: 3px left red border. H2: 2px bottom red. Pullquote: 4px left red.
 */

.sh-single-page {
  background: var(--sh-offwhite);
  padding-bottom: 80px;
}

/* ===== BREADCRUMB ===== */
.sh-single-breadcrumb {
  background: var(--sh-offwhite);
  border-top: 4px solid var(--sh-red);
  padding: 16px 0 12px;
}
.sh-single-breadcrumb-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 2rem;
  font-size: 12px;
  color: var(--sh-muted);
  font-family: 'Poppins', sans-serif;
}
.sh-single-breadcrumb a {
  color: var(--sh-muted);
  text-decoration: none;
  transition: color .15s;
}
.sh-single-breadcrumb a:hover { color: var(--sh-red); }
.sh-single-breadcrumb .sep { margin: 0 6px; color: var(--sh-border); }
.sh-single-breadcrumb .current,
.sh-single-breadcrumb-yoast .breadcrumb_last {
  color: var(--sh-black);
  font-weight: 600;
}

/* ===== HERO IMAGE ===== */
.sh-single-hero {
  padding: 0 0 24px;
}
.sh-single-hero-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 2rem;
}
.sh-single-hero-img {
  position: relative;
  height: 340px;
  border-radius: 8px;
  background-color: #1a1a1a;
  background-image: linear-gradient(135deg, #1a1a1a 25%, #0d0d0d 50%, #1a1a1a 75%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.sh-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.sh-single-hero-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
}
.sh-single-hero-badge {
  display: inline-block;
  background: var(--sh-red);
  color: #fff;
  padding: 6px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 14px;
  text-decoration: none;
}
/* Fix 2026-06-02: minifier SpeedyCache obcina :not() z globalnego a:hover w base.css —
   bez tego override badge w hero single posta dostaje czerwony tekst na czerwonym tle. */
a.sh-single-hero-badge:hover,
a.sh-single-hero-badge:focus,
a.sh-single-hero-badge:active,
.sh-single-hero-badge:hover,
.sh-single-hero-badge:focus,
.sh-single-hero-badge:active {
  color: #fff;
}
.sh-single-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* ===== ARTICLE GRID ===== */
.sh-single-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 2rem;
}

/* ===== ARTICLE ===== */
.sh-single-article {
  min-width: 0;
}
.sh-single-meta-top {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sh-single-meta-cat {
  color: var(--sh-red);
  text-decoration: none;
}
.sh-single-meta-date {
  color: var(--sh-red);
}
.sh-single-meta-top .sep { color: var(--sh-red); }

.sh-single-title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--sh-black);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.2;
}

/* Lead — pierwszy paragraph z 3px left red border */
.sh-single-lead {
  border-left: 3px solid var(--sh-red);
  padding: 6px 0 6px 18px;
  margin: 0 0 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--sh-ink);
  line-height: 1.55;
}
.sh-single-lead p { margin: 0; }

/* AUTHOR */
.sh-single-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--sh-border);
  border-bottom: 1px solid var(--sh-border);
  margin-bottom: 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--sh-muted);
}
.sh-single-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sh-black);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.sh-single-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sh-single-author-name {
  color: var(--sh-black);
  font-weight: 600;
}
.sh-single-author-sep {
  color: var(--sh-border);
  margin: 0 4px;
}

/* ===== ENTRY CONTENT ===== */
.sh-single-article .sh-entry-content {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--sh-ink);
}
.sh-single-article .sh-entry-content > p,
.sh-single-article .sh-entry-content > h2,
.sh-single-article .sh-entry-content > h3,
.sh-single-article .sh-entry-content > ul,
.sh-single-article .sh-entry-content > ol,
.sh-single-article .sh-entry-content > blockquote,
.sh-single-article .sh-entry-content > figure,
.sh-single-article .sh-entry-content > .wp-block-pullquote {
  margin: 0 0 20px;
}

/* H2 — 2px bottom red border */
.sh-single-article .sh-entry-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--sh-black);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sh-red);
  letter-spacing: -0.01em;
}
.sh-single-article .sh-entry-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sh-black);
  margin: 28px 0 12px;
}

/* Pullquote — 4px left red border, większy tekst */
.sh-single-article .wp-block-pullquote,
.sh-single-article blockquote.wp-block-pullquote,
.sh-single-article .sh-entry-content blockquote {
  border-left: 4px solid var(--sh-red);
  padding: 18px 24px;
  margin: 28px 0;
  background: #fff;
  border-radius: 0 6px 6px 0;
}
.sh-single-article .wp-block-pullquote p,
.sh-single-article .sh-entry-content blockquote p {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--sh-black);
  margin: 0;
  line-height: 1.5;
  font-style: normal;
}
.sh-single-article .wp-block-pullquote cite,
.sh-single-article .sh-entry-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  color: var(--sh-muted);
  font-weight: 400;
}

/* Linki w treści */
.sh-single-article .sh-entry-content a {
  color: var(--sh-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sh-single-article .sh-entry-content a:hover { color: var(--sh-black); }
/* Przyciski CTA w treści wpisu (Gutenberg button / .sh-btn) — wyłączenie pułapki
   czerwonego linku z reguły powyżej (3 klasy > 2 klasy+typ, bez !important). */
.sh-single-article .sh-entry-content .wp-block-button__link,
.sh-single-article .sh-entry-content a.sh-btn {
  display: inline-block;
  background: var(--sh-red);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: 14px 26px;
  font-weight: 600;
  line-height: 1.2;
}
.sh-single-article .sh-entry-content .wp-block-button__link:hover,
.sh-single-article .sh-entry-content a.sh-btn:hover {
  background: var(--sh-red-dark);
  color: #fff;
  text-decoration: none;
}

/* Listy */
.sh-single-article .sh-entry-content ul,
.sh-single-article .sh-entry-content ol {
  padding-left: 1.5rem;
}
.sh-single-article .sh-entry-content li { margin-bottom: 8px; }

/* Obrazki w treści */
.sh-single-article .sh-entry-content img,
.sh-single-article .sh-entry-content .wp-block-image img {
  border-radius: 6px;
  height: auto;
  max-width: 100%;
}

/* Osadzenia wideo (iframe: DVIDS, YouTube itp.) — responsywne */
.sh-single-article .sh-entry-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto 20px;
  border: 0;
  border-radius: 6px;
}

/* ===== TAGI ===== */
.sh-single-tags {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--sh-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sh-single-tag {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--sh-border);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sh-muted);
  text-decoration: none;
  transition: all .15s;
}
.sh-single-tag:hover {
  background: var(--sh-offwhite);
  color: var(--sh-black);
  border-color: var(--sh-ink);
}
.sh-single-tag--featured {
  background: var(--sh-red);
  color: #fff;
  border-color: var(--sh-red);
}
.sh-single-tag--featured:hover {
  background: var(--sh-red-dark, #A81515);
  color: #fff;
  border-color: var(--sh-red-dark, #A81515);
}

/* ===== SIDEBAR ===== */
.sh-single-sidebar {
  min-width: 0;
}
.sh-single-sidebar .widget,
.sh-single-sidebar > * {
  background: #fff;
  border: 1px solid var(--sh-border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}
.sh-single-sidebar .widget-title,
.sh-single-sidebar h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--sh-black);
  margin: 0 0 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sh-single-grid { grid-template-columns: 1fr; }
  .sh-single-hero-img { height: 240px; }
  .sh-single-hero-title { font-size: 24px; }
  .sh-single-title { font-size: 26px; }
}
@media (max-width: 600px) {
  .sh-single-breadcrumb-inner,
  .sh-single-hero-inner,
  .sh-single-grid { padding: 0 1rem; }
  .sh-single-hero-img { height: 200px; }
  .sh-single-hero-content { left: 16px; right: 16px; bottom: 16px; }
  .sh-single-hero-title { font-size: 20px; }
  .sh-single-title { font-size: 22px; }
  .sh-single-author { flex-wrap: wrap; gap: 8px; font-size: 12px; }
  .sh-single-author-sep { display: none; }
}

/* =====================================================================
   KOMENTARZE — sekcja pod artykułem (single.php → comments_template())
   Wzór wizualny: 1100px max width, jasne tło, akcent --sh-red.
   ===================================================================== */

.sh-comments-wrap {
  max-width: 1100px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
}

.sh-comments {
  background: var(--sh-color-bg-alt, #fff);
  border: 1px solid var(--sh-gray-200, #e5e5e5);
  border-radius: 4px;
  padding: 2rem;
}

.sh-comments-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sh-red, #CC1B1B);
  color: var(--sh-color-text-strong, #111);
}

.sh-comments-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.sh-comments-list .comment {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--sh-gray-100, #f0f0f0);
}
.sh-comments-list .comment:last-child { border-bottom: none; }

.sh-comments-list .comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.5rem;
  font-size: 14px;
  font-weight: 600;
}
.sh-comments-list .comment-author img.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--sh-gray-200, #e5e5e5);
}
.sh-comments-list .comment-author .says { display: none; }

.sh-comments-list .comment-meta {
  font-size: 12px;
  color: var(--sh-color-text-muted, #666);
  margin-bottom: 0.75rem;
}
.sh-comments-list .comment-meta a { color: inherit; text-decoration: none; }
.sh-comments-list .comment-meta a:hover { text-decoration: underline; }

.sh-comments-list .comment-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sh-color-text, #333);
}
.sh-comments-list .comment-content p { margin: 0 0 0.75rem; }

.sh-comments-list .reply { margin-top: 0.5rem; }
.sh-comments-list .comment-reply-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-red, #CC1B1B);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sh-comments-list .comment-reply-link:hover { text-decoration: underline; }

.sh-comments-list .children {
  list-style: none;
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--sh-gray-100, #f0f0f0);
}

.sh-comments-closed {
  padding: 1rem;
  background: var(--sh-color-bg, #f9f9f9);
  border-left: 3px solid var(--sh-color-text-muted, #666);
  font-size: 14px;
  color: var(--sh-color-text-muted, #666);
}

/* ----- FORMULARZ ----- */

.sh-comment-reply-title {
  font-size: 18px;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--sh-color-text-strong, #111);
}
.sh-comment-reply-title small { font-size: 13px; font-weight: 400; margin-left: 0.5rem; }

.sh-comment-form-notes {
  font-size: 13px;
  color: var(--sh-color-text-muted, #666);
  background: var(--sh-color-bg, #f9f9f9);
  border-left: 3px solid var(--sh-red, #CC1B1B);
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  border-radius: 0 4px 4px 0;
}

.sh-comment-form { margin-top: 0.5rem; }

.sh-comment-form-field {
  margin-bottom: 1rem;
}

.sh-comment-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--sh-color-text, #333);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sh-comment-form-field .sh-required {
  color: var(--sh-red, #CC1B1B);
  font-weight: 700;
}

.sh-comment-form-field input[type="text"],
.sh-comment-form-field input[type="email"],
.sh-comment-form-field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--sh-gray-300, #ccc);
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sh-color-text, #333);
  background: var(--sh-color-bg-alt, #fff);
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.sh-comment-form-field input[type="text"]:focus,
.sh-comment-form-field input[type="email"]:focus,
.sh-comment-form-field textarea:focus {
  outline: none;
  border-color: var(--sh-red, #CC1B1B);
  box-shadow: 0 0 0 2px rgba(204, 27, 27, 0.15);
}

.sh-comment-form-field textarea { min-height: 140px; resize: vertical; }

.sh-comment-form-cookies-consent {
  font-size: 13px;
  color: var(--sh-color-text-muted, #666);
  margin: 0.5rem 0 1rem;
}
.sh-comment-form-cookies-consent input { margin-right: 0.5rem; }

.sh-comment-form-submit { margin: 1.25rem 0 0; }

.sh-comment-submit {
  background: var(--sh-red, #CC1B1B);
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sh-comment-submit:hover,
.sh-comment-submit:focus {
  background: var(--sh-red-dark, #A81515);
  outline: none;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
  .sh-comments-wrap { padding: 0 1rem; margin: 2rem auto 3rem; }
  .sh-comments { padding: 1.25rem; }
  .sh-comments-title { font-size: 18px; }
  .sh-comments-list .children { padding-left: 1rem; }
}

/* ----- DODATKOWE PRZYCISKI dla NIEZALOGOWANYCH (Zaloguj / Zarejestruj) ----- */

.sh-comment-form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.sh-comment-secondary {
  display: inline-block;
  padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sh-red, #CC1B1B);
  background: transparent;
  border: 2px solid var(--sh-red, #CC1B1B);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sh-comment-secondary:hover,
.sh-comment-secondary:focus {
  background: var(--sh-red, #CC1B1B);
  color: #fff;
  outline: none;
  text-decoration: none;
}

@media (max-width: 600px) {
  .sh-comment-form-submit {
    flex-direction: column;
    align-items: stretch;
  }
  .sh-comment-secondary {
    text-align: center;
    margin: 0;
  }
}
