/* Read time badge on homepage */
.post-read-time {
  color: #888;
  font-size: 0.85em;
  white-space: nowrap;
}
body.dark-mode .post-read-time { color: #8b949e; }

#back-to-top {
  position: fixed;
  bottom: 144px;
  right: 24px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #008AFF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,138,255,0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s;
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#back-to-top:hover {
  background: #0072d6;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 20px rgba(0,138,255,0.45);
}

#back-to-top:active {
  transform: scale(0.95);
}

@media (max-width: 576px) {
  #back-to-top { bottom: 228px; right: 14px; width: 40px; height: 40px; }
}
