/* =====================================================================
   style.css — text-shadowジェネレーター ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* プレビュー */
.ts-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 24px 16px;
  border-radius: var(--sg-radius, 12px);
  border: 1px solid var(--sg-border, #e5e7eb);
  background: #1e2330;
  overflow: hidden;
  text-align: center;
}
.ts-preview__text {
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  word-break: break-word;
  max-width: 100%;
}

/* プレビュー用コントロール（2列グリッド） */
.ts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
}

/* カラー入力 */
.ts-color {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

/* スライダー */
.ts-range {
  width: 100%;
  accent-color: var(--sg-accent, #3b5bdb);
}

/* 影レイヤーのヘッダ（見出し + 追加ボタン） */
.ts-layers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ts-layers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: var(--sg-space-3, 12px);
}

/* 個々のレイヤーカード */
.ts-layer {
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--sg-card-bg, #fff);
}
.ts-layer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ts-layer__title {
  font-weight: 700;
  font-size: 0.95rem;
}
.ts-layer__actions {
  display: inline-flex;
  gap: 6px;
}

/* レイヤー操作アイコンボタン */
.ts-iconbtn {
  width: 34px;
  height: 34px;
  line-height: 1;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: 8px;
  background: var(--sg-card-bg, #fff);
  color: var(--sg-fg, #222);
  cursor: pointer;
  font-size: 1rem;
}
.ts-iconbtn:hover:not(:disabled) {
  border-color: var(--sg-accent, #3b5bdb);
}
.ts-iconbtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ts-iconbtn--del:hover:not(:disabled) {
  border-color: #d64545;
  color: #d64545;
}

/* レイヤー内コントロール群 */
.ts-ctl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 16px;
  margin-top: 10px;
}
.ts-ctl {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ts-ctl__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sg-muted, #555);
}
.ts-ctl__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ts-ctl__row .ts-range {
  flex: 1 1 auto;
  min-width: 0;
}
.ts-num {
  flex: 0 0 4.5em;
  width: 4.5em;
  text-align: right;
  padding: 4px 6px;
}

/* プリセット */
.ts-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: var(--sg-space-2, 8px);
}
.ts-preset {
  flex: 0 0 auto;
}

/* 結果はコード表示として折り返す */
.sg-result__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
}
