/* Custom CSS for Vi SDK Documentation */

:root {
  --vi-purple: #6a4c93;
  --vi-blue: #1982c4;
  --vi-green: #8ac926;
  --vi-orange: #ffca3a;
  --vi-red: #ff595e;
}

/* Custom admonitions */
.md-typeset .admonition.example {
  border-left-color: var(--vi-blue);
}

.md-typeset .admonition.example > .admonition-title {
  background-color: rgba(25, 130, 196, 0.1);
}

/* Code block enhancements */
.md-typeset code {
  font-size: 0.85em;
}

.md-typeset pre > code {
  font-size: 0.8em;
}

/* Grid cards spacing */
.md-typeset .grid {
  grid-gap: 1rem;
  margin: 2rem 0;
}

/* Better table styling */
.md-typeset table:not([class]) {
  font-size: 0.8rem;
  line-height: 1.5;
}

.md-typeset table:not([class]) th {
  min-width: 5rem;
  padding: 0.9375em 1.25em;
  font-weight: 700;
}

.md-typeset table:not([class]) td {
  padding: 0.9375em 1.25em;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.status-stable {
  background-color: var(--vi-green);
  color: #000;
}

.status-beta {
  background-color: var(--vi-orange);
  color: #000;
}

.status-experimental {
  background-color: var(--vi-red);
  color: #fff;
}

/* Code group tabs */
.md-typeset .tabbed-set {
  margin: 1.5rem 0;
}

/* API documentation styling */
.doc-heading {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.doc-signature {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0.2rem;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
}

[data-md-color-scheme="slate"] .doc-signature {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Better spacing for definition lists */
.md-typeset dd {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* Icon grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.icon-item {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

[data-md-color-scheme="slate"] .icon-item {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Mermaid diagram theming */
.mermaid {
  text-align: center;
  margin: 2rem 0;
}

/* Note boxes */
.md-typeset .note-box {
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid var(--vi-purple);
  background-color: rgba(106, 76, 147, 0.1);
  border-radius: 0.2rem;
}

/* Feature comparison table */
.feature-table {
  width: 100%;
  margin: 2rem 0;
}

.feature-table td:first-child {
  font-weight: 600;
}

/* Copy button enhancement */
.md-clipboard {
  transition: opacity 0.2s;
}

.md-clipboard:hover {
  opacity: 1 !important;
}
