/* DTA-GNN Documentation Custom Styles */

/* Typography enhancements */
:root {
  --md-text-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --md-code-font: "JetBrains Mono", "Fira Code", monospace;
}

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

/* Code block styling */
.md-typeset code {
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

.md-typeset pre {
  border-radius: 8px;
}

/* Table styling */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.md-typeset table:not([class]) th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75em;
  letter-spacing: 0.05em;
}

/* Admonition styling */
.md-typeset .admonition {
  border-radius: 8px;
  border-left-width: 4px;
}

.md-typeset .admonition-title {
  font-weight: 600;
}

/* Card grid for features */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.grid.cards > * {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--md-default-fg-color--lightest);
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid.cards > *:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Icon styling in cards */
.grid.cards .lg {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.grid.cards .middle {
  vertical-align: middle;
}

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

/* Search bar */
.md-search__input {
  border-radius: 20px;
}

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

/* Mermaid diagrams */
.mermaid {
  margin: 1.5rem 0;
  text-align: center;
}

/* Tab styling */
.md-typeset .tabbed-labels {
  border-radius: 8px 8px 0 0;
}

.md-typeset .tabbed-labels > label {
  font-weight: 500;
}

/* Inline code in headings */
.md-typeset h2 code,
.md-typeset h3 code,
.md-typeset h4 code {
  font-size: 0.9em;
}

/* API reference styling */
.md-typeset .doc-heading code {
  font-size: 1em;
  font-weight: 600;
}

/* Parameter tables */
.md-typeset table:not([class]) td code {
  white-space: nowrap;
}

/* Responsive adjustments */
@media screen and (max-width: 76.1875em) {
  .grid.cards {
    grid-template-columns: 1fr;
  }
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #1e1e2e;
  --md-default-fg-color: #cdd6f4;
}

[data-md-color-scheme="slate"] .grid.cards > * {
  border-color: var(--md-default-fg-color--lighter);
}

/* Print styling */
@media print {
  .md-sidebar,
  .md-tabs,
  .md-search,
  .md-footer {
    display: none !important;
  }
}

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

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 2px;
}

/* Logo animation */
.md-header__button.md-logo img {
  transition: transform 0.3s ease;
}

.md-header__button.md-logo:hover img {
  transform: scale(1.1);
}
