/* Custom CSS for SkyPortal.ai Documentation */
:root {
  --skyportal-primary: #4F46E5;
  --skyportal-purple: #8B5CF6;
}

/* Hero section styling */
.md-typeset h1 {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Card grid enhancements */
.md-typeset .grid.cards {
  gap: 1.5rem;
  margin: 2rem 0;
}

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

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

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

.feature-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
  border-color: var(--skyportal-primary);
}

.feature-card h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--md-default-fg-color);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Feature icons */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: white;
}

/* Stats section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* CTA buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.cta-button {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-button-primary {
  background: var(--skyportal-primary);
  color: white !important;
}

.cta-button-primary:hover {
  background: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.cta-button-secondary {
  background: transparent;
  border: 2px solid var(--skyportal-primary);
  color: var(--skyportal-primary) !important;
}

.cta-button-secondary:hover {
  background: var(--skyportal-primary);
  color: white !important;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Section dividers */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--md-default-fg-color--lightest), transparent);
  margin: 3rem 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .md-typeset h1 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-button {
    text-align: center;
  }
  
  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Enhanced admonitions */
.md-typeset .admonition {
  border-radius: 0.75rem;
  border-left-width: 4px;
}

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

/* Logo styling */
.md-header__button.md-logo img {
  max-height: 32px;
  width: auto;
  display: block;
}

.md-header__button.md-logo {
  padding: 0.4rem;
}
