/* Pydantic-inspired styling for Machineconfig docs */

:root {
  --md-primary-fg-color: #7c3aed;
  --md-primary-fg-color--light: #8b5cf6;
  --md-primary-fg-color--dark: #6d28d9;
  --md-accent-fg-color: #a855f7;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #8b5cf6;
  --md-primary-fg-color--light: #a78bfa;
  --md-primary-fg-color--dark: #7c3aed;
  --md-accent-fg-color: #c084fc;
}

/* Hero section styling */
.md-typeset h1 {
  font-weight: 700;
}

/* Button styling */
.md-typeset .md-button {
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.md-typeset .md-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.md-typeset .md-button--primary {
  background-color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
}

.md-typeset .md-button--primary:hover {
  background-color: var(--md-primary-fg-color--dark);
  border-color: var(--md-primary-fg-color--dark);
}

/* Code block styling */
.md-typeset code {
  border-radius: 0.375rem;
}

.md-typeset pre > code {
  border-radius: 0.5rem;
}

/* Card grid styling */
.md-typeset .grid.cards > ul > li {
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Admonition styling */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 0.5rem;
  border-left-width: 4px;
}

/* Table styling */
.md-typeset table:not([class]) {
  border-radius: 0.5rem;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: white;
}

/* Navigation tabs */
.md-tabs__link {
  font-weight: 500;
}

/* Footer */
.md-footer {
  margin-top: 2rem;
}

/* Improved content max-width for readability */
.md-content__inner {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

/* Tab content styling */
.md-typeset .tabbed-set {
  border-radius: 0.5rem;
}

/* Search bar styling */
.md-search__input {
  border-radius: 0.5rem;
}

/* API reference specific styling */
.doc-object {
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.doc-signature {
  background: var(--md-code-bg-color);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
}

/* Mermaid diagram styling */
.mermaid {
  background: transparent !important;
}

/* Icon styling in cards */
.md-typeset .grid.cards .lg {
  font-size: 2rem;
}

/* Better spacing for feature lists */
.md-typeset ul:not([class]) li {
  margin-bottom: 0.5rem;
}

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

/* Version selector styling */
.md-version {
  border-radius: 0.375rem;
}

/* Embedded Plotly previews */
.md-typeset .plotly-preview-frame {
  display: block;
  width: 100%;
  height: 980px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  background: #fff;
}

[data-md-color-scheme="slate"] .md-typeset .plotly-preview-frame {
  border-color: rgba(255, 255, 255, 0.12);
}

.md-content__inner:has(.plotly-preview-frame--wide) {
  max-width: 78rem;
}
