/* ================================================
   HTML/CSS Live Editor - フロントエンド プロジェクト管理
   Version: 3.1.0
   ショートコード [hcle_project_manager] 用
================================================ */

/* ── 起動ボタン ── */
.hcle-pm-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #3d63dd;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(61,99,221,.35);
  letter-spacing: 0.3px;
}
.hcle-pm-launcher:hover {
  background: #2d52cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61,99,221,.45);
  color: #fff !important;
}
.hcle-pm-launcher:active { transform: translateY(0); }
.hcle-pm-launcher__icon { font-size: 18px; }

/* ── 未ログイン表示 ── */
.hcle-pm-login-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f5f5f8;
  border: 1px solid #e0e0ea;
  border-radius: 7px;
  font-size: 13px;
  color: #888;
}

/* ── モーダルオーバーレイ ── */
.hcle-pm-front-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99990;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.hcle-pm-front-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── モーダル本体 ── */
.hcle-pm-front-modal {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f0f0f4;
  display: flex;
  flex-direction: column;
  transform: scale(0.97);
  transition: transform .2s;
}
.hcle-pm-front-overlay.open .hcle-pm-front-modal {
  transform: scale(1);
}

/* ── モーダルトップバー ── */
.hcle-pm-front-topbar {
  background: #1e2433;
  color: #fff;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 1;
}
.hcle-pm-front-topbar-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcle-pm-front-topbar-title .badge {
  background: #3d63dd;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}
.hcle-pm-front-close {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
  font-family: 'Noto Sans JP', sans-serif;
}
.hcle-pm-front-close:hover { background: rgba(255,255,255,.2); }

/* ── モーダル内コンテンツ ── */
.hcle-pm-front-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* モーダル内で hcle-pm-wrap のマージンリセットを上書き */
.hcle-pm-front-content .hcle-pm-wrap {
  margin: 0 !important;
  height: 100%;
  min-height: auto;
  display: flex;
  flex-direction: column;
}
.hcle-pm-front-content .pm-page-header {
  /* トップバーと重複するので非表示 */
  display: none !important;
}
.hcle-pm-front-content .pm-layout {
  height: 100%;
}

/* body スクロール禁止 */
body.hcle-pm-open {
  overflow: hidden !important;
}
