/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  margin-bottom: 20px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
}

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

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

.breadcrumb-current {
  color: var(--ink-soft);
  font-weight: 500;
  /* truncate long titles */
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

.breadcrumb-sep {
  font-size: 13px;
  color: var(--border);
  user-select: none;
  list-style: none;
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}

.author-box:hover {
  box-shadow: var(--shadow-hover);
}

/* Decorative top accent bar */
.author-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--amber));
}

/* Decorative background pattern */
.author-box::after {
  content: '✍️';
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 80px;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

/* ── Avatar ── */
.author-box__avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.author-box__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  display: block;
  transition: transform 0.3s, border-color 0.3s;
}

.author-box__avatar-wrap:hover .author-box__avatar {
  transform: scale(1.04);
  border-color: var(--amber);
}

.author-box__badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: var(--amber);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

/* ── Info column ── */
.author-box__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Header row ── */
.author-box__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.author-box__label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.author-box__name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
  display: block;
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.2s;
}

.author-box__name:hover { color: var(--indigo); }

.author-box__specialty {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--indigo);
  margin-top: 3px;
}

/* ── Stats ── */
.author-box__stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.author-box__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 70px;
}

.author-box__stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--indigo);
  line-height: 1;
}

.author-box__stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ── Education ── */
.author-box__education {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 6px;
  padding: 7px 12px;
  width: fit-content;
}

.author-box__education-icon { font-size: 14px; }

/* ── Bio ── */
.author-box__bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

/* ── Footer ── */
.author-box__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── Social links ── */
.author-box__socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.author-box__social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 0.2s;
  text-decoration: none;
}

.author-box__social-link:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61,79,124,0.2);
}

/* ── CTA ── */
.author-box__cta {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  white-space: nowrap;
}

.author-box__cta:hover { gap: 8px; color: var(--indigo); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
  }

  .author-box::after { display: none; }

  .author-box__header {
    flex-direction: column;
    align-items: center;
  }

  .author-box__label { text-align: center; }

  .author-box__education { margin: 0 auto; }

  .author-box__footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-box__socials { justify-content: center; }

  .author-box__stats { flex-direction: row; }
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--amber));
  width: 0%;
  z-index: 9999;
  transition: width 0.15s linear;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   SITE-WIDE SEARCH RESULTS HIGHLIGHT
   ============================================================ */
mark, .search-highlight {
  background: rgba(232,160,32,0.25);
  color: var(--ink);
  border-radius: 2px;
  padding: 0 2px;
}
