/* platform/modal-forms.css — 見出し・ログイン小窓・入力欄・バッジ・補助クラス (旧 core.css から分割・見た目の変更なし) */

/* ─── Section Headers ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  margin-top: 18px;
}
.section-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.section-link  { font-size: 0.75rem; color: var(--accent2); cursor: pointer; }

/* ─── Login Modal ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 300;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-sheet {
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  width: 100%;
  max-width: 440px;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.modal-handle {
  width: 36px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.modal-desc  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; }
.login-options { display: flex; flex-direction: column; gap: 8px; }
.login-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card2);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.login-option:hover { border-color: var(--border2); }
.login-option svg, .login-option span.icon { font-size: 1.2rem; width: 24px; text-align: center; }

/* ─── Input ─── */
.input-group { margin-bottom: 12px; }
.input-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.input-field {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.input-field:focus { border-color: var(--accent); }

/* ─── Badges / Tags ─── */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
}
.badge-gold    { background: rgba(200,168,75,0.15); color: var(--accent); }
.badge-teal    { background: rgba(45,212,191,0.12); color: var(--accent2); }
.badge-purple  { background: rgba(139,92,246,0.12); color: var(--accent3); }
.badge-danger  { background: rgba(239,68,68,0.12);  color: var(--danger);  }

/* ─── Divider ─── */
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); font-size: 0.8rem; }
.text-accent { color: var(--accent); }
.text-teal   { color: var(--accent2); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.flex  { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none !important; }
