.aside-custom {
  background-color: rgba(147, 121, 113, 0.9);
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.main-custom-bg {
  background-color: rgba(147, 121, 113, 0.6);
}

#main-content {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.aside-hover a:hover,
.aside-hover a.active {
  color: rgb(60, 46, 46);
  transition: color 0.3s ease;
}

#sidebar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top;
}

#sidebar.menu-hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px) scaleY(0.8);
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

#sidebar.menu-visible {
  max-height: 100vh;
  opacity: 1;
  transform: translateY(0) scaleY(1);
}

#menu-toggle {
  transition: transform 0.3s ease;
}

#menu-toggle.active {
  transform: rotate(90deg);
}

.menu-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.menu-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.menu-item:nth-child(1) {
  transition-delay: 0.1s;
}
.menu-item:nth-child(2) {
  transition-delay: 0.2s;
}
.menu-item:nth-child(3) {
  transition-delay: 0.3s;
}
.menu-item:nth-child(4) {
  transition-delay: 0.4s;
}
.menu-item:nth-child(5) {
  transition-delay: 0.5s;
}
.menu-item:nth-child(6) {
  transition-delay: 0.6s;
}
.menu-item:nth-child(7) {
  transition-delay: 0.7s;
}
.menu-item:nth-child(8) {
  transition-delay: 0.8s;
}
.menu-item:nth-child(9) {
  transition-delay: 0.9s;
}

/* Animated divider lines */
.divider-line {
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.6);
  margin: 0 auto;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.divider-line.animate-in {
  width: 70%;
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced markdown styling for inline articles */
.article-content {
  color: #374151;
  line-height: 1.75;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #111827;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h1 {
  font-size: 2.25rem;
}
.article-content h2 {
  font-size: 1.875rem;
}
.article-content h3 {
  font-size: 1.5rem;
}
.article-content h4 {
  font-size: 1.25rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote,
.summary-style {
  border-left: 4px solid rgb(60, 46, 46);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: rgb(60, 46, 46);
  background-color: rgb(248, 250, 252);
  padding: 1rem;
  border-radius: 0.375rem;
}

.summary-card {
  color: rgb(60, 46, 46);
}

.article-content a {
  color: rgba(53, 46, 60, 0.5);
  text-decoration: none;
  font-weight: 700;
}

.back-button {
  color: rgba(53, 46, 60, 0.8);
  text-decoration: none;
  font-weight: 700;
}

.article-content a:hover,
.back-button:hover {
  color: rgb(53, 46, 60);
  font-weight: 700;
}

.article-content strong {
  font-weight: 700;
  color: #111827;
}

.article-content hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2rem 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.article-content th,
.article-content td {
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  text-align: left;
}

.article-content th {
  background-color: #f9fafb;
  font-weight: 600;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* Code block styling */
.article-content pre {
  background-color: rgba(113, 124, 147, 0.9);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  position: relative;
}

.article-content pre code {
  color: #f3f4f6;
  font-family: "Fira Code", "Monaco", "Consolas", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Inline code styling */
.article-content code:not(pre code) {
  background-color: #f3f4f6;
  color: rgb(60, 46, 46);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: "Fira Code", "Monaco", "Consolas", monospace;
  font-size: 0.875rem;
}

/* Copy button */
.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(147, 121, 113, 0.75);
  color: #f9fafb;
  border: none;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.copy-button:hover {
  opacity: 1;
  background-color: rgba(60, 46, 46, 0.9);
}

.copy-button.bg-green-600 {
  background-color: rgb(60, 46, 46);
}

/* Smooth transitions for article loading */
.article-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Updated category button styles for articles page */
.category-button {
  position: relative;
  transition: all 0.3s ease;
  background: transparent !important;
  border: none;
  box-shadow: none !important;
  transform: none !important;
  font-size: 1.5rem !important;
  line-height: 2.25rem !important;
}

.category-button::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: rgb(60, 46, 46);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
  border-radius: 1px;
}

.category-button:hover::after,
.category-button.bg-blue-600::after {
  width: 100%;
}

.category-button:hover {
  color: rgb(60, 46, 46) !important;
  background: transparent !important;
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(60, 46, 46, 0.3));
}

.category-button.bg-blue-600 {
  color: rgb(60, 46, 46) !important;
  background: transparent !important;
  font-weight: 600;
}

/* Updated tag button styles for tags page */
#tag-list button {
  position: relative;
  transition: all 0.3s ease;
  background: transparent !important;
  border: none;
  box-shadow: none !important;
  transform: none !important;
  color: #374151;
  font-weight: 500;
  font-size: 1.875rem !important; /* text-3xl equivalent */
  line-height: 2.25rem !important;
}

#tag-list button::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: rgb(60, 46, 46);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
  border-radius: 1px;
}

#tag-list button:hover::after {
  width: 100%;
}

#tag-list button:hover {
  color: rgb(60, 46, 46) !important;
  background: transparent !important;
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(60, 46, 46, 0.3));
}

/* Contact link styles */
.contact-link {
  color: rgba(60, 46, 46, 0.6);
  position: relative;
  transition: color 0.3s ease;
}

.contact-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: rgb(60, 46, 46);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.contact-link:hover {
  color: rgb(60, 46, 46);
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(60, 46, 46, 0.3));
}

/* Article tag styles */
.article-tag {
  background-color: rgba(113, 124, 147, 0.3);
  color: rgba(53, 58, 69, 0.9);
}
