/* =========================================================
   쪼아 - 정확한 MBTI 검사 (mbti.css)
   ========================================================= */

:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --line: #e8eaf4;
  --text: #1d2330;
  --muted: #667085;
  --primary: #6b5bff;
  --primary-2: #8c7dff;
  --soft: #f0eeff;
  --success: #19b36b;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --shadow-sm: 0 6px 18px rgba(42, 51, 83, 0.06);
  --shadow-md: 0 14px 34px rgba(43, 52, 91, 0.10);
  --shadow-lg: 0 22px 55px rgba(59, 70, 120, 0.14);
}

#zzoa-mbti-app.zzoa-mbti-wrap{
  max-width: 1080px;
  margin: 26px auto 48px;
  padding: 0 16px;
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

#zzoa-mbti-app *{
  box-sizing: border-box;
}

.mbti-hero{
  background: linear-gradient(135deg, #5f57e8 0%, #8b80ff 52%, #9c96ff 100%);
  border-radius: 28px;
  padding: 10px 22px 14px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.mbti-hero::after{
  content:"";
  position:absolute;
  right:-30px;
  top:-30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  filter: blur(2px);
}

.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 13px;
  font-weight: 700;
}

.hero-title{
  margin: 14px 0 8px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.hero-desc{
  margin: 0;
  color: rgba(255,255,255,.92);
  line-height: 1.65;
  font-size: 15px;
}

.hero-desc strong{
  color: #fff;
  font-weight: 800;
}

.hero-actions{
  display:flex;
  gap:10px;
  margin-top:16px;
  flex-wrap: wrap;
}

.btn{
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(107, 91, 255, .28);
}

.btn-ghost{
  background: #fff;
  color: #4338ca;
  border: 1px solid #dfe3ff;
}

.share-msg-box{
  margin-top: 10px;
  display: none;
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
}

.share-msg-box.show{
  display:block;
  animation: fadeUp .18s ease;
}

@keyframes fadeUp{
  from{ opacity:0; transform: translateY(6px);}
  to{ opacity:1; transform: translateY(0);}
}

/* 정보 패널 */
.mbti-info-panel,
.mbti-test-panel{
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.section-title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3f3a92;
}

.info-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.info-card{
  background: #fafbff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  text-align:center;
}

.info-icon{
  font-size: 26px;
  margin-bottom: 8px;
}

.info-label{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 700;
}

.info-value{
  font-size: 14px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.4;
}

/* 테스트 헤더 */
.test-header{
  margin-bottom: 14px;
}

.progress-wrap{
  background: #fbfbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.progress-track{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eceef6;
  overflow: hidden;
}

.progress-bar{
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b5bff, #9b92ff);
  transition: width .25s ease;
}

.progress-meta{
  margin-top: 8px;
  display:flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #5b6175;
  font-weight: 700;
}

.test-chip-row{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.test-chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edeaff;
  color: #4d40cf;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #e0dbff;
}

.test-chip.soft{
  background: #f7f8fd;
  color: #667085;
  border-color: #e8eaf4;
}

/* 질문 카드 */
.question-card{
  background: linear-gradient(180deg, #ffffff, #fcfcff);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.question-top{
  text-align:center;
  margin-bottom: 14px;
}

.question-number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 34px;
  border-radius: 999px;
  background: var(--soft);
  color: #4f46e5;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid #e3deff;
}

.question-title{
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #1f2430;
  word-break: keep-all;
}

.question-desc{
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.choice-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-card{
  border: 1px solid #e9ebf5;
  background: #fff;
  border-radius: 18px;
  padding: 16px 14px;
  cursor:pointer;
  text-align:center;
  transition: .15s ease;
  min-height: 210px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position: relative;
}

.choice-card:hover{
  border-color: #cfc9ff;
  box-shadow: 0 10px 24px rgba(94, 88, 213, .08);
  transform: translateY(-1px);
}

.choice-card.selected{
  border: 2px solid #6b5bff;
  background: linear-gradient(180deg, #ffffff, #f8f7ff);
  box-shadow: 0 12px 28px rgba(102, 88, 234, .12);
}

.choice-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f9;
  color: #667085;
  border: 1px solid #e6e8f0;
  font-weight: 800;
}

.choice-icon{
  font-size: 38px;
  line-height: 1;
  margin-bottom: 10px;
}

.choice-letter{
  font-size: 28px;
  font-weight: 900;
  color: #5b4fe0;
  margin-bottom: 8px;
}

.choice-text{
  font-size: 17px;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #262b36;
  word-break: keep-all;
}

.choice-subtext{
  margin-top: 8px;
  font-size: 13px;
  color: #70778a;
  line-height: 1.5;
}

.question-nav{
  display:flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* 계산 패널 */
.calc-panel{
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fafbff;
  padding: 16px;
}

.calc-title{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  color: #3f3a92;
  display:flex;
  align-items:center;
  gap: 6px;
}

.calc-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calc-item{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.calc-label{
  font-size: 13px;
  font-weight: 900;
  color: #4b5563;
  margin-bottom: 8px;
}

.calc-bar{
  height: 10px;
  border-radius: 999px;
  background: #eceff6;
  overflow: hidden;
}

.calc-fill{
  height: 100%;
  width: 50%;
  border-radius: 999px;
  transition: width .25s ease;
}

.calc-fill.ei{ background: linear-gradient(90deg, #6b5bff, #8f83ff); }
.calc-fill.sn{ background: linear-gradient(90deg, #10b981, #34d399); }
.calc-fill.tf{ background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.calc-fill.jp{ background: linear-gradient(90deg, #ec4899, #f472b6); }

.calc-text{
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 800;
}

.calc-note{
  margin-top: 10px;
  font-size: 13px;
  color: #616a7b;
  line-height: 1.6;
  background: #fff;
  border: 1px dashed #dfe4f4;
  border-radius: 12px;
  padding: 10px 12px;
}

/* 결과 패널 */
.result-panel{
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.result-hero{
  background: linear-gradient(135deg, #6759ee 0%, #8f85ff 60%, #a39dff 100%);
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  display:grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 12px;
  align-items: center;
}

.result-mini{
  font-size: 12px;
  font-weight: 800;
  opacity: .9;
  margin-bottom: 6px;
}

.result-type-row{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 8px;
}

.result-type{
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1.2px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 10px 14px;
}

.result-badge{
  font-size: 14px;
  font-weight: 900;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  padding: 8px 12px;
}

.result-summary{
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.94);
  word-break: keep-all;
}

.result-hero-right{
  display:flex;
  justify-content:flex-end;
}

.result-compat{
  width: 100%;
  max-width: 220px;
  background: rgba(255,255,255,.14);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  padding: 14px;
  text-align:center;
}

.compat-title{
  font-size: 12px;
  font-weight: 800;
  opacity: .9;
}

.compat-value{
  margin-top: 6px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.compat-note{
  margin-top: 6px;
  font-size: 11px;
  opacity: .86;
}

.result-highlight{
  margin-top: 12px;
  background: #f7f5ff;
  border: 1px solid #e7e1ff;
  border-left: 4px solid #6b5bff;
  border-radius: 14px;
  padding: 12px 14px;
  color: #353b48;
  font-size: 14px;
  line-height: 1.7;
}

.result-highlight strong{
  color: #4b3fe0;
}

.result-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.result-card{
  background: #fcfcff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.result-card h4{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 900;
  color: #363c4d;
}

.result-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4a5262;
  word-break: keep-all;
}

.result-card ul{
  margin: 0;
  padding-left: 18px;
}

.result-card li{
  font-size: 14px;
  line-height: 1.65;
  color: #4a5262;
  margin-bottom: 6px;
  word-break: keep-all;
}

/* 세부 지표 */
.dimension-analysis{
  margin-top: 16px;
  background: #fbfbff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.dim-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dim-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.dim-card-head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 8px;
  margin-bottom: 8px;
}

.dim-title{
  font-size: 14px;
  font-weight: 900;
  color: #374151;
}

.dim-winner{
  font-size: 12px;
  font-weight: 900;
  color: #4f46e5;
  background: #efedff;
  border: 1px solid #dfdbff;
  border-radius: 999px;
  padding: 5px 10px;
}

.dim-track{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eceff6;
  overflow:hidden;
}

.dim-fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b5bff, #9a92ff);
}

.dim-meta{
  margin-top: 7px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
  display:flex;
  justify-content: space-between;
}

/* 결과 액션 */
.result-actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 가이드 */
.result-guide{
  margin-top: 18px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 16px;
}

.guide-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.guide-card{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  background: #fcfcff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.guide-icon{
  font-size: 22px;
  line-height: 1;
  width: 28px;
  text-align:center;
  margin-top: 2px;
}

.guide-content h4{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
  color: #353b48;
}

.guide-content p{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5d6577;
  word-break: keep-all;
}

.legal-note{
  margin-top: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 12px 14px;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.7;
}

/* 모바일 대응 */
@media (max-width: 900px){
  .info-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .result-hero{
    grid-template-columns: 1fr;
  }

  .result-hero-right{
    justify-content: flex-start;
  }

  .result-grid,
  .dim-grid,
  .guide-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  #zzoa-mbti-app.zzoa-mbti-wrap{
    margin-top: 14px;
    padding: 0 10px;
  }

  .mbti-hero{
    border-radius: 20px;
    padding: 20px 16px 16px;
  }

  .hero-title{
    font-size: 28px;
  }

  .hero-desc{
    font-size: 14px;
  }

  .mbti-info-panel,
  .mbti-test-panel{
    padding: 12px;
    border-radius: 18px;
  }

  .question-card{
    padding: 14px 12px;
    border-radius: 18px;
  }

  .question-title{
    font-size: 22px;
  }

  .choice-grid{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .choice-card{
    min-height: 170px;
    padding: 14px 12px;
  }

  .choice-icon{
    font-size: 34px;
  }

  .choice-letter{
    font-size: 24px;
  }

  .choice-text{
    font-size: 16px;
  }

  .calc-grid{
    grid-template-columns: 1fr;
  }

  .question-nav{
    justify-content: center;
  }

  .question-nav .btn{
    flex: 1 1 100%;
  }

  .result-type{
    font-size: 36px;
  }

  .result-summary{
    font-size: 14px;
  }

  .result-badge{
    font-size: 13px;
  }
}

/* ===== 결과 공유 메시지 박스 전용 스타일 (흰 배경 영역용) ===== */
#zzoa-mbti-app #shareMsgResult{
  background: #f8f7ff !important;
  color: #2f3442 !important;              /* 글자색 어둡게 */
  border: 1px solid #ddd8ff !important;
  box-shadow: 0 8px 18px rgba(107, 91, 255, 0.08);
}

#zzoa-mbti-app #shareMsgResult strong{
  color: #4b3fe0 !important;              /* 강조문구 보라색 */
}

#zzoa-mbti-app #shareMsgResult span{
  color: #5b6175 !important;              /* URL 색상 */
  font-weight: 700;
  word-break: break-all;
}

.result-copyright{
  text-align:center;
  color:#8b8b99;
  font-size:11.5px;
  margin-top:8px;
}