/* ==========================================================================
   SJCC LEARN — STYLEGUIDE PAGE CSS (#/styleguide)
   Interactive Design System & Component Library Showcase
   ========================================================================== */

.styleguide-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.styleguide-intro {
  font-size: var(--text-md);
  color: var(--text-2);
  max-width: 720px;
  margin-top: var(--space-2);
}

.styleguide-section {
  margin-bottom: var(--space-12);
}

.styleguide-section-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.styleguide-section-desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-bottom: var(--space-6);
}

.styleguide-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
}

/* Color Swatches Grid */
.color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}

.color-swatch-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background-color: var(--surface);
}

.color-swatch-preview {
  height: 72px;
  width: 100%;
}

.color-swatch-details {
  padding: var(--space-3);
}

.color-swatch-name {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text);
}

.color-swatch-hex {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}

/* Component Row Layouts */
.component-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.component-row:last-child {
  margin-bottom: 0;
}

.component-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  display: block;
}

/* Typography scale display */
.type-scale-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}

.type-scale-row:last-child {
  border-bottom: none;
}

.type-scale-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-3);
}

/* Grid for cards showcase */
.cards-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.stats-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}
