/* Brand palette mapped to Material for MkDocs CSS variables */

:root {
  /* Primary: cyan from the VISUALLI logo (#12C7D3) */
  --md-primary-fg-color: #12C7D3;
  --md-primary-fg-color--light: #64e3eb;
  --md-primary-fg-color--dark: #0ea5ad;

  /* Accent: orange from the logo (#F28C16) */
  --md-accent-fg-color: #F28C16;

  /* Links use accent for consistency */
  --md-typeset-a-color: var(--md-accent-fg-color);

  /* Brand gradient across VISUALLI tones */
  --brand-gradient: linear-gradient(90deg,
    #12C7D3 0%,
    #325E8C 10%,
    #8A70A6 20%,
    #F54A57 30%,
    #FF6C4D 40%,
    #F28C16 50%,
    #FFD347 60%,
    #12C7D3 70%,
    #7F7F7F 80%,
    #8D8D8D 90%,
    #12C7D3 100%
  );
  /* Site title used in header banner (rendered inside the clickable logo link) */
  --site-title: "advisors.visualli.ai";
}

[data-md-color-scheme="slate"] {
  /* Keep brand colors in dark mode */
  --md-primary-fg-color: #12C7D3;
  --md-primary-fg-color--light: #5bd9e2;
  --md-primary-fg-color--dark: #0b8b93;
  --md-accent-fg-color: #F28C16;
  --md-typeset-a-color: var(--md-accent-fg-color);
}

/* Header: solid black banner with thin gradient line at bottom */
.md-header {
  background-color: #000000;
  background-image: none; /* remove previous gradient fill */
  position: relative; /* enable bottom border pseudo-element */
}

.md-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px; /* very thin gradient line */
  background-image: var(--brand-gradient);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Make the left logo act as the full clickable banner title */
.md-header__button.md-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  width: auto !important; /* expand clickable area to include text */
  max-width: none !important;
  padding: 0 .5rem; /* small horizontal padding for comfortable click */
  margin-right: auto; /* keep search + palette icons right-aligned */
}
.md-header__button.md-logo::after {
  content: var(--site-title);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem; /* reduced to match earlier banner scale */
  line-height: 1;
  white-space: nowrap;
}

/* Center the header options (palette + search) on desktop */
.md-header__inner { position: relative; }
@media (min-width: 768px) {
  .md-header__options {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 5; /* above gradient divider */
  }
  /* Ensure search occupies its natural width while centered */
  .md-header__options .md-search { max-width: none; }
}
/* Hide the original (non-clickable) header title to avoid duplicate text */
.md-header__title { display: none !important; }
.md-header__title * { display: none !important; }
/* On small screens, hide the banner text to preserve header layout */
@media (max-width: 640px) {
  .md-header__button.md-logo::after { display: none; }
}

/* Optional: gradient text utility for use in Markdown via <span class="brand-gradient-text"> */
.brand-gradient-text {
  background-image: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hide site title text at the top of the left navigation */
.md-nav--primary > .md-nav__title {
  display: none;
}

/* --- Notion-style basics (merged) --- */
/* Content width for focused reading */
.md-content .md-content__inner {
  max-width: 860px;
}

/* Sidebar: make only top-level headings bigger */
/* Home (top-level non-section item) */
.md-nav--primary > .md-nav__list > .md-nav__item:not(.md-nav__item--section) > .md-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
}
/* Section headings: Knowing Visualli, Building Visualli */
.md-nav--primary .md-nav__item--section > .md-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
}
/* Dark mode: white text */
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section > .md-nav__link {
  color: #ffffff !important;
}
/* Light mode: dark black text */
[data-md-color-scheme="default"] .md-nav--primary .md-nav__item--section > .md-nav__link {
  color: #000000 !important;
}

/* Style the 'Back' title in mobile menu to match section headings */
.md-nav--primary .md-nav__title {
  font-size: 0.9rem;
  font-weight: 500;
}
/* Dark mode: white back button text */
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__title {
  color: #ffffff !important;
}
/* Light mode: dark black back button text */
[data-md-color-scheme="default"] .md-nav--primary .md-nav__title {
  color: #000000 !important;
}

/* Softer tables and rounded code blocks */
.md-typeset table {
  border-color: #343a40;
}
.md-typeset pre code {
  border-radius: 8px;
}

/* --- Text justification utility --- */
/* Opt-in: wrap content in <div class="justify"> to justify paragraphs and list items */
.md-typeset .justify, .md-typeset .justify p, .md-typeset .justify li {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

/* Opt-out: force left alignment inside a block */
.md-typeset .no-justify, .md-typeset .no-justify p, .md-typeset .no-justify li {
  text-align: left;
}

/* Keep headings and code blocks left-aligned regardless */
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4, .md-typeset h5, .md-typeset h6,
.md-typeset pre, .md-typeset code { text-align: left; }

/* --- Sidebar ToC: show only H1/H2 (hide H3+) --- */
/* When toc.integrate is enabled, the ToC sits in the left sidebar.
   Nested .md-nav__list elements represent deeper heading levels (H3+). Hide them. */
.md-sidebar--primary [data-md-component="toc"] .md-nav__list .md-nav__list { display: none; }
/* Be explicit for the secondary nav variant to cover both cases */
.md-sidebar--primary .md-nav--secondary[data-md-component="toc"] .md-nav__list .md-nav__list { display: none; }

/* --- Primary navigation: subtle indent for second-level items --- */
/* Indent children under section headings (e.g., Why, What, Our Values, Team, Branding, Design, Development). */
.md-nav--primary > .md-nav__list > .md-nav__item--section .md-nav__list > .md-nav__item > .md-nav__link {
  padding-left: 0.75rem; /* gentle right shift to indicate hierarchy */
}

/* --- Modified Indicator (•) Styling --- */
.modified-indicator {
  color: #F28C16;
  font-weight: bold;
  display: inline-block;
  text-shadow: 0 0 0px rgba(242, 140, 22, 0.6);
  animation: pulse-halo 2s infinite ease-in-out;
}

@keyframes pulse-halo {
  0%, 100% {
    text-shadow: 0 0 4px rgba(242, 140, 22, 0.4);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 12px rgba(242, 140, 22, 0.8);
    transform: scale(1.1);
  }
}
