/* Copy Button Styling */
.copy-code-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #334155;
  color: #e2e8f0;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  z-index: 10;
}

.copy-code-button:hover {
  background-color: #475569;
  transform: translateY(-1px);
}

.copy-code-button:active {
  transform: translateY(0);
}

/* Link copied notification */
.link-copied-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--bgSoft);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 1000;
}

.link-copied-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Fix for single blog post layout */
.singleBottom {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-top: 50px;
  overflow: hidden; /* Prevent overflow */
}

/* Update singleContent to prevent overflow */
.singleContent {
  max-width: calc(100% - 350px); /* Ensure content doesn't overflow */
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .singleContent {
    max-width: 100%;
  }
}
