/* ============================================================
   PennyPage Portfolio Guard — 미러본 공용 보호 스킨
   - 상단 띠 알림 (dismiss 불가)
   - 우측하단 워터마크 배지
   - 포트폴리오 팝업 모달
   v=20260430a
   ============================================================ */

:root {
  --ppg-bg: rgba(15, 18, 28, 0.96);
  --ppg-fg: #f5f7fb;
  --ppg-accent: #ffb547;
  --ppg-accent-2: #5aa9ff;
  --ppg-border: rgba(255, 181, 71, 0.45);
}

/* 상단 띠 — 의뢰인 보호 알림 */
.ppg-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2147483646;
  background: linear-gradient(90deg, #1a1d28 0%, #2a1f10 50%, #1a1d28 100%);
  color: var(--ppg-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 9px 16px;
  text-align: center;
  border-bottom: 1px solid var(--ppg-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  user-select: none;
  line-height: 1.45;
}
.ppg-bar strong { color: var(--ppg-accent); font-weight: 700; }
.ppg-bar a {
  color: var(--ppg-accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  margin-left: 6px;
}
.ppg-bar a:hover { color: #fff; }

/* 본문을 띠 높이만큼 밀기 */
html.ppg-on body { padding-top: 38px !important; }
@media (max-width: 600px) {
  .ppg-bar { font-size: 11.5px; padding: 7px 10px; }
  html.ppg-on body { padding-top: 50px !important; }
}

/* 우측 하단 워터마크 배지 */
.ppg-badge {
  position: fixed;
  right: 14px; bottom: 14px;
  z-index: 2147483645;
  background: var(--ppg-bg);
  color: var(--ppg-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--ppg-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  user-select: none;
  pointer-events: none;
  opacity: 0.92;
}
.ppg-badge::before {
  content: "🔒 ";
  margin-right: 2px;
}

/* 모달 오버레이 */
.ppg-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", sans-serif;
  padding: 20px;
  animation: ppg-fade 0.2s ease-out;
}
.ppg-modal.is-open { display: flex; }
@keyframes ppg-fade { from { opacity: 0; } to { opacity: 1; } }

.ppg-modal__box {
  background: #fff;
  color: #15181f;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 32px 28px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  animation: ppg-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ppg-pop {
  from { transform: translateY(16px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.ppg-modal__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffb547 0%, #ff7a3a 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(255, 122, 58, 0.35);
}

.ppg-modal__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #15181f;
}
.ppg-modal__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555a66;
  margin: 0 0 22px;
  word-break: keep-all;
}
.ppg-modal__desc strong { color: #15181f; font-weight: 700; }

.ppg-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ppg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex: 1 1 auto;
  text-align: center;
}
.ppg-btn--primary {
  background: linear-gradient(135deg, #2a6bff 0%, #1a4fd6 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(42, 107, 255, 0.32);
}
.ppg-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(42, 107, 255, 0.42);
}
.ppg-btn--ghost {
  background: #f1f3f7;
  color: #555a66;
}
.ppg-btn--ghost:hover { background: #e6eaf0; }

.ppg-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #9aa0ad;
  border-radius: 8px;
}
.ppg-modal__close:hover { background: #f1f3f7; color: #15181f; }

@media (max-width: 480px) {
  .ppg-modal__box { padding: 26px 22px 22px; }
  .ppg-modal__title { font-size: 16px; }
  .ppg-modal__desc { font-size: 13px; }
  .ppg-btn { padding: 11px 14px; font-size: 13px; }
}
