/* ========================================
   LakeLogic Documentation Custom Styles
   Modern, Dark-First Design - Enhanced Typography
   ======================================== */

/* --- LOGO ENHANCEMENT --- */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  width: 36px !important;
  height: 36px !important;
}

/* Make site title more prominent */
.md-header__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- TYPOGRAPHY ENHANCEMENT --- */
/* Keep headings clean and professional */
.md-typeset h1 {
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.md-typeset h2 {
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
}

.md-typeset h3 {
  font-weight: 600;
  font-size: 1.1rem;
}

.md-typeset h4 {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Normal body text */
.md-typeset {
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 450;
}

/* --- NAVIGATION ENHANCEMENT --- */
/* Match LineageLogic clean styling */
.md-nav__title {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--md-default-fg-color--light);
}

.md-nav__item {
  font-weight: 400;
}

.md-nav__link {
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.md-nav__link:hover {
  background: rgba(37, 99, 235, 0.08);
}

.md-nav__link--active {
  font-weight: 500;
  color: #2563EB !important;
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid #2563EB;
  padding-left: calc(0.8rem - 3px);
}

/* Section titles in nav */
.md-nav__item--section>.md-nav__link {
  font-weight: 600;
  color: var(--md-default-fg-color);
}

/* --- Code Block Enhancements --- */
.highlight {
  border-left: 4px solid #2563EB;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.highlight:hover {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

/* Inline code gets subtle blue background */
.md-typeset code {
  background-color: rgba(37, 99, 235, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
  color: #2563EB;
}

.md-typeset pre code {
  background-color: transparent;
}

/* --- Navigation Enhancements --- */
.md-nav__link:hover {
  transform: translateX(4px);
  transition: all 0.2s ease;
}

.md-nav__link--active {
  font-weight: 600;
  border-left: 3px solid var(--md-accent-fg-color);
  padding-left: 0.8rem;
}

/* --- Button Styling --- */
.md-button {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.md-button--primary {
  background: #2563EB;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.md-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  background: #1D4ED8;
}

.md-button:not(.md-button--primary) {
  border: 2px solid #2563EB;
  background: transparent;
  color: #2563EB;
}

.md-button:not(.md-button--primary):hover {
  background: rgba(37, 99, 235, 0.08);
}

/* --- Hero Section Styling --- */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
  border-radius: 12px;
  margin: 2rem 0;
}

.hero-title {
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* --- Admonition Styling --- */
.md-typeset .admonition,
.md-typeset details {
  border-left: 4px solid var(--md-accent-fg-color);
  border-radius: 6px;
}

.md-typeset .admonition-title::before,
.md-typeset summary::before {
  background-color: var(--md-accent-fg-color);
}

/* --- Table Styling --- */
.md-typeset table:not([class]) {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}

.md-typeset table:not([class]) tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

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

.md-search__input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* --- Footer Styling --- */
.md-footer {
  border-top: 2px solid rgba(37, 99, 235, 0.2);
}

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

/* --- Responsive Adjustments --- */
@media screen and (max-width: 76.1875em) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* --- VS Code / Notebook Output Styling --- */
.jp-OutputArea-output {
  background: var(--md-code-bg-color);
  border-radius: 6px;
  padding: 1rem;
}

/* --- Emphasis for Key Concepts --- */
.quality-gate-good {
  color: #4caf50;
  font-weight: 600;
}

.quality-gate-bad {
  color: #f44336;
  font-weight: 600;
}

/* --- Animation for Page Load --- */
.md-content {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}