/* single-pro.css — article page enhancements: sticky share rail, avatar
   images, author box upgrade, listen button, view-count meta, reading mode */

/* ── Article internal layout: sticky rail + main content ─────────────── */
.article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.article-main {
  flex: 1;
  min-width: 0;
}

.article-sticky-share {
  display: none; /* shown on desktop only, see media query below */
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 96px;
  flex: 0 0 auto;
  width: 44px;
}
.article-sticky-share button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}
.article-sticky-share button:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.article-sticky-share button[data-bookmark-current].is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.article-sticky-share__count {
  font-size: 11px;
  color: var(--color-text-light);
  text-align: center;
}

@media (min-width: 1080px) {
  .article-sticky-share { display: flex; }
}

/* ── Avatar with real photo (falls back to initials if no <img>) ───────── */
.avatar--link {
  text-decoration: none;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Article meta: author link + live view counter ───────────────────── */
.article-meta__author {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
}
.article-meta__author:hover { color: var(--color-primary); }
.article-meta__views {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 12.5px;
  color: var(--color-text-light);
}

/* ── Listen-to-article button ──────────────────────────────────────────── */
.article-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-listen-btn[aria-pressed="true"] {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}

/* ── Author box upgrade ────────────────────────────────────────────────── */
.author-box-pro .avatar { width: 56px; height: 56px; font-size: 1.4rem; }
.author-box-pro h2 { margin: 0 0 2px; font-size: 17px; }
.author-box-pro h2 a { color: inherit; text-decoration: none; }
.author-box-pro__role {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.author-box-pro p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}
.author-box-pro__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.author-box-pro__all-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.author-box-pro__social {
  display: flex;
  gap: 8px;
}
.author-box-pro__social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 12px;
  text-decoration: none;
}
.author-box-pro__social a:hover { background: var(--color-primary); color: #fff; }

@media (max-width: 720px) {
  .article-meta__views { flex-basis: 100%; margin-left: 0; }
}
