/* =========================================================
   BREADCRUMBS
========================================================= */
.breadcrumb-nav {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "\f105"; /* FontAwesome Angle Right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  padding: 0 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb-item.active {
  color: var(--text-muted);
  pointer-events: none;
}

/* =========================================================
   READING PROGRESS BAR
========================================================= */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* =========================================================
   TABLE OF CONTENTS (TOC)
========================================================= */
.toc-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  position: sticky;
  top: 90px;
}

.toc-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  max-height: 400px;
  overflow-y: auto;
}

.toc-list li {
  margin-bottom: 10px;
  line-height: 1.4;
}

.toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  display: block;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--primary);
  font-weight: 600;
  padding-left: 4px;
}

.toc-item-h2 {
  font-weight: 500;
}

.toc-item-h3 {
  padding-left: 16px;
  font-size: 0.88rem !important;
}

/* =========================================================
   SOCIAL SHARE
========================================================= */
.share-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.share-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-right: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.share-btn.fb:hover { background-color: #1877f2; border-color: #1877f2; }
.share-btn.tw:hover { background-color: #1da1f2; border-color: #1da1f2; }
.share-btn.ln:hover { background-color: #0077b5; border-color: #0077b5; }
.share-btn.wa:hover { background-color: #25d366; border-color: #25d366; }
.share-btn.cp:hover { background-color: var(--primary); border-color: var(--primary); }

/* =========================================================
   AUTHOR PROFILE
========================================================= */
.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(70, 72, 212, 0.03);
  border: 1px solid rgba(70, 72, 212, 0.1);
  border-radius: var(--radius-md);
  margin-top: 40px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.author-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* =========================================================
   RELATED POSTS
========================================================= */
.related-section {
  margin-top: 56px;
}

.related-section h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 800;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.related-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.related-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.related-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.related-title a {
  color: var(--text-main);
  text-decoration: none;
}

.related-title a:hover {
  color: var(--primary);
}
