/* Flux Documentation Custom Styles */

/* Hero section styling */
.md-content__button {
  display: none;
}

/* Grid cards enhancement */
.md-typeset .grid.cards > ul > li {
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Code block styling */
.md-typeset pre > code {
  border-radius: 8px;
}

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

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

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

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

/* Header styling */
.md-header__title {
  font-weight: 600;
}

/* Footer links */
.md-footer__link {
  transition: opacity 0.2s ease;
}

.md-footer__link:hover {
  opacity: 0.8;
}

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

/* Code annotation styling */
.md-typeset .md-annotation__index {
  border-radius: 50%;
}

/* Search styling */
.md-search__input {
  border-radius: 8px;
}

/* Button styling */
.md-typeset .md-button {
  border-radius: 6px;
  transition: all 0.2s ease;
}

.md-typeset .md-button:hover {
  transform: translateY(-1px);
}

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

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

/* Details/Summary styling */
.md-typeset details {
  border-radius: 8px;
}

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

.md-typeset details[open] summary {
  border-radius: 8px 8px 0 0;
}

/* Version selector */
.md-version {
  font-weight: 500;
}

/* Home page specific styles */
[data-md-color-scheme="default"] .md-main__inner {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

[data-md-color-scheme="slate"] .md-main__inner {
  background: linear-gradient(180deg, #1e1e1e 0%, #2d2d2d 100%);
}

/* Comparison table styling */
.md-typeset table th:first-child,
.md-typeset table td:first-child {
  font-weight: 600;
}

/* Star rating in tables */
.md-typeset table td {
  text-align: center;
}

.md-typeset table td:first-child {
  text-align: left;
}

/* Code tabs */
.md-typeset .tabbed-set {
  margin: 1em 0;
}

/* TOC styling */
.md-nav__link {
  transition: color 0.2s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--md-default-fg-color--lighter);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--md-default-fg-color--light);
}

/* Math equation styling */
.arithmatex {
  overflow-x: auto;
  padding: 0.5em;
}

/* Terminal output styling */
.language-text {
  background: #1a1a2e !important;
}

/* API reference styling */
.doc-heading {
  font-family: var(--md-code-font-family);
}

/* Warning/Note boxes in code */
.md-typeset .highlight .hll {
  background-color: rgba(255, 235, 59, 0.2);
}

/* Copy button positioning */
.md-clipboard {
  color: var(--md-default-fg-color--light);
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
  --md-code-bg-color: #1a1a2e;
}

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

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

/* Animation for interactive elements */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--md-primary-fg-color--rgb), 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--md-primary-fg-color--rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--md-primary-fg-color--rgb), 0);
  }
}

/* Feature highlight */
.feature-highlight {
  animation: pulse 2s infinite;
}
