/* ============================================================
   NaMuTi — blog.css (сторінки статей)
   ============================================================ */

/* Хлібні крихти */
.breadcrumb {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--green);
}

/* Герой статті */
.article-hero {
  padding: 110px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}

.article-hero > * {
  position: relative;
  z-index: 1;
}

.article-emoji {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-cat {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.article-cat.p {
  color: var(--purple);
  background: rgba(155,81,224,.1);
  border: 1px solid rgba(155,81,224,.2);
}

.article-cat.g {
  color: var(--green);
  background: rgba(46,201,154,.1);
  border: 1px solid rgba(46,201,154,.2);
}

.article-cat.y {
  color: var(--yellow);
  background: rgba(245,200,0,.08);
  border: 1px solid rgba(245,200,0,.2);
}

.article-date,
.article-read {
  font-size: 13px;
  color: var(--muted);
}

.article-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: .5;
}

.article-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto;
}

/* Контент статті */
.article-content,
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

.article-content h2,
.article-body h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  line-height: 1.3;
  margin: 44px 0 16px;
  color: var(--text);
}

.article-content h3,
.article-body h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--text);
}

.article-content p,
.article-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 16px;
  transition: var(--tr);
}

.article-content strong,
.article-body strong {
  color: var(--text);
  font-weight: 700;
}

.article-content ul,
.article-content ol,
.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.article-content li,
.article-body li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 6px;
  transition: var(--tr);
}

.article-content li strong,
.article-body li strong {
  color: var(--text);
}

.article-content blockquote,
.article-body blockquote {
  border-left: 4px solid var(--purple);
  background: rgba(155,81,224,.06);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  color: var(--text2);
}

/* Підказка зелена */
.article-tip {
  background: rgba(46,201,154,.07);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

.article-tip strong {
  color: var(--green);
}

/* Попередження червоне */
.article-warn {
  background: rgba(224,92,92,.07);
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

.article-warn strong {
  color: var(--red);
}

/* Інфо-блок purple */
.article-info {
  background: rgba(155,81,224,.06);
  border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

.article-info strong {
  color: var(--purple);
}

/* Приклад (для англійської) */
.example-block {
  background: rgba(46,201,154,.06);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text2);
}

/* Пастка (для англійської) */
.trap-block {
  background: rgba(224,92,92,.06);
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

.trap-block strong {
  color: var(--red);
}

/* Таблиця */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.article-table th,
.article-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-table th {
  background: var(--bg3);
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.article-table td {
  color: var(--text2);
}

.article-table tr:hover td {
  background: var(--bg3);
}

/* Картка-крок */
.step-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin: 12px 0;
  transition: var(--tr);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-right: 10px;
  flex-shrink: 0;
}

.step-card h3 {
  display: inline;
  font-size: 15px;
  margin: 0;
}

.step-card p {
  margin: 10px 0 0;
}

/* Нумерований круг для тем */
.topic-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #0A1F16;
  font-size: 13px;
  font-weight: 800;
  margin-right: 8px;
  vertical-align: middle;
}

.mistake-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-right: 8px;
  vertical-align: middle;
}

/* CTA в статті */
.article-cta {
  text-align: center;
  padding: 44px 28px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  margin: 44px 0;
  transition: var(--tr);
}

.article-cta h2 {
  margin-top: 0 !important;
}

.article-cta p {
  max-width: 440px;
  margin: 0 auto 20px;
  text-align: center;
}

/* Навігація "← На головну" */
.back-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.back-link:hover {
  color: var(--text);
}

/* Футер */
.blog-footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  transition: var(--tr);
}

.blog-footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .article-hero {
    padding: 80px 16px 32px;
  }

  .article-emoji {
    font-size: 44px;
    margin-bottom: 14px;
  }

  .article-content,
  .article-body {
    padding: 28px 16px 48px;
  }

  .article-content p,
  .article-content li,
  .article-body p,
  .article-body li {
    font-size: 14px;
    line-height: 1.75;
  }

  .article-content h3,
  .article-body h3 {
    font-size: 16px;
    margin: 24px 0 8px;
  }

  .article-content blockquote,
  .article-body blockquote,
  .article-tip,
  .article-warn,
  .article-info,
  .example-block,
  .trap-block {
    padding: 14px 16px;
    font-size: 13px;
    margin: 16px 0;
  }

  .article-cta {
    padding: 28px 18px;
    border-radius: 20px;
    margin: 32px 0;
  }

  .article-cta .btn-main {
    width: 100%;
    max-width: 280px;
  }

  .blog-footer {
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
  }

  .article-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-table th,
  .article-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  .step-card {
    padding: 18px;
    border-radius: 14px;
  }

  .breadcrumb {
    font-size: 12px;
    padding: 0 16px;
    margin: 16px auto 0;
  }

  .article-meta {
    gap: 8px;
  }

  .article-date,
  .article-read {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .article-hero {
    padding: 72px 12px 24px;
  }

  .article-content,
  .article-body {
    padding: 20px 12px 40px;
  }

  .article-content h2,
  .article-body h2 {
    margin: 32px 0 12px;
  }

  .article-content ul,
  .article-content ol,
  .article-body ul,
  .article-body ol {
    padding-left: 18px;
  }

  .article-table th,
  .article-table td {
    padding: 6px 8px;
    font-size: 11px;
  }
}
