/* goflow docs — custom styling */

:root {
  --md-primary-fg-color: #673ab7;
  --md-primary-fg-color--light: #9575cd;
  --md-primary-fg-color--dark: #4527a0;
  --md-accent-fg-color: #ffab00;
}

/* Larger, easier-to-read baseline typography */
.md-typeset {
  font-size: 1.05rem;
  line-height: 1.75;
}

.md-typeset p,
.md-typeset li,
.md-typeset td,
.md-typeset th {
  font-size: 1.05rem;
}

/* Hero section styling for home page */
.md-content__inner h1:first-of-type {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #673ab7 0%, #9c27b0 50%, #e91e63 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

/* Enhanced code blocks */
.highlight code,
code {
  border-radius: 6px;
}

.md-typeset pre {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="slate"] .md-typeset pre {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Better inline code */
.md-typeset code:not(pre code) {
  background: rgba(103, 58, 183, 0.1);
  color: #673ab7;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

[data-md-color-scheme="slate"] .md-typeset code:not(pre code) {
  background: rgba(149, 117, 205, 0.2);
  color: #b39ddb;
}

/* Admonition enhancements */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Navigation tabs styling */
.md-tabs {
  background: linear-gradient(90deg, var(--md-primary-fg-color) 0%, var(--md-primary-fg-color--dark) 100%);
}

.md-tabs__link {
  font-weight: 500;
  opacity: 0.85;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  opacity: 1;
}

/* Header branding */
.md-header__title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Card-like content sections */
.md-typeset h2 {
  border-bottom: 2px solid var(--md-primary-fg-color--light);
  padding-bottom: 0.4rem;
  margin-top: 2rem;
}

/* Feature list styling */
.md-typeset ul li {
  margin-bottom: 0.5rem;
}

.md-typeset ul li strong {
  color: var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .md-typeset ul li strong {
  color: var(--md-primary-fg-color--light);
}

/* Footer styling */
.md-footer {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

/* Smooth transitions */
.md-nav__link,
.md-tabs__link,
.md-typeset a {
  transition: all 0.2s ease;
}

/* Button-like links in content */
.md-typeset a:hover {
  color: var(--md-accent-fg-color);
}

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

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

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color--dark);
}

/* Search bar enhancement */
.md-search__form {
  border-radius: 8px;
}

/* Use full available width */
.md-grid,
.md-main__inner,
.md-content,
.md-content__inner {
  max-width: none;
}

/* Responsive improvements */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 18rem;
  }

  /* Keep a single navigation area on the left */
  .md-sidebar--secondary {
    display: none;
  }

  .md-content {
    margin-right: 0;
  }
}

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

/* Better blockquotes */
.md-typeset blockquote {
  border-left: 4px solid var(--md-primary-fg-color);
  background: rgba(103, 58, 183, 0.05);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
}

[data-md-color-scheme="slate"] .md-typeset blockquote {
  background: rgba(103, 58, 183, 0.1);
}

/* Logo and header polish */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.4rem;
  width: auto;
}

/* Announcement bar if used */
.md-announce {
  background: linear-gradient(90deg, #673ab7 0%, #9c27b0 100%);
}

.md-announce__inner {
  font-weight: 500;
}
