/* ============================================================
   Blog článek — Viktor Skoczek (raw wireframe, 1:1 z Figma)
   Figma frame: 83:262 „Blog článek"
   ============================================================ */

/* ---------- 0 · Header (aktivní stav "Blog") ---------- */
.site-nav a[href="blog.html"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 1 · Article hero ---------- */
.article-hero {
  background: var(--white);
  padding-top: 40px;
  padding-bottom: 40px;
}

.article-hero__back {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-60);
  transition: color .2s ease;
}
@media (hover: hover) {
  .article-hero__back:hover { color: var(--accent-text); }
}

.article-hero__meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.chip--category {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.12);
  color: var(--accent-text);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

.article-hero__date {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--ink-60);
}

.article-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.12;
  color: var(--ink);
  max-width: 780px;
  margin-top: 14px;
}

.article-hero__img {
  margin-top: 32px;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(38, 36, 31, 0.18);
}
.article-hero__img img {
  width: 100%;
  height: 266px;
  object-fit: cover;
}

/* ---------- 3 · Article body ---------- */
.article-body {
  background: var(--white);
  padding-block: 64px;
}

.article-content {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 24px;
}

.article-content > * + * { margin-top: 24px; }

.article-content__intro {
  font-family: var(--font-text);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-80);
}

.article-content p {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-80);
}

.article-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 40px;
}

.article-content h2 + p { margin-top: 20px; }

/* highlight box — modelový příklad */
.highlight-box {
  background: var(--accent-15);
  border-radius: var(--r-card);
  padding: 28px;
  margin-top: 40px;
}

.highlight-box__title {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

.highlight-box__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.highlight-box__row--total { padding-top: 16px; }

.highlight-box__label {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--ink);
}
.highlight-box__value {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.highlight-box__total-label {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.highlight-box__total-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent-text);
}

.highlight-box__divider {
  height: 1px;
  background: var(--ink-10);
}

.highlight-box__footnote {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-60);
  margin-top: 16px;
}

/* inline CTA band v textu článku */
.article-cta {
  background: var(--accent-15);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}
.article-cta p {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.article-cta .btn { flex-shrink: 0; white-space: nowrap; }

/* autor box */
.author-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--accent-15);
  border: 1px solid rgba(36, 34, 35, 0.05);
  border-radius: var(--r-card);
  padding: 28px;
  margin-top: 56px;
}

.author-box__portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box__name {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}
.author-box__role {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--ink-60);
  margin-top: 4px;
}
.author-box__bio {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--ink-60);
  margin-top: 6px;
}

/* ---------- 4 · Mohlo by vás zajímat ---------- */
.related-posts {
  background: var(--accent-15);
  padding-block: 80px;
}

.related-posts__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 40px;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 24px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(38, 36, 31, 0.18);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s cubic-bezier(.16,1,.3,1);
}
.related-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -18px rgba(38, 36, 31, 0.32); }
.related-card:hover .related-card__img { transform: scale(1.05); }

.related-card__img {
  width: 100%;
  height: 308px;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}

.related-card__body {
  padding: 24px;
}

.chip--muted {
  display: inline-flex;
  align-items: center;
  background: rgba(36, 34, 35, 0.05);
  color: var(--ink-60);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

.related-card__title {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 16px;
}

/* ---------- 5 · CTA banner ---------- */
.cta-banner-section {
  background: var(--white);
  padding-block: 80px;
}

.cta-banner {
  background: var(--accent);
  border-radius: var(--r-card);
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.22;
  color: var(--on-accent);
  max-width: 700px;
}

.cta-banner__subtitle {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 640px;
  margin-top: 12px;
}

.cta-banner__btn {
  background: var(--ink);
  color: var(--white);
  flex-shrink: 0;
}

/* ---------- Responsive (základní stack, ne bespoke mobil) ---------- */
@media (max-width: 900px) {
  .article-hero__title { font-size: 32px; }
  .article-hero__img img { height: auto; }
  .article-content { max-width: 100%; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .highlight-box__row { flex-wrap: wrap; }
  .article-cta { flex-direction: column; align-items: flex-start; }
}

/* stagger souvisejících článků: sudé karty níž (margin, ne transform) */
@media (min-width: 901px) {
  .related-posts__grid > .related-card:nth-child(even) { margin-top: 24px; }
}
