/*
 * LUBO — single-post.css
 * Szablon wpisu blogowego (post type: post)
 */

/* ==================== SUPPRESS KADENCE ==================== */
body.single-post .entry-hero,
body.single-post .kadence-page-title-wrap,
body.single-post h1.entry-title,
body.single-post .kadence-breadcrumbs,
body.single-post .entry-content-wrap { padding: 0 !important; background: transparent !important; box-shadow: none !important; }

/* ==================== HERO ==================== */
.lubo-post-hero {
  position: relative;
  background: var(--ink);
  padding: 72px 0 56px;
  background-size: cover;
  background-position: center;
}
.lubo-post-hero.has-thumb .lubo-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,21,28,0.62) 0%, rgba(17,21,28,0.82) 100%);
}
.lubo-post-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.lubo-post-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}
.lubo-post-badge:hover { background: var(--orange-2); }
.lubo-post-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.lubo-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}
.lubo-post-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lubo-post-meta-sep { opacity: 0.4; }

/* ==================== LAYOUT ==================== */
.lubo-post-wrap { padding: 48px 0 80px; }

.lubo-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ==================== ARTICLE CONTENT ==================== */
.lubo-post-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.lubo-post-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  color: var(--ink);
}
.lubo-post-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--ink);
}
.lubo-post-content p { margin: 0 0 18px; }
.lubo-post-content ul,
.lubo-post-content ol { margin: 0 0 18px; padding-left: 24px; }
.lubo-post-content li { margin-bottom: 6px; }
.lubo-post-content strong { font-weight: 600; }
.lubo-post-content a { color: var(--orange); text-decoration: underline; }
.lubo-post-content a:hover { color: var(--orange-2); }
.lubo-post-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--ink-2);
}
.lubo-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.lubo-post-content th {
  background: var(--surface-2);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.lubo-post-content td {
  padding: 9px 14px;
  border: 1px solid var(--line);
}
.lubo-post-content tr:nth-child(even) td { background: #fafbfc; }
.lubo-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 8px 0;
}
.lubo-post-content figure { margin: 24px 0; }
.lubo-post-content figcaption {
  font-size: 12px;
  color: var(--ink-4);
  text-align: center;
  margin-top: 6px;
}
.lubo-post-content code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.lubo-post-content pre {
  background: var(--ink);
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 20px 0;
}
.lubo-post-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 13px;
  color: inherit;
}

/* Tags */
.lubo-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.lubo-post-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-3);
  background: var(--surface-2);
}
.lubo-post-tag:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

/* Autor */
.lubo-post-author-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  margin-top: 8px;
}
.lubo-post-author-avatar img { width: 48px; height: 48px; border-radius: 50%; }
.lubo-post-author-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.lubo-post-author-bio { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ==================== SIDEBAR ==================== */
.lubo-post-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }

.lubo-post-widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
}
.lubo-post-widget-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

/* Spis treści */
.lubo-post-toc-list { display: flex; flex-direction: column; gap: 2px; }
.lubo-toc-item {
  display: block;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  line-height: 1.35;
}
.lubo-toc-item:hover { background: var(--surface-2); color: var(--orange); }
.lubo-toc-h3 { padding-left: 20px; font-size: 12px; color: var(--ink-3); }

/* CTA widget */
.lubo-post-cta { background: var(--ink); border-color: var(--ink); }
.lubo-post-cta-icon {
  width: 40px; height: 40px;
  background: var(--orange);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 12px;
}
.lubo-post-cta .lubo-post-widget-title { color: rgba(255,255,255,0.5); }
.lubo-post-cta-body strong { color: #fff; font-size: 14px; display: block; margin-bottom: 6px; }
.lubo-post-cta-body p { color: rgba(255,255,255,0.65); font-size: 12px; line-height: 1.5; margin: 0 0 12px; }
.lubo-post-cta-btn {
  display: block;
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 9px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.lubo-post-cta-btn:hover { background: var(--orange-2); }
.lubo-post-cta-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.lubo-post-cta-link:hover { color: #fff; }

/* Powiązane wpisy */
.lubo-post-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lubo-post-related-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
}
.lubo-post-related-list li a:hover { color: var(--orange); }
.lubo-post-related-list img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }

/* ==================== BANNER CTA ==================== */
.lubo-post-banner-cta {
  background: var(--steel);
  padding: 40px 0;
}
.lubo-post-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lubo-post-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.lubo-post-banner-sub { font-size: 14px; color: rgba(255,255,255,0.65); }
.lubo-post-banner-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.lubo-post-banner-btn {
  background: var(--orange);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
}
.lubo-post-banner-btn:hover { background: var(--orange-2); }
.lubo-post-banner-btn-outline {
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 14px;
}
.lubo-post-banner-btn-outline:hover { border-color: #fff; color: #fff; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .lubo-post-layout { grid-template-columns: 1fr; }
  .lubo-post-sidebar { position: static; }
  .lubo-post-title { font-size: 26px; }
}
@media (max-width: 600px) {
  .lubo-post-hero { padding: 48px 0 36px; }
  .lubo-post-title { font-size: 22px; }
  .lubo-post-banner-inner { flex-direction: column; align-items: flex-start; }
}
