/* Çözüm taslağındaki kategori rozetlerini kısa ya da iki satırlı metinde tam ortalar. */
.designer-page .recommendation-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 92px;
  min-height: 56px;
  padding: 9px 13px;
  border-radius: 15px;
  background: #e8f8fb;
  color: #078da7;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

.designer-page .recommendation-card:nth-child(2) > span {
  background: #fff0ec;
  color: #b84e38;
}

.designer-page .recommendation-card:nth-child(3) > span {
  background: #f0ebff;
  color: #6740c5;
}

/* Ürün adlarından bağımsız, çoklu seçilebilir iş alanları. */
.designer-topic-picker {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid #dce5f4;
  border-radius: 20px;
  background: linear-gradient(145deg, #f8fbff 0%, #fffaf2 100%);
}

.designer-topic-picker legend {
  padding: 0 8px;
  color: #0d1b3a;
  font-size: 15px;
  font-weight: 900;
}

.designer-topic-picker > p {
  margin: 0 0 14px;
  color: #68758d;
  font-size: 13px;
}

.designer-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.designer-topic-grid label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.designer-topic-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.designer-topic-grid span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 13px 10px 38px;
  border: 1px solid #d5deed;
  border-radius: 14px;
  background: #fff;
  color: #334765;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}

.designer-topic-grid span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #aebbd0;
  border-radius: 5px;
  transform: translateY(-50%);
  background: #fff;
}

.designer-topic-grid input:checked + span {
  border-color: #3159e8;
  background: #eef3ff;
  color: #173a9d;
  box-shadow: 0 7px 18px rgba(49, 89, 232, .1);
}

.designer-topic-grid input:checked + span::before {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: #3159e8;
  background: #3159e8;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.designer-topic-grid input:focus-visible + span {
  outline: 3px solid rgba(49, 89, 232, .2);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .designer-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .designer-topic-picker { padding: 18px 14px; }
  .designer-topic-grid { grid-template-columns: 1fr; }
}
