/*************************************************************
 * Echo – Blog Brand Pack (verze komplet + fix pro H1)
 * Autor: ChatGPT – personalizace pro fronkovi.com
 *************************************************************/

/* Akcent a doplňkové barvy */
:root {
  --accent: #c19a6b; /* hlavní medová barva */
  --muted: #767676; /* tlumený text */
}

/* ========== Výpis blogu (karty) ========== */
html body[class*="blog"] .articles,
html body[class*="blog"] .articles-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 24px !important;
}

html body[class*="blog"] .articles .article,
html body[class*="blog"] .articles-list .article,
html body[class*="blog"] .articles-list .article-item {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.06) !important;
  overflow: hidden !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

html body[class*="blog"] .articles .article:hover,
html body[class*="blog"] .articles-list .article-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.08) !important;
}

/* Náhledový obrázek */
html body[class*="blog"] .article .image img,
html body[class*="blog"] .articles-list .article-item img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Obsah karty */
html body[class*="blog"] .article .content,
html body[class*="blog"] .articles-list .article-item .content {
  padding: 16px 18px 20px !important;
}

/* Nadpis ve výpisu */
html body[class*="blog"] .article .name a,
html body[class*="blog"] .article h2 a {
  font-size: 1.12rem !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* Perex + meta */
html body[class*="blog"] .article .perex,
html body[class*="blog"] .article .description {
  margin-top: 8px !important;
  color: #444 !important;
}
html body[class*="blog"] .article .date,
html body[class*="blog"] .article .meta {
  color: var(--muted) !important;
  font-size: .9rem !important;
}

/* CTA */
html body[class*="blog"] .article .more a,
html body[class*="blog"] .article .btn {
  display: inline-block !important;
  margin-top: 12px !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  background: var(--accent) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: opacity .2s ease, transform .08s ease !important;
}
html body[class*="blog"] .article .more a:hover {
  opacity: .92 !important;
}
html body[class*="blog"] .article .more a:active {
  transform: translateY(1px) !important;
}

/* Stránkování */
html body[class*="blog"] .pagination,
html body[class*="blog"] .paginator {
  margin-top: 28px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
}
html body[class*="blog"] .pagination a,
html body[class*="blog"] .pagination span,
html body[class*="blog"] .paginator a,
html body[class*="blog"] .paginator span {
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  background: #f4f4f4 !important;
}
html body[class*="blog"] .pagination .active,
html body[class*="blog"] .paginator .active {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ========== Detail článku (šířka + typografie) ========== */
html body[class*="blog"] .article-detail .content,
html body[class*="blog"] .blog-article .content {
  max-width: 72ch !important;
  margin: 0 auto !important;
  font-size: 1.06rem !important;
  line-height: 1.72 !important;
}

/* ====== H1 – všechny varianty ====== */
/* 1) H1 v běžném obsahu článku */
html body[class*="blog"] .content h1,
html body[class*="blog"] .content h1 a {
  color: var(--accent) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: clamp(26px, 3vw, 32px) !important;
  letter-spacing: .2px !important;
  margin: 0 0 8px !important;
}

/* 2) H1 s atributy itemprop + data-testid (tvůj případ) */
h1[itemprop="headline"][data-testid="textArticleTitle"] {
  color: var(--accent) !important;
  font-size: clamp(26px, 3vw, 32px) !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
  margin: 0 0 8px !important;
}

/* ====== H2 – s linkou pod nadpisem ====== */
html body[class*="blog"] .content h2,
html body[class*="blog"] .content h2 a {
  margin: 28px 0 10px !important;
  font-size: clamp(20px, 2.4vw, 24px) !important;
  color: var(--accent) !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
  padding-bottom: 6px !important;
  position: relative !important;
  text-decoration: none !important;
}
html body[class*="blog"] .content h2::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 60px !important;
  height: 3px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  opacity: .25 !important;
}

/* Odstavce */
html body[class*="blog"] .content p {
  margin: 10px 0 14px !important;
}

/* Seznamy */
html body[class*="blog"] .content ul {
  margin: 8px 0 16px 20px !important;
  list-style: none !important;
  padding-left: 0 !important;
}
html body[class*="blog"] .content li {
  margin: 6px 0 !important;
  padding: 8px 12px !important;
  background: linear-gradient(180deg,#fff8e1,#fff) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 8px !important;
}

/* Zvýraznění a tlumený text */
html body[class*="blog"] .content strong {
  color: var(--accent) !important;
}
html body[class*="blog"] .content .muted {
  color: var(--muted) !important;
}

/* Odkazy v článku */
html body[class*="blog"] .content a {
  color: var(--accent) !important;
  text-decoration: underline !important;
  text-underline-offset: .12em !important;
}
html body[class*="blog"] .content a:hover {
  opacity: .9 !important;
}

/* Obrázky uvnitř článku */
html body[class*="blog"] .content img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 18px auto !important;
  border-radius: 14px !important;
}

/* Citace */
html body[class*="blog"] blockquote {
  margin: 1.2em 0 !important;
  padding: .9em 1.1em !important;
  border-left: 4px solid rgba(0,0,0,.12) !important;
  background: #fafafa !important;
  border-radius: 10px !important;
}

/* Kód */
html body[class*="blog"] pre {
  padding: 12px 14px !important;
  background: #0f172a !important;
  color: #fff !important;
  border-radius: 12px !important;
  overflow: auto !important;
  font-size: .95rem !important;
}

/* Tabulky */
html body[class*="blog"] .content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1em 0 !important;
}
html body[class*="blog"] .content table td,
html body[class*="blog"] .content table th {
  padding: .6em .8em !important;
  border-bottom: 1px solid #eee !important;
}

/* Breadcrumbs */
html body[class*="blog"] .breadcrumbs {
  margin-bottom: 10px !important;
  font-size: .95rem !important;
}

/* Související obsah */
html body[class*="blog"] .related-articles .article,
html body[class*="blog"] .related-products .product {
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.06) !important;
}
