/* Single Blog Custom Styles */

/* Preformatted text/code blocks */
.preformatted-block {
  background: #402919;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 20px 0;
  color: #e2e8f0;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid rgba(255, 108, 8, 0.2);
}

.code-inline {
  background: rgba(255, 108, 8, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ff6c08;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  border: 1px solid rgba(255, 108, 8, 0.2);
}

/* CTA Link Styling - Orange with thin underline on hover */
.cta-link {
  color: #ff6c08 !important;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.cta-link:hover {
  color: #ff6c08 !important;
  text-decoration: none;
}

.cta-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #ff6c08;
  transition: width 0.3s ease;
}

.cta-link:hover::after {
  width: 100%;
}

/* Specific styling for the copy button */
.cta-link.border-white\/10,
button.cta-link {
  color: #ff6c08 !important;
  text-decoration: none;
}

.cta-link.border-white\/10:hover,
button.cta-link:hover {
  text-decoration: none;
}

/* Remove underline from non-link elements */
button.cta-link::after,
.cta-link.border-white\/10::after {
  display: none;
}

/* Ensure all orange CTAs are consistent */
.text-\[\#ff6c08\]:not(.hover\:text-white):not(.group-hover\:text-white) {
  color: #ff6c08 !important;
}

.text-\[\#ff6c08\]:not(.hover\:text-white):not(.group-hover\:text-white):hover {
  color: #ff6c08 !important;
}

.text-\[\#ff6c08\]:not(.hover\:text-white):not(
    .group-hover\:text-white
  ).cta-link:hover::after {
  width: 100%;
}

/* Breadcrumb responsive styling */
@media (max-width: 640px) {
  .max-w-4xl nav ol {
    justify-content: center;
  }

  .max-w-4xl nav ol li {
    flex: 0 0 auto;
  }

  .max-w-4xl nav ol li span {
    max-width: 150px;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .preformatted-block {
    padding: 12px;
    font-size: 13px;
    margin: 16px 0;
  }

  .code-inline {
    padding: 1px 4px;
    font-size: 0.85em;
  }

  /* Hide separators on mobile */
  .hidden.md\:inline {
    display: none;
  }

  /* Ensure breadcrumb wraps properly */
  nav ol {
    flex-wrap: wrap;
    justify-content: center;
  }
}