/* Custom styles for Espilon documentation */

:root {
  --md-primary-fg-color: #7c3aed;
  --md-primary-fg-color--light: #a78bfa;
  --md-primary-fg-color--dark: #5b21b6;
  --md-accent-fg-color: #a78bfa;
}

/* Hero section on homepage */
.md-typeset .hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.md-typeset .hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.md-typeset .hero-subtitle {
  font-size: 1.5rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 2rem;
}

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

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

.md-typeset .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.md-typeset .feature-card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}

/* Status badges */
.md-typeset .status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.md-typeset .status-badge.stable {
  background: #10b981;
  color: white;
}

.md-typeset .status-badge.beta {
  background: #f59e0b;
  color: white;
}

.md-typeset .status-badge.wip {
  background: #6b7280;
  color: white;
}

/* Command examples */
.md-typeset .command-example {
  background: var(--md-code-bg-color);
  border-left: 4px solid var(--md-primary-fg-color);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.25rem;
}

/* Image captions */
.md-typeset figure {
  text-align: center;
  margin: 2rem 0;
}

.md-typeset figcaption {
  font-style: italic;
  color: var(--md-default-fg-color--light);
  margin-top: 0.5rem;
}

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

  .md-typeset .hero-subtitle {
    font-size: 1.25rem;
  }
}
