/* 전체 레이아웃 */
body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  margin: 0;
  background: #fafafa;   /* ✅ 너무 연한 회색 → 캡쳐 시 얼룩처럼 보일 수 있음 */
  color: #333;
}

header {
  text-align: center;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
header h1 {
  margin: 0;
  font-size: 1.6em;
}

/* 공통 */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
  flex-wrap: wrap; /* 기본은 PC에서 줄바꿈 허용 */
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: #f1f1f1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.tab-btn.active {
  background: #afdcc2;
  color: #fff;
}

/* 모바일 전용 */
@media (max-width: 768px) {
  .tabs {
    flex-wrap: nowrap;        /* 줄바꿈 없애기 */
    overflow-x: auto;         /* 가로 스크롤 허용 */
    -webkit-overflow-scrolling: touch; /* 부드러운 스크롤 */
    scrollbar-width: none;    /* 파이어폭스 스크롤바 제거 */
  }
  .tabs::-webkit-scrollbar {
    display: none;            /* 크롬/사파리 스크롤바 제거 */
  }
  .tab-btn {
    flex: 0 0 auto;           /* 버튼 크기 고정 */
    white-space: nowrap;      /* 텍스트 줄바꿈 방지 */
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* 입력 폼 */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  display: none;
}
.form-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 500;
}
input, select {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
  appearance: none;
}
button.submit-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #afdcc2;
  color: #fff;
  font-size: 1.1em;
  cursor: pointer;
}
button.submit-btn:hover {
  background: #5844d8;
}

/* 결과 영역 */
.result-container,
.report-container {
  background: #ffffff !important;   /* ✅ 완전 흰 배경 고정 */
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 10px;
  margin: 10px auto;
  max-width: 720px;
  overflow: hidden;
}

/* 카드형 출력 */
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 5px;
  margin: 5px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* ✅ 아주 약하게 */
}

/* 서브 카드 */
.sub-card {
  background: #fdfdfd;    /* ✅ 거의 흰색 */
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 5px 5px;
  margin: 10px 0;
  box-shadow: none;       /* ✅ 그림자 제거 */
}

.sub-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #333;
}

.sub-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

.logo {
  display: block;
  margin: 0px auto;
  max-width: 240px;
  height: auto;
}

@media (max-width: 768px) {
  .logo {
    max-width: 160px;
  }
}

/* MBTI 카드 스타일 */
.mbti-card {
  max-width: 500px;
  margin: 20px auto;
  background: linear-gradient(135deg, #fffaf5, #f9f9ff);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .mbti-card {
    padding: 15px;
  }
}

.mbti-header {
  font-size: 2.2em;
  font-weight: 900;
  color: #6c5ce7;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.mbti-body {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  text-align: left;
  padding: 15px;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  white-space: pre-line;
}

.mbti-card::before {
  content: "🐾";
  font-size: 5em;
  position: absolute;
  top: -10px;
  right: -10px;
  opacity: 0.1;
}

/* 보고서 영역 */
.report-container {
  max-width: 700px;   /* 데스크탑에서는 최대 700px */
  width: 100%;        /* 모바일에서는 꽉 차게 */
  margin: 20px auto;
  padding: 5px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.report-container .logo {
  text-align: center;
  margin-bottom: 15px;
}
.report-container .logo img {
  max-width: 150px;   /* 원하는 크기 */
  height: auto;
}

/* 제목 */
.report-container h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
}

/* 인트로 텍스트 */
.report-container .intro {
  background: #FFFFFF;    /* 은은한 회색 */
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.report-container .intro p {
  background: #ffffff;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

/* MBTI 선택 카드 (라디오 버튼 스타일) */
.option-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 20px;
}
@media (min-width: 600px) {
  .option-cards {
    flex-direction: row;
  }
}
.option-card {
  flex: 1;
  border: 2px solid #ccc;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}
.option-card input[type="radio"] {
  display: none;
}
.option-card:hover {
  border-color: #339900;
  background: #afdcc1;
  box-shadow: 0 4px 10px rgba(108,92,231,0.2);
}
.option-card input[type="radio"]:checked + span {
  font-weight: 700;
  color: #339900;
}
.option-card input[type="radio"]:checked + span::before {
  content: "V ";
}
/* 버튼 컨테이너 */
.share-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 버튼 디자인 */
.share-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 이미지 저장 버튼 */
.share-btn.save {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: white;
}

/* SNS 버튼 (예: 추가 시) */
.share-btn.sns {
  background: linear-gradient(135deg, #2196F3, #42A5F5);
  color: white;
}

/* hover 효과 */
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}