/* ========================================
   직업 적성 분석 페이지 스타일
   ======================================== */

.career-page {
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.career-page .section-title,
.career-page .section-desc {
  text-align: center;
}

.career-page .section-title {
  background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.3));
}

/* 입력 폼 */
.saju-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  position: relative;
  background: rgba(20, 22, 30, 0.7);
  border: 1px solid rgba(205, 170, 80, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.saju-form::before {
  content: '';
  position: absolute;
  top: -1px; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 190, 70, 0.5), transparent);
}

.saju-form::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 190, 70, 0.3), transparent);
}

.form-row { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.form-group { flex: 1; }
.form-group label { display: block; color: var(--gray); font-size: 0.85rem; margin-bottom: 0.4rem; }

.form-group input,
.form-group select {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(20, 22, 30, 0.8);
  border: 1px solid rgba(205, 170, 80, 0.25);
  border-radius: 10px; color: var(--white);
  font-size: 1rem; font-family: inherit; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(230, 190, 70, 0.6);
  box-shadow: 0 0 12px rgba(230, 190, 70, 0.15), inset 0 0 8px rgba(230, 190, 70, 0.05);
}

.form-group input::placeholder { color: rgba(160, 152, 144, 0.5); }
.form-group select option { background: #1a1c26; color: var(--white); }

.gender-btns { display: flex; gap: 0.5rem; }

.gender-btn, .calendar-btn {
  flex: 1; padding: 0.75rem;
  background: rgba(20, 22, 30, 0.8);
  border: 1px solid rgba(205, 170, 80, 0.2);
  border-radius: 10px; color: var(--gray);
  cursor: pointer; font-size: 0.95rem; font-family: inherit;
  transition: all 0.3s;
}

.gender-btn:hover, .calendar-btn:hover {
  border-color: rgba(205, 170, 80, 0.4);
  background: rgba(205, 170, 80, 0.05);
}

.gender-btn.active, .calendar-btn.active {
  background: linear-gradient(145deg, rgba(205, 170, 80, 0.4) 0%, rgba(160, 130, 50, 0.06) 100%);
  border-top-color: rgba(255, 235, 150, 0.4);
  border-left-color: rgba(255, 235, 150, 0.3);
  border-bottom-color: rgba(140, 110, 40, 0.4);
  border-right-color: rgba(140, 110, 40, 0.3);
  color: var(--gold); font-weight: 600;
}

.btn-full { width: 100%; margin-top: 0.5rem; padding: 1rem; font-size: 1.1rem; }

/* 요약 카드 */
.career-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.career-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(205, 170, 80, 0.18);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.career-summary-card .card-label {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: rgba(205, 170, 80, 0.85);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.career-summary-card .card-value {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fcf6ba, #d4a843, #aa771c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.career-summary-card .card-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.2rem;
}

/* 오행 차트 */
.oheng-chart {
  max-width: 500px;
  margin: 0 auto 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(205, 170, 80, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
}

.oheng-chart h3 {
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.oheng-bar-row { display: flex; align-items: center; margin-bottom: 0.8rem; gap: 0.8rem; }
.oheng-label { width: 60px; font-size: 0.85rem; text-align: right; color: var(--white); }
.oheng-bar-bg { flex: 1; height: 24px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; overflow: hidden; }
.oheng-bar-fill { height: 100%; border-radius: 12px; transition: width 1s ease; width: 0; }
.oheng-bar-fill.wood { background: linear-gradient(90deg, #22c55e, #4ade80); }
.oheng-bar-fill.fire { background: linear-gradient(90deg, #ef4444, #f87171); }
.oheng-bar-fill.earth { background: linear-gradient(90deg, #d97706, #fbbf24); }
.oheng-bar-fill.metal { background: linear-gradient(90deg, #94a3b8, #e2e8f0); }
.oheng-bar-fill.water { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.oheng-count { width: 30px; font-size: 0.9rem; color: var(--white); font-weight: 600; }

/* 분석 결과 */
.result-interpretation {
  max-width: 700px;
  margin: 0 auto 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(205, 170, 80, 0.4);
  border-radius: 16px;
  padding: 2rem;
  line-height: 1.9;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: var(--white);
}

.loading-spinner { text-align: center; padding: 2rem; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255, 215, 0, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner p { color: var(--gray); font-size: 0.9rem; }

.premium-interpretation p { margin-bottom: 0.8rem; }
.interp-section-title {
  color: var(--gold); font-weight: 700; font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem; padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(205, 170, 80, 0.2);
}
.interp-label { color: #fcf6ba; }

.result-actions {
  display: flex; justify-content: center; gap: 1rem;
  margin-bottom: 3rem; flex-wrap: wrap; padding: 0 1rem;
}

/* 크로스 링크 */
.cross-links { border-top: 1px solid rgba(205, 170, 80, 0.35); padding: 2rem 1rem 0; max-width: 700px; margin: 0 auto; }
.cross-links h3 { text-align: center; color: var(--gray); font-size: 1rem; margin-bottom: 1rem; }
.cross-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.cross-card { background: var(--card-bg); border: 1px solid rgba(205, 170, 80, 0.35); border-radius: 12px; padding: 1.2rem; text-align: center; text-decoration: none; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cross-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.cross-card .saro-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; color: var(--gold); }
.cross-card p { color: var(--gray); font-size: 0.85rem; }

/* SEO 콘텐츠 */
.seo-content {
  max-width: 700px; margin: 3rem auto; padding: 2rem 1.5rem;
  color: var(--gray); line-height: 1.8;
}
.seo-content h2 { color: var(--gold); font-size: 1.3rem; margin-bottom: 1rem; }
.seo-content h3 { color: #f0e4c2; font-size: 1.05rem; margin: 1.5rem 0 0.6rem; }
.seo-content p { margin-bottom: 1rem; font-size: 0.92rem; }

.seo-table-wrap { overflow-x: auto; margin: 1rem 0; }
.seo-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.85rem; color: var(--white);
}
.seo-table th {
  background: rgba(205, 170, 80, 0.15);
  color: var(--gold); padding: 0.7rem 0.8rem;
  text-align: left; font-weight: 600;
  border-bottom: 1px solid rgba(205, 170, 80, 0.3);
}
.seo-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.seo-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* 모바일 */
@media (max-width: 768px) {
  .form-row { flex-direction: column; gap: 0.8rem; }
  .career-summary-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .career-summary-cards { grid-template-columns: 1fr; }
}
