/* OpenSkip Custom Styles */

:root {
  --md-primary-fg-color: #4f46e5;
  --md-primary-fg-color--light: #6366f1;
  --md-primary-fg-color--dark: #4338ca;
  --md-accent-fg-color: #6366f1;
}

/* Hero Section Styles */
.md-typeset .hero {
  text-align: center;
  padding: 4rem 1rem;
  margin: -1rem -0.8rem 2rem;
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, #7c3aed 100%);
  border-radius: 0.5rem;
  color: white;
}

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

.md-typeset .hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.md-typeset .hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.md-typeset .hero-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-typeset .hero-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.md-typeset .hero-buttons .primary {
  background: white;
  color: var(--md-primary-fg-color);
}

.md-typeset .hero-buttons .secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

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

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

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

.md-typeset .feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.md-typeset .feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.md-typeset .feature-card p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Code Block Enhancements */
.md-typeset pre {
  border-radius: 0.5rem;
}

/* Stats Section */
.md-typeset .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  text-align: center;
}

.md-typeset .stat-item {
  padding: 1.5rem;
  background: var(--md-code-bg-color);
  border-radius: 0.5rem;
}

.md-typeset .stat-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  display: block;
}

.md-typeset .stat-item .label {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* API Endpoint Styling */
.md-typeset .endpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--md-code-bg-color);
  border-radius: 0.5rem;
  margin: 1rem 0;
  font-family: var(--md-code-font-family);
}

.md-typeset .endpoint .method {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.md-typeset .endpoint .method.get {
  background: #10b981;
  color: white;
}

.md-typeset .endpoint .method.post {
  background: #3b82f6;
  color: white;
}

.md-typeset .endpoint .method.put {
  background: #f59e0b;
  color: white;
}

.md-typeset .endpoint .method.delete {
  background: #ef4444;
  color: white;
}

.md-typeset .endpoint .path {
  font-size: 0.95rem;
}

/* Quick Start Steps */
.md-typeset .steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.md-typeset .steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.md-typeset .steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--md-primary-fg-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

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

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

  .md-typeset .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
