/**
 * H/MIX GALLERY — credit-modal.css
 * ダウンロード時クレジットコピーモーダル
 * fav-modal.css のデザインシステムに準拠
 */

/* ─── パネル固有スタイル ────────────────────────── */
.credit-dl-panel {
  width: min(480px, calc(100vw - 2rem));
  height: auto;
  max-height: calc(100vh - 88px - 3rem);
}

/* ─── ボディ ────────────────────────────────────── */
.credit-dl-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── マイクロコピー ────────────────────────────── */
.credit-dl-micro {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* ─── テキストエリア ────────────────────────────── */
.credit-dl-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(154, 223, 180, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  color: #9adfb4;
  resize: none;
  outline: none;
  cursor: text;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.credit-dl-textarea:focus {
  border-color: rgba(154, 223, 180, 0.5);
}

/* ─── アクション行 ──────────────────────────────── */
.credit-dl-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── ボタン：共通 ──────────────────────────────── */
.credit-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: all 0.15s;
  white-space: nowrap;
}

/* ─── プライマリ（コピーする） ───────────────────── */
.credit-dl-btn--primary {
  flex: 1;
  padding: 0.7rem 1.5rem;
  background: rgba(154, 223, 180, 0.12);
  border: 1px solid rgba(154, 223, 180, 0.4);
  color: #9adfb4;
  font-size: 0.95rem;
  font-weight: 500;
}

.credit-dl-btn--primary:hover {
  background: rgba(154, 223, 180, 0.2);
  border-color: rgba(154, 223, 180, 0.6);
}

.credit-dl-btn--primary.copied {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* ─── セカンダリ（.txt保存） ─────────────────────── */
.credit-dl-btn--secondary {
  padding: 0.7rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
}

.credit-dl-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

/* ─── 閉じるテキストリンク ─────────────────────── */
.credit-dl-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  cursor: pointer;
  align-self: center;
  transition: color 0.15s;
  padding: 0.25rem 0.5rem;
  letter-spacing: 0.04em;
}

.credit-dl-dismiss:hover {
  color: rgba(255, 255, 255, 0.55);
}
