/* manta docs — custom styling */

/* ============================================================
   HERO / LANDING PAGE
   ============================================================ */

/* Hero banner on the home page */
.md-content .hero {
  padding: 2rem 0 3rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.md-content .hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #7c4dff, #ff6d00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.md-content .hero .hero-tagline {
  font-size: 1.25rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.md-content .hero .hero-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.md-content .hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.md-content .hero .hero-badge--safe {
  background: rgba(0, 200, 83, 0.12);
  color: #00c853;
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.md-content .hero .hero-badge--warn {
  background: rgba(255, 171, 0, 0.12);
  color: #ffab00;
  border: 1px solid rgba(255, 171, 0, 0.3);
}

.md-content .hero .hero-badge--info {
  background: rgba(41, 121, 255, 0.12);
  color: #2979ff;
  border: 1px solid rgba(41, 121, 255, 0.3);
}

.md-content .hero .hero-badge--purple {
  background: rgba(124, 77, 255, 0.12);
  color: #7c4dff;
  border: 1px solid rgba(124, 77, 255, 0.3);
}

/* ============================================================
   FEATURE GRID (for home page)
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-code-bg-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
}

/* ============================================================
   STATUS BADGES (for research pages)
   ============================================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.status-badge--complete {
  background: rgba(0, 200, 83, 0.15);
  color: #00c853;
}

.status-badge--running {
  background: rgba(41, 121, 255, 0.15);
  color: #2979ff;
}

.status-badge--planned {
  background: rgba(158, 158, 158, 0.15);
  color: #9e9e9e;
}

/* ============================================================
   STATS ROW (for key metrics)
   ============================================================ */

.stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  justify-content: center;
}

.stat-card {
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  min-width: 140px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--md-accent-fg-color);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--md-default-fg-color--light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ============================================================
   TABLES — tighter, cleaner
   ============================================================ */

.md-typeset table:not([class]) {
  font-size: 0.85rem;
  border-collapse: collapse;
}

.md-typeset table:not([class]) th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) td {
  padding: 0.5rem 0.75rem;
}

.md-typeset table:not([class]) tbody tr {
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) tbody tr:hover {
  background: rgba(124, 77, 255, 0.04);
}

/* ============================================================
   ADMONITIONS — refined
   ============================================================ */

.md-typeset .admonition,
.md-typeset details {
  border-radius: 0.5rem;
  border-left-width: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   CODE BLOCKS
   ============================================================ */

.md-typeset code {
  border-radius: 0.25rem;
  padding: 0.15em 0.35em;
}

.md-typeset pre > code {
  border-radius: 0.5rem;
}

/* ============================================================
   NAV / SIDEBAR refinements
   ============================================================ */

.md-nav__link {
  font-size: 0.88rem;
}

/* Active nav item accent */
.md-nav__item--active > .md-nav__link {
  font-weight: 600;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */

.md-banner {
  background: linear-gradient(90deg, #7c4dff 0%, #536dfe 50%, #448aff 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.md-banner a {
  color: white;
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

.md-footer-meta {
  font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .md-content .hero h1 {
    font-size: 2rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    gap: 0.75rem;
  }
  .stat-card {
    min-width: 100px;
    padding: 0.75rem 1rem;
  }
  .stat-card .stat-value {
    font-size: 1.5rem;
  }
}

/* ============================================================
   MERMAID DIAGRAM STYLING
   ============================================================ */

.mermaid {
  margin: 1.5rem 0;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */

.md-top {
  background: var(--md-primary-fg-color);
}
