/* Components Preview Page Styles */

.components-page {
  min-height: 100vh;
  background-color: var(--ui-bg);
  color: var(--ui-text);
  padding: var(--space-xl);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro', sans-serif;
}

.components-page__header {
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
}

.components-page__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--ui-text);
}

.components-page__subtitle {
  font-size: var(--text-md);
  color: var(--ui-muted);
  margin-bottom: var(--space-xl);
}

.components-page__content {
  max-width: 1200px;
  margin: 0 auto;
}

.component-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background-color: var(--ui-surface);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.component-section__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--ui-text);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.component-section__description {
  font-size: var(--text-sm);
  color: var(--ui-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.component-section__preview {
  padding: var(--space-lg);
  background-color: var(--ui-bg);
  border-radius: 6px;
  margin-bottom: var(--space-md);
}

.component-section__preview--vintage {
  background-color: var(--paper-aged);
  color: var(--ink-dark);
}

.component-section__variants {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.component-section__code {
  background-color: rgba(0, 0, 0, 0.3);
  padding: var(--space-md);
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: var(--text-sm);
  overflow-x: auto;
  color: var(--ui-muted);
  margin-top: var(--space-md);
}

.component-section__code pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
  .components-page {
    padding: var(--space-md);
  }

  .component-section {
    padding: var(--space-md);
  }

  .component-section__variants {
    flex-direction: column;
  }

  .component-section__variants > * {
    width: 100%;
  }
}

