/* ════════════════════════════════════════════
   TCS Paywall Modal — 공유 잠금 콘텐츠 결제 유도 모달
   사용처: SPI preview pages, 기타 잠금 카드 보유 미리보기 페이지
   네임스페이스: .tcs-paywall-*
   ════════════════════════════════════════════ */

.tcs-paywall-overlay[hidden] { display: none; }

.tcs-paywall-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.tcs-paywall-overlay.tcs-open { opacity: 1; }

.tcs-paywall-modal {
  width: 100%; max-width: 460px;
  background: #16161d;
  border: 1px solid #2a2a35;
  border-left: 3px solid #a78bfa;
  border-radius: 16px;
  padding: 32px 28px 24px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  font-family: 'Noto Sans KR', 'Noto Sans JP', -apple-system, sans-serif;
  color: #e8e8ed;
  line-height: 1.7;
}
.tcs-paywall-overlay.tcs-open .tcs-paywall-modal {
  transform: translateY(0) scale(1);
}

.tcs-paywall-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: #8888a0;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.15s;
}
.tcs-paywall-close:hover { color: #e8e8ed; background: rgba(255,255,255,0.05); }
.tcs-paywall-close:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }

.tcs-paywall-lock-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 5px 10px; border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tcs-paywall-title {
  font-size: 20px; font-weight: 800; line-height: 1.4;
  color: #e8e8ed;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.tcs-paywall-desc {
  font-size: 14px; line-height: 1.75;
  color: #a4a4b8;
  margin: 0 0 14px;
}

.tcs-paywall-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 4px;
}
.tcs-paywall-tag {
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.04);
  color: #8888a0;
  border: 1px solid #2a2a35;
  padding: 3px 9px; border-radius: 100px;
}

.tcs-paywall-divider {
  border: none; height: 1px;
  background: #2a2a35;
  margin: 22px 0 20px;
}

.tcs-paywall-promo-lead {
  font-size: 13.5px; color: #c0c0d0;
  line-height: 1.7; margin: 0 0 14px;
}
.tcs-paywall-promo-lead strong { color: #e8e8ed; font-weight: 700; }

.tcs-paywall-bullets {
  list-style: none; padding: 0; margin: 0 0 22px;
}
.tcs-paywall-bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px; color: #a4a4b8;
  line-height: 1.65;
}
.tcs-paywall-bullets li::before {
  content: '✓'; position: absolute; left: 2px; top: 5px;
  color: #a78bfa; font-weight: 800; font-size: 13px;
}

.tcs-paywall-actions {
  display: flex; gap: 10px;
  flex-wrap: wrap;
}

.tcs-paywall-cta-primary {
  flex: 1; min-width: 180px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 18px;
  background: #a78bfa;
  color: #0a0a0f;
  font-size: 14px; font-weight: 800; letter-spacing: 0.2px;
  border: none; border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.tcs-paywall-cta-primary:hover {
  background: #b89dfb;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
}
.tcs-paywall-cta-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.tcs-paywall-cta-secondary {
  padding: 13px 18px;
  background: transparent;
  color: #8888a0;
  font-size: 13px; font-weight: 600;
  border: 1px solid #2a2a35; border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.tcs-paywall-cta-secondary:hover {
  color: #e8e8ed;
  border-color: #3a3a48;
  background: rgba(255,255,255,0.03);
}
.tcs-paywall-cta-secondary:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }

/* 모바일 */
@media (max-width: 480px) {
  .tcs-paywall-overlay { padding: 12px; }
  .tcs-paywall-modal { padding: 28px 22px 20px; border-radius: 14px; }
  .tcs-paywall-title { font-size: 17px; }
  .tcs-paywall-desc { font-size: 13px; }
  .tcs-paywall-bullets li { font-size: 12.5px; }
  .tcs-paywall-cta-primary { font-size: 13px; padding: 12px 16px; min-width: 0; flex-basis: 100%; }
  .tcs-paywall-cta-secondary { flex-basis: 100%; padding: 11px 16px; }
  .tcs-paywall-actions { flex-direction: column; }
}

/* body scroll lock helper (paywall.js applies this) */
body.tcs-paywall-no-scroll { overflow: hidden; }
