/* =================================================================
   TryVinci – Single Post Page
   Matches BlogPostPage.tsx dark design
   ================================================================= */

/* ── Page wrapper ──────────────────────────────────────────────── */
.tv-single {
  background: #09090b;
  color: #fff;
  min-height: 100vh;
  position: relative;
}

/* Hide default WP post paddings on this template */
.tv-single.wp-block-group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ── Blurred hero ──────────────────────────────────────────────── */
.tv-single__hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
#wp--skip-link--target
  > div.wp-block-group.tv-single__wrap.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-1a99bc5f.wp-block-group-is-layout-constrained
  > hr {
  width: unset !important;
}
/* Featured image fills hero area */
.tv-single__hero .wp-block-post-featured-image,
.tv-single__hero figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.tv-single__hero .wp-block-post-featured-image img,
.tv-single__hero figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(7px);
  transform: scale(1.06);
  display: block;
}

/* Gradient: transparent → dark, covering the hero */
.tv-single__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 9, 11, 0.55) 0%,
    rgba(9, 9, 11, 0.8) 45%,
    #09090b 100%
  );
  z-index: 1;
}

/* ── Content wrapper ───────────────────────────────────────────── */
.tv-single__wrap {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 10rem 1.5rem 6rem; /* = eksport: pt-40 pb-24 px-6 */
}
@media (min-width: 768px) {
  /* eksport nie zwiększa pionowego paddingu na desktopie (pt-40 flat) —
       wcześniej 12rem/8rem dawało zbyt dużą przerwę u góry artykułu */
  .tv-single__wrap {
    padding: 10rem 2rem 6rem;
  }
}

/* ── Back link ─────────────────────────────────────────────────── */
.tv-single__back-wrap {
  margin: 0 0 3rem !important;
  padding: 0 !important;
}
.tv-single__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #71717a;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s;
}
.tv-single__back:hover {
  color: #fff;
}

/* ── Meta: category · date ─────────────────────────────────────── */
.tv-single__meta {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem !important;
  flex-wrap: wrap;
}

/* Category terms */
.tv-single__cat-terms,
.tv-single__cat-terms a,
.tv-single__cat-terms .wp-block-post-terms__separator {
  font-size: 0.6875rem !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ef6a23 !important;
  text-decoration: none;
}

/* Dot separator before date */
.tv-single__date-block::before {
  content: "·";
  margin-right: 0.6rem;
  color: #3f3f46;
  font-weight: 400;
}

/* Date */
.tv-single__date-block,
.tv-single__date-block time {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  color: #71717a !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Title ─────────────────────────────────────────────────────── */
.tv-single__title,
.tv-single .wp-block-post-title {
  font-size: clamp(1.875rem, 4vw, 3.25rem) !important;
  font-weight: 600 !important;
  color: #fff !important;
  line-height: 1.15 !important;
  margin: 0 0 1.25rem !important;
}

/* ── Excerpt ───────────────────────────────────────────────────── */
.tv-single__excerpt,
.tv-single .wp-block-post-excerpt__excerpt,
.tv-single .wp-block-post-excerpt p {
  font-size: 1.125rem !important;
  color: #a1a1aa !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  margin: 0 0 5rem !important;
}
.tv-single .wp-block-post-excerpt__more-link {
  display: none;
}

/* ── Divider ───────────────────────────────────────────────────── */
.tv-single__divider {
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin: 0 0 2rem !important;
  background: none !important;
}

/* ── Post content ──────────────────────────────────────────────── */
.tv-single__content {
  color: #d4d4d8;
}

/* Paragraphs */
.tv-single__content p,
.tv-single .entry-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #d4d4d8;
  margin-bottom: 1.75rem;
}

/* Headings h2 */
.tv-single__content h2,
.tv-single .entry-content h2 {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 900;
  color: #ef6a23;
  margin: 3rem 0 1.5rem;
  line-height: 1.3;
  padding-left: 1.25rem;
  border-left: 4px solid #ef6a23;
}

/* Headings h3 */
.tv-single__content h3,
.tv-single .entry-content h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  margin: 2.5rem 0 1rem;
  line-height: 1.35;
}

/* Headings h4-h6 */
.tv-single__content h4,
.tv-single__content h5,
.tv-single__content h6,
.tv-single .entry-content h4,
.tv-single .entry-content h5,
.tv-single .entry-content h6 {
  color: #e4e4e7;
  font-weight: 700;
  margin: 1.75rem 0 0.875rem;
}

/* Lists */
.tv-single__content ul,
.tv-single .entry-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.75rem;
}
.tv-single__content ul li,
.tv-single .entry-content ul li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #d4d4d8;
  margin-bottom: 0.5rem;
  list-style-type: disc;
}
.tv-single__content ul li::marker,
.tv-single .entry-content ul li::marker {
  color: #ef6a23;
}

.tv-single__content ol,
.tv-single .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.75rem;
}
.tv-single__content ol li,
.tv-single .entry-content ol li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #d4d4d8;
  margin-bottom: 0.5rem;
}
.tv-single__content ol li::marker {
  color: #ef6a23;
}

/* Strong / bold */
.tv-single__content strong,
.tv-single .entry-content strong {
  color: #fff;
  font-weight: 900;
}

/* Links */
.tv-single__content a,
.tv-single .entry-content a {
  color: #ef6a23;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.tv-single__content a:hover,
.tv-single .entry-content a:hover {
  color: #fff;
}

/* Blockquote */
.tv-single__content blockquote,
.tv-single .entry-content blockquote {
  border-left: 4px solid #ef6a23;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(239, 106, 35, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
  color: #e4e4e7;
  font-style: italic;
}

/* Code */
.tv-single__content code,
.tv-single .entry-content code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  padding: 0.15em 0.45em;
  font-size: 0.9em;
  color: #fb923c;
}
.tv-single__content pre,
.tv-single .entry-content pre {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.75rem;
}
.tv-single__content pre code,
.tv-single .entry-content pre code {
  background: none;
  padding: 0;
  color: #e4e4e7;
}

/* Images inside content */
.tv-single__content img,
.tv-single .entry-content img {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
}

/* ── Sources section („Źródła") — mała, wyszarzona jak eksport ──────
   Eksport: nagłówek text-sm zinc-500 uppercase tracking-wider;
   pozycje text-[10px] md:text-xs zinc-500 leading-tight. (zinc-500 = #71717a) */
.tv-single__sources {
  margin-top: 5rem; /* mt-20 */
  padding-top: 2.5rem; /* pt-10 */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* etykieta „Źródła:" (h2/h3 z treści) */
.tv-single__sources h2,
.tv-single__sources h3,
.tv-single__sources-label {
  font-size: 0.875rem !important; /* text-sm */
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a !important; /* zinc-500 */
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 1.3 !important;
}
.tv-single__sources p,
.tv-single__sources li,
.tv-single__sources ol li {
  font-size: 0.75rem !important; /* md:text-xs */
  color: #71717a !important; /* zinc-500 */
  line-height: 1.45 !important;
  margin-bottom: 0.5rem !important;
  font-weight: 400 !important;
}
.tv-single__sources a {
  color: #71717a !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tv-single__sources a:hover {
  color: #d4d4d8 !important;
}
.tv-single__sources strong {
  color: #a1a1aa !important;
  font-weight: 700;
}
@media (max-width: 767px) {
  .tv-single__sources p,
  .tv-single__sources li,
  .tv-single__sources ol li {
    font-size: 0.625rem !important;
  } /* text-[10px] */
}

/* ── Footer nav ────────────────────────────────────────────────── */
.tv-single .wp-block-post-navigation-link a {
  color: #71717a;
  font-weight: 700;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.tv-single .wp-block-post-navigation-link a:hover {
  color: #ef6a23;
}
