/* ========== BLOG ENHANCEMENTS — SHARED STYLES ========== */

/* ---------- Back Navigation ---------- */
.back-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.back-nav:hover {
  color: #1a1a2e;
  border-color: #94a3b8;
  background: #f1f5f9;
  transform: translateX(-2px);
}

.back-nav svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.back-nav:hover svg {
  transform: translateX(-2px);
}

/* ---------- Social Sharing ---------- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 8px;
  padding: 24px 0;
  border-top: 1px solid #e8e8e8;
}

.share-bar-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8fafc;
  color: #475569;
  line-height: 1;
}

.share-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* LinkedIn */
.share-btn--linkedin {
  color: #0a66c2;
  border-color: #0a66c2;
}

.share-btn--linkedin:hover {
  background: #0a66c2;
  color: #fff;
}

.share-btn--linkedin svg {
  fill: currentColor;
}

/* X / Twitter */
.share-btn--x {
  color: #0f1419;
  border-color: #536471;
}

.share-btn--x:hover {
  background: #0f1419;
  color: #fff;
}

.share-btn--x svg {
  fill: currentColor;
}

/* Copy Link */
.share-btn--copy {
  color: #6366f1;
  border-color: #6366f1;
}

.share-btn--copy:hover {
  background: #6366f1;
  color: #fff;
}

.share-btn--copy svg {
  stroke: currentColor;
  fill: none;
}

.share-btn--copy.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

/* ---------- Giscus Container ---------- */
.giscus-container {
  margin: 40px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid #e8e8e8;
}

.giscus-container h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: #6366f1;
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .share-bar {
    gap: 8px;
  }

  .share-btn {
    font-size: 12px;
    padding: 7px 12px;
  }

  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}
