/* Custom styles for pib3 documentation */

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

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

/* Table styling */
.md-typeset table:not([class]) {
  font-size: 0.85em;
}

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

/* Admonition customization */
.md-typeset .admonition.note {
  border-color: var(--md-primary-fg-color);
}

/* API documentation styling */
.doc-heading {
  border-bottom: 2px solid var(--md-primary-fg-color);
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

.doc-signature {
  background-color: var(--md-code-bg-color);
  padding: 0.5em 1em;
  border-radius: 4px;
  margin-bottom: 1em;
  overflow-x: auto;
}

/* Parameter tables */
.doc-param-table th:first-child {
  min-width: 120px;
}

/* Mobile responsiveness */
@media screen and (max-width: 76.1875em) {
  .md-typeset table:not([class]) {
    display: block;
    overflow-x: auto;
  }
}

/* Mermaid diagram styling */
.mermaid {
  text-align: center;
  margin: 1em 0;
}

/* Navigation improvements */
.md-nav__link {
  font-size: 0.75rem;
}

/* Footer styling */
.md-footer-meta {
  background-color: var(--md-primary-fg-color--dark);
}

/* Search highlight */
.md-search-result mark {
  background-color: var(--md-accent-fg-color);
  color: var(--md-accent-bg-color);
}

/* Code annotation styling */
.md-annotation__index {
  background-color: var(--md-primary-fg-color);
}

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

/* Hero section for index page */
.hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--md-default-fg-color--light);
}

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

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}
