/* ============================================================
   BCC Common — Export Bar + Action Guide + PDF off-screen pages
   Loaded by all BCC analyzer tools.
   ============================================================ */

/* ---------- On-page Export Bar (PDF download) ---------- */
.bcc-export-bar {
  display: none;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.bcc-export-bar.is-active { display: flex; }

/* Bottom variant: prominent, centered, sits right above legal-footer */
.bcc-export-bar-bottom {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 24px 0 16px;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(201,168,76,0.04) 0%, rgba(201,168,76,0.10) 100%);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 6px;
}

.bcc-export-btn {
  background: #0a0a0a;
  color: #C9A84C;
  border: 1px solid #C9A84C;
  padding: 14px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: inherit;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bcc-export-btn:hover:not(:disabled) {
  background: #C9A84C;
  color: #0a0a0a;
}
.bcc-export-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #999;
  border-color: #e8e5dd;
}
.bcc-export-btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Primary (big gold) variant — used at the bottom of every tool */
.bcc-export-btn-primary {
  min-width: 320px;
  padding: 18px 36px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, #C9A84C 0%, #e6c869 100%);
  color: #0a0a0a;
  border: none;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.22);
}
.bcc-export-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #e6c869 0%, #C9A84C 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 168, 76, 0.30);
  color: #0a0a0a;
}
.bcc-export-btn-primary:disabled {
  background: #2a2a2a;
  color: #777;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}
.bcc-export-icon {
  font-size: 22px;
  line-height: 1;
}
.bcc-export-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #6c6c78;
  letter-spacing: 0.2px;
}
@media (max-width: 640px) {
  .bcc-export-btn-primary {
    min-width: 0;
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
  }
}

/* ---------- On-page Action Guide section ---------- */
.bcc-guide-section {
  display: none;
  background: #0a0a0a;
  color: #fff;
  padding: 26px 30px;
  border-radius: 4px;
  border-left: 3px solid #C9A84C;
  margin-bottom: 16px;
  font-family: inherit;
}
.bcc-guide-section.is-active { display: block; }

.bcc-guide-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #C9A84C;
  margin-bottom: 18px;
  font-family: Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
}

/* Pre-generation prompt */
.bcc-guide-prompt {
  text-align: center;
  padding: 24px 0 10px;
}
.bcc-guide-prompt-h {
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.bcc-guide-prompt-p {
  font-size: 13px;
  color: #b0b0b0;
  margin-bottom: 22px;
  line-height: 1.7;
}
.bcc-guide-cta {
  background: #C9A84C;
  color: #0a0a0a;
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.bcc-guide-cta:hover:not(:disabled) { background: #e6c869; }
.bcc-guide-cta:disabled { background: #555; color: #999; cursor: not-allowed; }
.bcc-guide-meta {
  margin-top: 14px;
  font-size: 11px;
  color: #999;
  letter-spacing: 0.5px;
  line-height: 1.6;
}
.bcc-guide-meta strong { color: #C9A84C; }
.bcc-guide-meta .demo-tag {
  display: inline-block;
  background: rgba(74,124,158,0.18);
  color: #88c0e2;
  border: 1px solid rgba(74,124,158,0.5);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 10px;
  margin-left: 6px;
}

/* Loading state */
.bcc-guide-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #b0b0b0;
  font-size: 13px;
  padding: 28px 0;
}
.bcc-guide-spinner {
  width: 18px; height: 18px;
  border: 2px solid #2a2a2a;
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: bcc-spin 0.8s linear infinite;
}
@keyframes bcc-spin { to { transform: rotate(360deg); } }

/* Rendered guide steps */
.bcc-guide-steps { display: grid; gap: 12px; }
.bcc-guide-step {
  border-left: 2px solid #C9A84C;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-radius: 0 4px 4px 0;
}
.bcc-guide-step-num {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11px;
  color: #C9A84C;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.bcc-guide-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.bcc-guide-step-body {
  font-size: 13px;
  line-height: 1.85;
  color: #d4d4d4;
  white-space: pre-wrap;
  word-break: break-word;
}
.bcc-guide-step-body strong { color: #C9A84C; }
.bcc-guide-step-body em { color: #e6c869; font-style: normal; }
.bcc-guide-step-body code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Upsell card (when daily quota exceeded) */
.bcc-upsell {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.32);
  border-radius: 4px;
  padding: 24px 28px;
}
.bcc-upsell-h {
  font-size: 16px;
  color: #C9A84C;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.bcc-upsell-p {
  font-size: 13px;
  line-height: 1.85;
  color: #d4d4d4;
  margin-bottom: 18px;
}
.bcc-upsell-cta {
  display: inline-block;
  background: #fee500;
  color: #181600;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.bcc-upsell-cta:hover { background: #fff200; }

/* Inline error */
.bcc-guide-error {
  color: #ff8484;
  background: rgba(192,57,43,0.10);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12px;
  margin-top: 10px;
}

/* ============================================================
   PDF OFF-SCREEN PAGES
   ------------------------------------------------------------
   Pages are 794×1123 px (~A4 at 96dpi). Rendered off-screen and
   captured by html2canvas → embedded into jsPDF as A4 images.
   ============================================================ */

.bcc-pdf-shell {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
.bcc-pdf-page {
  width: 794px;
  height: 1123px;
  background: #0a0a0a;
  color: #ffffff;
  padding: 64px 64px 80px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.bcc-pdf-page * { box-sizing: border-box; }
.bcc-pdf-page .pdf-footer {
  position: absolute;
  left: 64px; right: 64px; bottom: 32px;
  font-size: 10px;
  color: #6a6a6a;
  letter-spacing: 0.5px;
  border-top: 1px solid #2a2a2a;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bcc-pdf-page .pdf-footer .pdf-foot-brand {
  font-family: Georgia, serif;
  letter-spacing: 3px;
  color: #C9A84C;
  font-size: 11px;
}

/* Cover */
.bcc-pdf-page.bcc-pdf-cover .cover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding-bottom: 60px;
}
.bcc-pdf-page .cover-brand-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 60px;
  letter-spacing: 18px;
  color: #fff;
  margin-bottom: 10px;
}
.bcc-pdf-page .cover-brand-line {
  width: 64px;
  height: 2px;
  background: #C9A84C;
  margin: 14px 0 20px;
}
.bcc-pdf-page .cover-brand-sub {
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 5px;
  color: #C9A84C;
  margin-bottom: 90px;
}
.bcc-pdf-page .cover-kicker {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: #C9A84C;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.bcc-pdf-page .cover-tool {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 28px;
  color: #fff;
}
.bcc-pdf-page .cover-target {
  font-size: 17px;
  color: #d4d4d4;
  margin-bottom: 60px;
  max-width: 540px;
  line-height: 1.6;
  font-weight: 500;
}
.bcc-pdf-page .cover-target strong { color: #C9A84C; font-weight: 700; }
.bcc-pdf-page .cover-date {
  font-size: 13px;
  color: #888;
  letter-spacing: 1.8px;
  font-family: Georgia, serif;
}

/* Content page header */
.bcc-pdf-page .pdf-page-kicker {
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #C9A84C;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.bcc-pdf-page .pdf-page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
  padding-bottom: 18px;
  border-bottom: 2px solid #C9A84C;
  color: #fff;
}

/* Headline (summary page) */
.bcc-pdf-page .pdf-headline {
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 4px;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 24px;
  color: #fff;
}
.bcc-pdf-page .pdf-headline strong { color: #C9A84C; }

/* KV grid (key/value cards) */
.bcc-pdf-page .pdf-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.bcc-pdf-page .pdf-kv {
  background: #16161a;
  border-left: 2px solid #C9A84C;
  padding: 14px 18px;
}
.bcc-pdf-page .pdf-kv .k {
  font-size: 10px;
  color: #999;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-weight: 700;
}
.bcc-pdf-page .pdf-kv .v {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.bcc-pdf-page .pdf-kv .v small {
  font-size: 11px;
  color: #888;
  font-weight: 500;
  margin-left: 4px;
}

/* Section block */
.bcc-pdf-page .pdf-section {
  margin-bottom: 22px;
  border-left: 3px solid #C9A84C;
  padding-left: 18px;
}
.bcc-pdf-page .pdf-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: -0.2px;
}
.bcc-pdf-page .pdf-section-body {
  font-size: 12.5px;
  line-height: 1.85;
  color: #d4d4d4;
  white-space: pre-wrap;
}
.bcc-pdf-page .pdf-section-body strong { color: #C9A84C; }
.bcc-pdf-page .pdf-section-list { list-style: none; padding: 0; margin: 0; }
.bcc-pdf-page .pdf-section-list li {
  font-size: 12.5px;
  line-height: 1.8;
  color: #d4d4d4;
  padding: 4px 0;
}
.bcc-pdf-page .pdf-section-list li::before {
  content: '— ';
  color: #C9A84C;
  font-weight: 700;
  margin-right: 4px;
}

/* Action guide step (inside PDF) */
.bcc-pdf-page .pdf-step {
  background: #16161a;
  border-left: 3px solid #C9A84C;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.bcc-pdf-page .pdf-step-num {
  font-family: Georgia, serif;
  font-size: 11px;
  color: #C9A84C;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.bcc-pdf-page .pdf-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.bcc-pdf-page .pdf-step-body {
  font-size: 12px;
  line-height: 1.85;
  color: #c4c4c4;
  white-space: pre-wrap;
}

/* CTA page */
.bcc-pdf-page.bcc-pdf-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
}
.bcc-pdf-cta-inner {
  text-align: center;
  padding: 0 40px;
}
.bcc-pdf-cta-pre {
  font-size: 13px;
  color: #C9A84C;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
  font-family: Georgia, serif;
  text-transform: uppercase;
}
.bcc-pdf-cta-h {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
  line-height: 1.3;
  color: #fff;
}
.bcc-pdf-cta-h strong { color: #C9A84C; }
.bcc-pdf-cta-p {
  font-size: 14px;
  color: #c0c0c0;
  line-height: 1.85;
  max-width: 540px;
  margin: 0 auto 36px;
}
.bcc-pdf-cta-card {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.32);
  border-radius: 6px;
  padding: 26px 30px;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.bcc-pdf-cta-card h3 {
  font-size: 17px;
  color: #C9A84C;
  margin-bottom: 14px;
  font-weight: 700;
}
.bcc-pdf-cta-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 2;
  color: #d4d4d4;
}
.bcc-pdf-cta-card li::before {
  content: '— ';
  color: #C9A84C;
  font-weight: 700;
}
.bcc-pdf-cta-link {
  margin-top: 24px;
  font-size: 13px;
  color: #C9A84C;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.bcc-pdf-cta-link strong { color: #fff; }
.bcc-pdf-qr {
  display: inline-block;
  margin-top: 18px;
  padding: 12px;
  background: #fff;
  border-radius: 4px;
}
.bcc-pdf-qr img { display: block; width: 110px; height: 110px; }
.bcc-pdf-qr-cap {
  margin-top: 8px;
  font-size: 10px;
  color: #888;
  text-align: center;
  letter-spacing: 0.5px;
}
