/* ====================================================
   Joey Blaha – Article Pages
   Shared stylesheet for all blog article pages
   ==================================================== */

/* ---- Language visibility ----
   Scoped to page content only — never touches <header> so the toggle button
   always shows both CS and EN labels unchanged. */
html[lang="en"] .article-hero .lang-cs,
html[lang="en"] .article-layout .lang-cs,
html[lang="en"] .article-body.lang-cs,
html[lang="en"] .article-bottom-cta .lang-cs,
html[lang="en"] .article-sidebar .lang-cs,
html[lang="en"] footer .lang-cs { display: none !important; }

html[lang="cs"] .article-hero .lang-en,
html[lang="cs"] .article-layout .lang-en,
html[lang="cs"] .article-body.lang-en,
html[lang="cs"] .article-bottom-cta .lang-en,
html[lang="cs"] .article-sidebar .lang-en,
html[lang="cs"] footer .lang-en { display: none !important; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { margin: 0 6px; opacity: 0.5; }
.breadcrumb-current { color: var(--text-mid); }

/* ---- Article Hero ---- */
.article-hero {
  padding: 48px 0 56px;
  background: var(--surface);
}
.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  max-width: 820px;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-light);
  margin-bottom: 0;
}
.article-meta-author {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-mid);
  font-weight: 500;
}
.article-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-pale);
}
.article-meta-sep { opacity: 0.35; }

/* ---- Cover Image ---- */
.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 56px;
  display: block;
}
.article-cover-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  max-height: 420px;
}
.article-cover-wrap img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ---- Article Layout ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  padding-bottom: 80px;
}

/* ---- Article Body ---- */
.article-body {
  min-width: 0;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-dark);
  margin: 40px 0 14px;
  line-height: 1.3;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 28px 0 10px;
}
.article-body p {
  font-size: 1.06rem;
  line-height: 1.82;
  color: var(--text-mid);
  margin-bottom: 18px;
  max-width: 70ch;
}
.article-body strong { color: var(--text-dark); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin-bottom: 18px;
}
.article-body li {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.article-body li::marker { color: var(--primary); }

/* Tip / Callout Box */
.article-tip {
  background: var(--primary-pale);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.article-tip strong { color: var(--primary-dark); }

/* Numbered tips */
.article-tip-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.article-tip-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1.06rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.tip-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Inline CTA */
.article-inline-cta {
  background: linear-gradient(135deg, hsl(215,75%,48%), hsl(215,70%,36%));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.article-inline-cta p {
  color: rgba(255,255,255,.88);
  margin: 0;
  font-size: 0.97rem;
  max-width: 100%;
  flex: 1;
}
.article-inline-cta strong { color: #fff; }
.article-inline-cta .btn {
  background: #fff;
  color: var(--primary-dark);
  flex-shrink: 0;
  white-space: nowrap;
}
.article-inline-cta .btn:hover { background: var(--primary-pale); }

/* ---- Sidebar ---- */
.article-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.sidebar-card p {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}
.sidebar-cta {
  background: linear-gradient(160deg, hsl(215,75%,48%), hsl(215,65%,36%));
  border: none;
  color: #fff;
}
.sidebar-cta h4 { color: #fff; }
.sidebar-cta p { color: rgba(255,255,255,.82); }
.sidebar-cta .btn {
  background: #fff;
  color: var(--primary-dark);
  width: 100%;
  justify-content: center;
}
.sidebar-cta .btn:hover { background: var(--primary-pale); }
.sidebar-free-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(48,90%,40%);
  background: hsl(48,90%,92%);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.sidebar-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.sidebar-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-pale);
  flex-shrink: 0;
}
.sidebar-author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.sidebar-author-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.related-list li:last-child { border-bottom: none; padding-bottom: 0; }
.related-list a {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.45;
  transition: color var(--transition);
  display: block;
}
.related-list a:hover { color: var(--primary); }

/* ---- Bottom CTA Strip ---- */
.article-bottom-cta {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
.article-bottom-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-dark);
  margin-bottom: 14px;
}
.article-bottom-cta p {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.article-bottom-cta .btn { font-size: 1rem; padding: 14px 32px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-sidebar {
    position: static;
  }
  .sidebar-card { max-width: 480px; }
}

@media (max-width: 640px) {
  .article-hero { padding: 32px 0 36px; }
  .article-title { font-size: 1.55rem; }
  .article-meta { gap: 10px; }
  .article-body p,
  .article-body li { font-size: 1rem; }
  .article-inline-cta { padding: 22px 20px; }
}
