/* Strona artykułu — 1:1 z szablonu szansa_spotkania_artykul.html */
:focus-visible { outline: 2px solid var(--cr); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── PASEK POSTĘPU ── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--cr); width: 0%; z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 1px 4px rgba(155,28,58,.4);
}

/* ── NAGŁÓWEK ARTYKUŁU ── */
.article-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 36px 0 32px;
}
.article-header-inner { max-width: 1300px; margin: 0 auto; padding: 0 32px; }

.article-hero-cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--cr); background: #f8eaed; border: 1px solid rgba(155,28,58,.18);
  padding: 4px 12px; border-radius: 4px; text-decoration: none;
  margin-bottom: 18px; display: inline-block; transition: background .2s, color .2s;
}
.article-hero-cat:hover { background: var(--cr); color: var(--white); }

.article-hero-title {
  font-family: var(--serif); font-size: clamp(28px, 3.2vw, 46px); font-weight: 300;
  color: var(--deep); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 20px;
}
.article-hero-title em { font-style: italic; color: var(--cr); }

.article-hero-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.article-hero-meta .sep { color: var(--border); }
.article-hero-meta .read-time { color: var(--cr); font-weight: 600; }

/* ── ZDJĘCIE WYRÓŻNIAJĄCE ── */
.article-featured-img {
  width: 100%; position: relative; padding-top: min(56.25%, 520px);
  overflow: hidden; background: var(--warm);
}
.article-featured-img img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.article-featured-img-placeholder { position: absolute; inset: 0; }
.article-featured-img-placeholder::before {
  content: ''; position: absolute; inset: 20px;
  border: 1px solid var(--border); pointer-events: none;
}
.article-featured-img-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, transparent 49.4%, var(--border) 49.4%, var(--border) 50.6%, transparent 50.6%),
    linear-gradient(to right,  transparent 49.4%, var(--border) 49.4%, var(--border) 50.6%, transparent 50.6%);
  opacity: .45;
}

/* ── LAYOUT DWUKOLUMNOWY ── */
.article-layout {
  max-width: 1300px; margin: 0 auto;
  padding: 56px 32px 80px;
  display: grid; grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* ── TREŚĆ ARTYKUŁU ── */
.article-lead,
.article-content p.article-lead {
  font-family: 'Lora', Georgia, serif; font-size: 24px; font-weight: 400; font-style: italic;
  color: var(--deep); line-height: 1.7; letter-spacing: -.015em;
  margin-bottom: 36px;
}

.article-content h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: var(--deep); line-height: 1.25; letter-spacing: -.02em;
  margin-top: 48px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  scroll-margin-top: 110px;
}
.article-content h2::before {
  content: ''; width: 4px; height: 26px; background: var(--cr);
  border-radius: 2px; flex-shrink: 0;
}

.article-content h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--deep); line-height: 1.3; letter-spacing: -.01em;
  margin-top: 32px; margin-bottom: 12px;
  scroll-margin-top: 110px;
}

.article-content p {
  font-family: 'Lora', Georgia, serif;
  font-size: 16.5px; line-height: 1.9; color: #3a2a20;
  margin-bottom: 24px;
}
.article-content p:last-child { margin-bottom: 0; }

.article-content blockquote {
  background: var(--warm); border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px; margin: 36px 0;
  font-family: var(--serif); font-size: 19px; font-style: italic;
  color: var(--deep); line-height: 1.6; letter-spacing: -.01em;
}

.article-callout {
  background: var(--warm); border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 22px 28px; margin: 36px 0;
}
.article-callout p { font-size: 17px; font-family: var(--serif); font-style: italic; color: var(--deep); margin-bottom: 0; line-height: 1.7; }

.article-content ul {
  margin: 20px 0 28px; padding: 0;
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.article-content ul li {
  font-size: 16px; color: #3a2a20; line-height: 1.75;
  padding-left: 22px; position: relative;
}
.article-content ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cr);
}

.article-content a { color: var(--cr); }
.article-content a:hover { text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 24px 0; display: block; }

.article-divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── BIO AUTORA ── */
.article-author {
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border);
  display: flex; gap: 24px; align-items: flex-start;
}
.author-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cr) 0%, var(--deep) 100%);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--white);
  letter-spacing: -.02em;
}
.author-info { flex: 1; }
.author-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.author-name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--deep); margin-bottom: 8px; }
.author-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 28px; }

/* CTA Poradnia */
.sidebar-cta {
  background: linear-gradient(135deg, var(--deep) 0%, #2f0e1a 100%);
  border-radius: 14px; padding: 24px 22px; position: relative; overflow: hidden;
}
.sidebar-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 10% 50%, rgba(155,28,58,.3) 0%, transparent 60%);
  pointer-events: none;
}
.sidebar-cta-label { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 10px; position: relative; }
.sidebar-cta-title { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--white); line-height: 1.3; margin-bottom: 10px; position: relative; }
.sidebar-cta-title em { font-style: italic; color: #f0c880; }
.sidebar-cta-desc { font-size: 12.5px; color: #b8a898; line-height: 1.65; margin-bottom: 18px; position: relative; }
.sidebar-cta-btn {
  display: inline-block; background: var(--cr); color: var(--white);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  padding: 10px 20px; border-radius: 7px; text-decoration: none;
  transition: background .2s, transform .15s; position: relative;
}
.sidebar-cta-btn:hover { background: #7a1e2e; transform: translateY(-1px); }

/* Powiązane artykuły */
.related-box { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.related-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); margin: 0;
}
.related-header::before { content: ''; width: 3px; height: 14px; background: var(--cr); border-radius: 2px; }
.related-list { padding: 8px 0; }
.related-item { display: block; padding: 12px 20px; text-decoration: none; transition: background .18s; border-bottom: 1px solid var(--border); }
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: var(--cream); }
.related-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cr); margin-bottom: 4px; }
.related-title { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--deep); line-height: 1.35; }
.related-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Newsletter mini */
.sidebar-newsletter { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px; }
.sidebar-newsletter-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.sidebar-newsletter-title { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--deep); margin: 0 0 10px; }
.sidebar-newsletter-desc { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.sidebar-nl-form { display: flex; flex-direction: column; gap: 8px; }
.sidebar-nl-input {
  font-family: var(--sans); font-size: 13px; padding: 10px 14px; border-radius: 7px;
  border: 1.5px solid var(--border); background: var(--cream); color: var(--deep); outline: none;
  transition: border-color .2s;
}
.sidebar-nl-input:focus { border-color: var(--cr); }
.sidebar-nl-input::placeholder { color: var(--muted); font-size: 12px; }
.sidebar-nl-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 7px;
  background: var(--cr); color: var(--white); border: none; cursor: pointer;
  transition: background .2s; letter-spacing: .03em;
}
.sidebar-nl-btn:hover { background: #7a1e2e; }
.sidebar-nl-note { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

/* ── ANIMACJE ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.article-featured-img { animation: fadeUp .5s ease both; }
.article-header        { animation: fadeUp .5s .1s ease both; }
.article-body          { animation: fadeUp .5s .15s ease both; }
.article-sidebar       { animation: fadeUp .5s .2s ease both; }

/* ── RESPONSYWNOŚĆ ── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px 60px; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .article-header { padding: 28px 0 24px; }
  .article-header-inner { padding: 0 20px; }
  .article-layout { padding: 32px 20px 60px; gap: 32px; }
  .article-hero-meta { flex-wrap: wrap; gap: 8px; }
  /* Sidebar sidebar newsletter form i info-strip (poradnia) */
  .info-strip { grid-template-columns: 1fr; gap: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 600px) {
  .article-header-inner { padding: 0 16px; }
  .article-layout { padding: 28px 16px 48px; }
  .article-hero-title { font-size: clamp(22px, 6vw, 32px); }
  .article-lead, .article-content p.article-lead { font-size: 18px; }
  .article-content p { font-size: 15px; line-height: 1.8; }
  .article-content h2 { font-size: 21px; }
  .article-content h3 { font-size: 18px; }
  .article-author { flex-direction: column; gap: 16px; }
  .author-avatar { width: 56px; height: 56px; font-size: 22px; }
  /* Related articles */
  .related-box { margin: 0 -4px; }
  /* Sidebar CTA */
  .sidebar-cta { padding: 20px 18px; }
  .sidebar-cta-title { font-size: 17px; }
}

/* ── WIDEO (YouTube embed w treści artykułu) ── */
.article-content .video-embed {
  display: block;
  width: 100%;
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.article-content .video-embed iframe,
.article-content iframe[src*="youtube"] {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}
/* Pojedynczy iframe bez wrappera — własny margines i zaokrąglenie */
.article-content > iframe[src*="youtube"],
.article-content p > iframe[src*="youtube"] {
  margin: 32px 0;
  border-radius: 12px;
}
/* Fallback dla starszych przeglądarek bez aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .article-content .video-embed iframe,
  .article-content iframe[src*="youtube"] { height: 56.25vw; max-height: 70vh; }
}

