/* Theme picker (profile dialog) */
/* ============================== */
.pg-theme-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pg-theme-picker-section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pg-theme-picker-mode-label {
  font-size: 0.7rem;
  color: var(--bs-secondary-color);
}

.pg-theme-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pg-theme-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;

  padding: 0.25rem;
  border: 2px solid var(--bs-border-color);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
  flex: 1;

  &:hover {
    border-color: var(--bs-secondary-color);
  }

  &.pg-theme-btn--active {
    border-color: var(--bs-primary);
    outline: none;
  }

  &:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 1px;
  }
}

.pg-theme-swatch {
  display: block;
  width: 2.4rem;
  height: 1.4rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Swatch split: top = navbar colour, bottom = body colour */
.pg-theme-swatch--light-amber {
  background: linear-gradient(to bottom, #f5a623 50%, #ffffff 50%);
}

.pg-theme-swatch--light-slate {
  background: linear-gradient(to bottom, #2c4a6e 50%, #f7f9fb 50%);
}

.pg-theme-swatch--light-sage {
  background: linear-gradient(to bottom, #3d7055 50%, #f5faf6 50%);
}

.pg-theme-swatch--light-rose {
  background: linear-gradient(to bottom, #9e3050 50%, #fdf7f8 50%);
}

.pg-theme-swatch--light-indigo {
  background: linear-gradient(to bottom, #3d35b0 50%, #f8f7ff 50%);
}

.pg-theme-swatch--light-teal {
  background: linear-gradient(to bottom, #0d7377 50%, #f4fbfb 50%);
}

.pg-theme-swatch--dark-charcoal {
  background: linear-gradient(to bottom, #262626 50%, #212529 50%);
}

.pg-theme-swatch--dark-midnight {
  background: linear-gradient(to bottom, #1b2c4a 50%, #0d1925 50%);
}

.pg-theme-swatch--dark-ember {
  background: linear-gradient(to bottom, #2a160a 50%, #1a0e06 50%);
}

.pg-theme-swatch--dark-forest {
  background: linear-gradient(to bottom, #132212 50%, #0a150a 50%);
}

.pg-theme-swatch--dark-violet {
  background: linear-gradient(to bottom, #1c1040 50%, #100a28 50%);
}

.pg-theme-swatch--dark-ocean {
  background: linear-gradient(to bottom, #07232f 50%, #041520 50%);
}

.pg-theme-label {
  font-size: 0.65rem;
  line-height: 1;
  color: var(--bs-body-color);
  white-space: nowrap;
}
