/**
 * Brand kit page styles — Phase 1 read-only.
 *
 * Plan: ~/.claude/plans/safegtm/2026-05-12-brand-kit.md
 * Mockup: ~/.claude/mockups/safegtm/2026-05-12-brand-kit-page.html
 *
 * All values use existing SafeGTM tokens (var(--primary), var(--bg-card),
 * etc.) so the page picks up theme changes automatically. Zero raw hex
 * outside the design-token sources of truth.
 *
 * Token map (every selector → token) lives in the PR description Design
 * Analysis. Re-read that section before editing this file.
 */

/* ── Page header ─────────────────────────────────────────── */
.bk-page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.bk-page-head-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bk-readonly-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Kit settings (top row) ───────────────────────────────── */
.bk-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.bk-settings label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}

.bk-settings input,
.bk-settings select {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
}

.bk-settings input:disabled,
.bk-settings select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.bk-settings input:focus,
.bk-settings select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

/* ── Section common ───────────────────────────────────────── */
.bk-section {
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
}

.bk-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.bk-section-head button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Empty state (shared across sections) ─────────────────── */
.bk-empty {
  background: var(--bg);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
}

.bk-empty-icon {
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bk-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 4px;
}

.bk-empty-body {
  font-size: 12px;
  margin: 0;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── Logos grid ───────────────────────────────────────────── */
.bk-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .bk-logos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .bk-logos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .bk-logos-grid { grid-template-columns: 1fr; }
}

.bk-logo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  aspect-ratio: 4 / 3;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.bk-logo-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-xs);
}

.bk-logo-thumb {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 6px;
  padding: 8px;
  overflow: hidden;
}

.bk-logo-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.bk-logo-name {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ── Colors list ──────────────────────────────────────────── */
.bk-colors-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bk-color-row {
  display: grid;
  grid-template-columns: 28px 1fr auto 90px;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bk-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.bk-color-name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-color-hex {
  font-family: var(--font-family-mono, ui-monospace, monospace);
  font-size: 12px;
  color: var(--text-muted);
}

.bk-color-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
}

/* ── Fonts list ───────────────────────────────────────────── */
.bk-fonts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bk-font-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bk-font-preview {
  font-size: 16px;
  color: var(--text);
  padding-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-font-meta {
  font-family: var(--font-family-mono, ui-monospace, monospace);
  font-size: 11px;
  color: var(--text-muted);
}

.bk-font-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
}

/* ── Phase 1 disclaimer footer ────────────────────────────── */
.bk-phase-note {
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-secondary);
}
