/* GitHub-style custom styles */

:root {
  --md-primary-fg-color: #6f42c1;
  --md-primary-fg-color--light: #8957e5;
  --md-primary-fg-color--dark: #553098;
}

/* Hero section enhancements */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="dark"] .hero {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.4rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  font-weight: 300;
}

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

.badges img {
  height: 20px;
  transition: transform 0.2s;
}

.badges img:hover {
  transform: scale(1.05);
}

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

.cta-buttons .md-button {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-buttons .md-button--primary {
  background: white;
  color: #6f42c1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cta-buttons .md-button--primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-buttons .md-button:not(.md-button--primary) {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.cta-buttons .md-button:not(.md-button--primary):hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Feature grid improvements */
.md-typeset .grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.md-typeset .grid.cards > * {
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  transition: all 0.3s ease;
}

.md-typeset .grid.cards > *:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--md-primary-fg-color);
}

[data-md-color-scheme="dark"] .md-typeset .grid.cards > *:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Code blocks styling */
.md-typeset code {
  background: var(--md-code-bg-color);
  border-radius: 4px;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
}

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

/* Mermaid diagram improvements */
.mermaid {
  background: transparent;
  border-radius: 8px;
  padding: 1rem;
}

/* Section headers */
.md-typeset h2 {
  border-bottom: 2px solid var(--md-primary-fg-color);
  padding-bottom: 0.5rem;
  margin-top: 3rem;
  font-weight: 700;
}

/* Links */
.md-typeset a {
  color: var(--md-primary-fg-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.md-typeset a:hover {
  border-bottom-color: var(--md-primary-fg-color);
}

/* Admonitions */
.md-typeset .admonition {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Footer */
.md-footer {
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

/* Navigation */
.md-nav__title {
  font-weight: 700;
}

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

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .md-button {
    width: 100%;
  }
}
