/* Enhanced Documentation Styles for Direqt */

/* Typography improvements */
.md-typeset {
  font-size: 1rem;
  line-height: 1.7;
  color: #24292e;
}

.md-typeset h1 {
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.md-typeset h2 {
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e1e4e8;
  color: #24292e;
}

.md-typeset h3 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #24292e;
  font-size: 1.3rem;
}

.md-typeset h4 {
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: #24292e;
  font-size: 1.15rem;
}

/* Improved paragraph spacing */
.md-typeset p {
  margin-bottom: 1.2rem;
  color: #444;
}

/* Enhanced list styling */
.md-typeset ul, .md-typeset ol {
  margin-bottom: 1.5rem;
}

.md-typeset ul li, .md-typeset ol li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.md-typeset ul li::marker {
  color: #6366f1;
}

/* Code and keyword styling */
.md-typeset code {
  background-color: #f8f9fa;
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
  color: #6366f1;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

.md-typeset pre {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.md-typeset pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  font-size: 0.9rem;
}

/* Strong text styling for sections like "Keyword Requirements" */
.md-typeset strong {
  font-weight: 600;
  color: #24292e;
}

/* Improved admonition/alert styling */
.md-typeset .admonition {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin: 1.5rem 0;
}

.md-typeset .admonition-title {
  font-weight: 600;
  padding: 0.8rem 1rem;
}

.md-typeset .admonition.success {
  border: none;
  border-left: 4px solid #6366f1;
  background-color: #f5f5ff;
}

.md-typeset .admonition.success .admonition-title {
  background-color: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

.md-typeset .admonition.tip {
  border: none;
  border-left: 4px solid #6366f1;
  background-color: #f5f5ff;
}

.md-typeset .admonition.tip .admonition-title {
  background-color: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

/* Enhanced navigation styling - simplified to avoid conflicts */
.md-nav__link--active {
  color: #6366f1;
  font-weight: 500;
}

.md-nav__link:hover {
  color: #6366f1;
}

/* Section dividers */
.md-typeset hr {
  margin: 2rem 0;
  border: none;
  border-top: 2px solid #e1e4e8;
}

/* Enhanced link styling */
.md-typeset a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.md-typeset a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Better spacing for feature sections */
.md-typeset h3 + p {
  margin-top: 0.5rem;
}

.md-typeset h4 + p {
  margin-top: 0.3rem;
}

/* Add breathing room between sections */
.md-typeset h2 {
  margin-top: 3rem;
}

.md-typeset h2:first-child {
  margin-top: 0;
}


/* Improved image styling */
.md-typeset img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 1.5rem 0;
}

/* Better ordered list styling - only for content, not navigation */
.md-content .md-typeset ol {
  counter-reset: list-counter;
  list-style: none;
  padding-left: 0;
}

.md-content .md-typeset ol li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 2rem;
}

.md-content .md-typeset ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  background-color: #6366f1;
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Content sections */
.md-content {
  max-width: 1200px;
}

.md-typeset .md-content__inner {
  margin-bottom: 3rem;
  padding: 0 1.5rem;
}

/* Main content area improvements - removed problematic sidebar overrides */

/* Better navigation sidebar styling - minimal changes only */
.md-sidebar--primary {
  background-color: rgba(250, 251, 252, 0.5);
}

/* Feature cards effect for main sections */
.md-typeset h3 {
  position: relative;
  padding-left: 0.75rem;
}

.md-typeset h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background-color: #6366f1;
  border-radius: 2px;
}

/* H4 subsection styling */
.md-typeset h4 {
  position: relative;
  padding-left: 0.5rem;
  border-left: 2px solid #e1e4e8;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .md-typeset {
    font-size: 0.95rem;
  }
  
  .md-typeset h2 {
    font-size: 1.5rem;
  }
  
  .md-typeset h3 {
    font-size: 1.2rem;
  }
}