/* Validibot User Docs - Custom Styling
   Matches validibot.com branding
*/

/* Import Space Grotesk for brand name */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500&display=swap');

:root {
  /* Validibot brand colors */
  --md-primary-fg-color: #066fd1;
  --md-primary-fg-color--light: #4299e1;
  --md-primary-fg-color--dark: #0556a8;
  --md-accent-fg-color: #066fd1;
  --md-accent-fg-color--transparent: rgba(6, 111, 209, 0.1);

  /* Typography matching marketing site */
  --md-text-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --md-code-font: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Header styling */
.md-header {
  background-color: #066fd1;
}

/* Custom logo styling to match main site */
.md-header__button.md-logo.validibot-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.md-header__button.md-logo .validibot-brand-name {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: white;
}

/* Hide the default site title since we're showing it in the logo */
.md-header__topic:first-child {
  display: none;
}

/* Combined announcement bar - back link + WIP notice */
.md-banner {
  background-color: #fff3cd;
  color: #856404;
  height: auto;
  padding: 0.35rem 0;
  border-bottom: 1px solid #ffc107;
}

.md-banner__inner {
  font-size: 0.7rem;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.md-banner .announce-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1rem;
}

.md-banner .announce-bar .back-link {
  justify-self: start;
}

.md-banner .announce-bar .wip-notice {
  justify-self: center;
}

.md-banner .back-link {
  color: #856404;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.md-banner .back-link:hover {
  color: #066fd1;
}

.md-banner .robot-icon {
  width: 14px;
  height: 14px;
}

.md-banner .arrow-icon {
  width: 10px;
  height: 10px;
  opacity: 0.7;
}

.md-banner .wip-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #856404;
}

.md-banner .wip-notice svg {
  flex-shrink: 0;
}

/* Links */
.md-typeset a {
  color: #066fd1;
}

.md-typeset a:hover {
  color: #0556a8;
}

/* Code blocks */
.md-typeset code {
  background-color: #e9f0f9;
}

/* Navigation active state */
.md-nav__link--active {
  color: #066fd1 !important;
}

/* Footer */
.md-footer {
  background-color: #1a1a2e;
}

/* Admonitions - use brand colors */
.md-typeset .admonition.note,
.md-typeset details.note {
  border-color: #066fd1;
}

.md-typeset .note > .admonition-title,
.md-typeset .note > summary {
  background-color: rgba(6, 111, 209, 0.1);
}

.md-typeset .note > .admonition-title::before,
.md-typeset .note > summary::before {
  background-color: #066fd1;
}

/* Buttons */
.md-typeset .md-button--primary {
  background-color: #066fd1;
  border-color: #066fd1;
}

.md-typeset .md-button--primary:hover {
  background-color: #0556a8;
  border-color: #0556a8;
}

/* Search */
.md-search__form {
  background-color: rgba(255, 255, 255, 0.1);
}

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

/* Table styling */
.md-typeset table:not([class]) th {
  background-color: #e9f0f9;
}

