/* Pygrad Custom Styles */

:root {
  --md-primary-fg-color: #673ab7;
  --md-primary-fg-color--light: #9575cd;
  --md-primary-fg-color--dark: #512da8;
  --md-accent-fg-color: #7c4dff;
}

/* Hero section styling */
.md-typeset .hero {
  text-align: center;
  padding: 2rem 0;
}

.md-typeset .hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #673ab7, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.md-typeset .hero p {
  font-size: 1.25rem;
  color: var(--md-typeset-color);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.md-typeset .grid .card {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-typeset-table-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-typeset .grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.md-typeset .grid .card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Code block improvements */
.md-typeset pre > code {
  border-radius: 8px;
}

/* Admonition improvements */
.md-typeset .admonition {
  border-radius: 8px;
}

/* Button styling */
.md-typeset .md-button {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: none;
}

.md-typeset .md-button--primary {
  background: linear-gradient(135deg, #673ab7, #7c4dff);
  border: none;
  color: white;
}

.md-typeset .md-button--primary:hover {
  background: linear-gradient(135deg, #512da8, #673ab7);
}

/* API reference styling */
.doc-heading {
  border-bottom: 2px solid var(--md-primary-fg-color);
  padding-bottom: 0.5rem;
}

/* Mermaid diagram styling */
.mermaid {
  text-align: center;
  margin: 2rem 0;
}

/* Table improvements */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
  color: white;
}

/* Quick start code blocks */
.md-typeset .highlight-terminal pre {
  background: #1a1a2e;
}

/* Badge styling */
.md-typeset .badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.md-typeset .badge--async {
  background: #4caf50;
  color: white;
}

.md-typeset .badge--new {
  background: #2196f3;
  color: white;
}

/* Footer improvements */
.md-footer {
  margin-top: 2rem;
}

/* Responsive adjustments */
@media screen and (max-width: 76.25em) {
  .md-typeset .hero h1 {
    font-size: 2rem;
  }
  
  .md-typeset .grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
  --md-code-bg-color: #1e1e2e;
}

[data-md-color-scheme="slate"] .md-typeset .grid .card {
  background: #1e1e2e;
  border-color: #2d2d3d;
}

/* Syntax highlighting improvements */
.md-typeset code {
  border-radius: 4px;
}

/* Navigation improvements */
.md-nav__link {
  font-weight: 500;
}

.md-nav__item--active > .md-nav__link {
  font-weight: 600;
}
