@import './brand.css';

/* ================================================================
 *  Showroom-specific layout
 *  NOT part of the brand system — only for demonstrating components
 * ================================================================ */

.showroom {
  background: var(--color-surface);
}

.showroom__nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 0;
  overflow-x: auto;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.showroom__nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
  border: 1px solid var(--color-border);
}

.showroom__nav a:hover,
.showroom__nav a.active {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

.showroom__section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.showroom__section:last-child {
  border-bottom: none;
}

.showroom__section h2 {
  margin-bottom: 0.5rem;
}

.showroom__section > p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.showroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.color-swatch {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.color-swatch__preview {
  height: 80px;
}

.color-swatch__info {
  padding: 0.75rem;
  font-size: 0.8rem;
}

.color-swatch__info code {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-demo {
  max-width: 400px;
}

.token-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.token-table th {
  background: var(--color-brand);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.token-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.header-demo {
  position: relative;
  top: 0;
}

.footer-demo {
  margin-top: 2rem;
}
