/* GPUX Documentation Custom Styles */

:root {
  --gpux-primary: #6366f1;
  --gpux-accent: #818cf8;
  --gpux-success: #10b981;
  --gpux-warning: #f59e0b;
  --gpux-error: #ef4444;
}

/* Custom styling for code blocks */
.highlight {
  border-radius: 0.5rem;
}

/* Custom admonition colors */
.md-typeset .admonition.tip {
  border-left-color: var(--gpux-success);
}

.md-typeset .admonition.warning {
  border-left-color: var(--gpux-warning);
}

.md-typeset .admonition.danger {
  border-left-color: var(--gpux-error);
}

/* Custom button styling */
.md-button--primary {
  background-color: var(--gpux-primary);
}

.md-button--primary:hover {
  background-color: var(--gpux-accent);
}

/* Improved code copy button */
.md-clipboard {
  transition: opacity 0.2s;
}

.md-clipboard:hover {
  opacity: 0.8;
}

/* Custom table styling */
.md-typeset table:not([class]) {
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Homepage hero section */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

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

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

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