/* Additional custom styles for the blog */

/* Reading time and date styling */
.quarto-title-meta-contents {
  font-size: 0.9rem;
}

/* Category badges */
.quarto-category {
  background-color: #f0f4ff;
  color: #002fa7;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better image styling */
article img {
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

/* Math styling */
.math.display {
  overflow-x: auto;
  padding: 1rem 0;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e8e4df;
}

th {
  background-color: #faf9f7;
  font-weight: 600;
}

/* Back to main site link */
.navbar-nav .nav-link[href="/"] {
  font-weight: 500;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #002fa7;
  outline-offset: 2px;
}

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e4df;
}

.share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #4b5563;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  text-decoration: none;
}

.share-link:hover {
  color: #fff;
  background-color: #002fa7;
}
