/* ============================================================
   FACTLINE — Report (제보 작성) page styles
   Page header, tabs, form, sidebar, submit modal
   ============================================================ */

.page-report {
  background: var(--bg-white);
  overflow-x: hidden;
}

/* =========================================================
   Page header (compact hero)
   ========================================================= */
.page-head {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 280px;
  background: linear-gradient(180deg, var(--purple-50) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.page-head .container {
  position: relative;
  z-index: 1;
}

.page-head-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
}

/* ---- Left text ---- */
.page-head-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-600);
}

.page-head-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--purple-600);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.page-head-title {
  margin-top: 16px;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-head-sub {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 540px;
}

/* ---- Right info box ---- */
.page-head-info {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 24px;
}

.info-list {
  display: flex;
  flex-direction: column;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
}

.info-item:first-child { padding-top: 4px; }
.info-item:last-child  { padding-bottom: 4px; border-bottom: none; }

.info-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* =========================================================
   Tabs (member / guest)
   ========================================================= */
.report-tabs-wrap { margin-top: 8px; }

.report-tabs {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
}

.report-tab {
  position: relative;
  padding: 16px 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 200ms ease;
}

.report-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px 2px 0 0;
  transition: background 220ms ease;
}

.report-tab:hover { color: var(--purple-600); }

.report-tab.is-active {
  color: var(--purple-600);
  font-weight: 600;
}

.report-tab.is-active::after {
  background: var(--gradient-accent);
}

/* =========================================================
   Report layout
   ========================================================= */
.report-section {
  margin-top: 32px;
  padding-bottom: 96px;
}

.report-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 800px) 320px;
  gap: 48px;
  align-items: start;
}

/* =========================================================
   Form container
   ========================================================= */
.report-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 56px 48px;
  transition: opacity 200ms ease;
}

.report-form.is-switching { opacity: 0.4; }

/* ---- Notice ---- */
.form-notice {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.form-notice-info {
  background: var(--purple-50);
  color: var(--purple-700);
}

.form-notice-warn {
  background: #FFFBEB;
  color: #92400E;
}

.form-notice + .form-field { margin-top: 32px; }

/* ---- Field structure ---- */
.form-field { margin-top: 28px; }
.form-field:first-child { margin-top: 0; }

.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.form-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}

.form-required {
  color: var(--status-reject);
  font-weight: 600;
  margin-left: 2px;
}

.form-hint {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.form-counter {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 180ms ease;
}

.form-counter.is-near  { color: var(--purple-600); }
.form-counter.is-max   { color: var(--status-reject); }

/* ---- Input & textarea ---- */
.form-input,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  outline: none;
}

.form-input {
  height: 52px;
  padding: 0 16px;
}

.form-textarea {
  min-height: 180px;
  padding: 14px 16px;
  resize: vertical;
  font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--purple-300);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* ---- Chip row ---- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.chip:hover {
  border-color: var(--purple-300);
}

.chip.is-active {
  background: var(--gradient-accent);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.chip.is-active:hover { transform: translateY(-1px); }

/* ---- URL list ---- */
.url-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.url-row .form-input {
  flex: 1;
  height: 48px;
}

.url-remove {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-tertiary);
  border-radius: var(--radius-md);
  transition: background 180ms ease, color 180ms ease;
}

.url-remove:hover {
  background: #FEE2E2;
  color: var(--status-reject);
}

.url-list .url-row:only-child .url-remove {
  opacity: 0.4;
  pointer-events: none;
}

.url-add {
  margin-top: 10px;
  padding: 6px 4px;
  background: transparent;
  color: var(--purple-600);
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease, opacity 180ms ease;
}

.url-add:hover { color: var(--purple-700); }

.url-add.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Image drop ---- */
.image-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 160px;
  padding: 24px;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  text-align: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.image-drop:hover,
.image-drop.is-drag,
.image-drop:focus-within {
  background: var(--purple-50);
  border-color: var(--purple-300);
}

.image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.image-drop-main {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.image-drop-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.image-preview {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.image-preview::-webkit-scrollbar { height: 6px; }
.image-preview::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

.image-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: color 180ms ease, transform 180ms ease;
}

.image-thumb-remove:hover {
  color: var(--status-reject);
  transform: scale(1.05);
}

/* ---- Guest block ---- */
.guest-block {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
}

.guest-block-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guest-block .form-field { margin-top: 16px; }
.guest-block .form-field:first-of-type { margin-top: 0; }

/* ---- reCAPTCHA placeholder ---- */
.recaptcha-box {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ---- Consent ---- */
.form-consent {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.consent-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.consent-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.consent-box {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-default);
  background: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  flex: 0 0 20px;
}

.consent-input:checked + .consent-box {
  background: var(--purple-600);
  border-color: var(--purple-600);
  color: #FFFFFF;
}

.consent-input:focus-visible + .consent-box {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.consent-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.consent-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-600);
  transition: color 180ms ease;
}

.consent-link:hover { color: var(--purple-700); text-decoration: underline; }

/* ---- Submit ---- */
.btn-submit {
  margin-top: 32px;
  width: 100%;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.btn-submit:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* =========================================================
   Sidebar — guide cards
   ========================================================= */
.report-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 24px;
}

.guide-tag {
  display: inline-block;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--purple-600);
  text-transform: uppercase;
}

.guide-title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.guide-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.guide-num {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: var(--purple-100);
  color: var(--purple-700);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Process flow */
.process-flow {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.process-flow li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0 18px;
}

.process-flow li:last-child { padding-bottom: 0; }

.process-flow li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 30px;
  bottom: 6px;
  width: 0;
  border-left: 1.5px dashed var(--border-default);
}

.flow-num {
  position: relative;
  z-index: 1;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  background: var(--purple-600);
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.flow-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.flow-text em {
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
}

/* =========================================================
   Submit complete modal
   ========================================================= */
.submit-modal { padding: 24px; }

.submit-modal-card {
  max-width: 460px;
  padding: 48px 40px;
  text-align: center;
  border-radius: var(--radius-xl);
}

.submit-check {
  margin: 0 auto;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--purple-50);
  color: var(--purple-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-title {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.submit-desc {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
}

.submit-code {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.submit-code-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.submit-code-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.submit-code-value {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.submit-code-copy {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.submit-code-copy:hover {
  color: var(--purple-600);
  border-color: var(--purple-300);
}

.submit-code-copy.is-copied {
  background: var(--purple-50);
  color: var(--purple-700);
  border-color: var(--purple-300);
}

.submit-actions {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.submit-actions .btn {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-size: 15px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .page-head-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-head-info { max-width: 480px; }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-aside {
    position: static;
    top: auto;
  }

  .report-form { padding: 40px 32px; }
}

@media (max-width: 768px) {
  .nav-primary { display: none; }
  .nav-toggle { display: inline-flex; }

  .page-head { padding: 40px 0 24px; }
  .page-head-title { font-size: 32px; }
  .page-head-sub { font-size: 15px; }

  .report-tabs-wrap { margin-top: 0; }
  .report-tab { font-size: 14.5px; }

  .report-section { margin-top: 20px; padding-bottom: 64px; }

  .report-form { padding: 28px 20px; }

  .form-input { height: 48px; }
  .chip { padding: 9px 16px; font-size: 13.5px; }

  .form-consent {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-submit { height: 56px; font-size: 16px; }

  .submit-modal-card { padding: 36px 24px; }
  .submit-title { font-size: 21px; }
  .submit-actions { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer { margin-top: 0; padding: 48px 0; }
}
