* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: linear-gradient(160deg, #eef1ff 0%, #f4e9ff 100%);
  color: #2b2b2b;
  padding: 24px;
}

.app {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  text-align: center;
}

header h1 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.subtitle {
  margin: 0;
  color: #6b6b6b;
  font-size: 0.9rem;
}

.maintabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px;
  border-radius: 999px;
}

.maintab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #7a7a7a;
  cursor: pointer;
}

.maintab.active {
  background: #fff;
  color: #6a4fd6;
  box-shadow: 0 4px 12px rgba(90, 60, 160, 0.12);
}

.view,
.subview {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.view.active,
.subview.active {
  display: flex;
}

/* ---- 퀴즈 화면 ---- */

.progress-wrap {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c6cf0, #b06cf0);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.q-counter {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: #7a7a7a;
  font-weight: 600;
}

.question-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 8px 24px rgba(90, 60, 160, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.question-text {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

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

.option-btn {
  border: 1.5px solid #eae6fb;
  background: #faf9ff;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #2b2b2b;
}

.option-btn:hover {
  border-color: #b8a9f7;
  background: #f2edff;
}

.option-btn:active {
  transform: scale(0.98);
}

/* ---- 결과 화면 ---- */

.result-card {
  background: #fff;
  border-radius: 22px;
  padding: 36px 24px;
  box-shadow: 0 8px 24px rgba(90, 60, 160, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: pop 0.35s ease;
}

@keyframes pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.result-emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 4px;
}

.result-eyebrow {
  margin: 0;
  font-size: 0.85rem;
  color: #9a8fd6;
  font-weight: 700;
}

.result-title {
  margin: 2px 0 4px;
  font-size: 1.5rem;
}

.result-sub {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #8a7fcf;
  font-weight: 600;
}

.result-desc {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a4a4a;
}

.job-block {
  width: 100%;
  border-top: 1px dashed #e6e0fa;
  padding-top: 16px;
}

.job-block-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b6b6b;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.job-tag {
  background: #f2edff;
  color: #6a4fd6;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cta {
  background: linear-gradient(90deg, #7c6cf0, #b06cf0);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(124, 108, 240, 0.3);
}

.cta:active {
  transform: scale(0.98);
}

footer {
  text-align: center;
  color: #a9a9a9;
  font-size: 0.75rem;
}

/* ---- 조건으로 찾기 화면 ---- */

.filter-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 8px 24px rgba(90, 60, 160, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a4a4a;
}

.filter-hint {
  font-weight: 400;
  color: #9a9a9a;
  font-size: 0.78rem;
}

.filter-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #eae6fb;
  background: #faf9ff;
  font-size: 0.95rem;
  color: #2b2b2b;
  appearance: none;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1.5px solid #eae6fb;
  background: #faf9ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #4a4a4a;
  transition: all 0.15s ease;
}

.chip.active {
  background: linear-gradient(90deg, #7c6cf0, #b06cf0);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.ghost-btn {
  align-self: center;
  border: none;
  background: transparent;
  color: #9a8fd6;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}

.filter-notice {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: #6a4fd6;
  background: #f2edff;
  border-radius: 12px;
  padding: 10px 14px;
  line-height: 1.5;
}

.filter-count {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: #7a7a7a;
  font-weight: 600;
}

.job-result-top {
  justify-content: space-between;
}

.match-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.match-badge.full {
  background: #eef6ec;
  color: #4b9b5f;
}

.match-badge.partial {
  background: #fff3e0;
  color: #c98a1a;
}

.job-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-result-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(90, 60, 160, 0.06);
}

.job-result-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.job-result-emoji {
  font-size: 1.4rem;
}

.job-result-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.job-result-desc {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a5a5a;
}

.job-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-result-tag {
  background: #f2edff;
  color: #6a4fd6;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  color: #9a9a9a;
  font-size: 0.9rem;
  padding: 24px 0;
}
