/* ===== Overseas Salary Calculator Specific Styles ===== */

/* ===== Page Main Layout ===== */
.page-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ===== Page Header ===== */
/* common.css의 page-header 스타일 사용 */

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.page-header p {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
}

/* ===== Section ===== */
.section {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.section > p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* ===== Calculator Form ===== */
.calculator {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calculator__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calculator__field label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
}

.calculator__field input,
.calculator__field select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #111827;
  transition: border-color 0.2s;
}

.calculator__field input:focus,
.calculator__field select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calculator__error {
  color: #dc2626;
  font-size: 0.875rem;
  text-align: center;
  margin-top: -0.5rem;
}

/* ===== Result Card ===== */
.result-card {
  background-color: #f3f4f6;
  border-radius: 0.75rem;
  padding: 2rem;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-card[data-state="empty"] .result-card__content {
  display: none;
}

.result-card[data-state="empty"] .result-preview-loading {
  display: none;
}

.result-card[data-state="loading"] .result-card__content {
  display: none;
}

.result-card[data-state="loading"] .result-preview-default {
  display: none;
}

.result-card[data-state="loading"] .result-preview-loading {
  display: block !important;
}

.result-card[data-state="filled"] .result-card__preview {
  display: none;
}

.result-card__placeholder {
  text-align: center;
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* 블러 처리된 미리보기 */
.result-card__preview {
  position: relative;
  min-height: 20rem;
}

.result-preview-blur {
  filter: blur(4px);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}

/* result-preview-overlay, result-preview-cta 등은 common.css로 이동 */

.result-card__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.9375rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-card__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-card__summary {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-highlight {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.result-highlight__input {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
}

.result-highlight__amount-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
}

.result-highlight__amount-number {
  color: #2563eb;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.result-highlight__amount-unit {
  color: #9ca3af;
  font-size: 1.5rem;
  font-weight: 500;
  margin-left: 0.25rem;
}

.result-highlight__output {
  margin: 0.1rem 0 0;
  color: #3b82f6;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
}

.result-highlight__amount {
  border-bottom: 2px solid #bfdbfe;
  padding-bottom: 2px;
}

.result-highlight__badge {
  align-self: center;
  margin-top: 1rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: #e5e7eb;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.result-highlight__badge--hard {
  background: #fee2e2;
  color: #b91c1c;
}

.result-highlight__badge--easy {
  background: #dcfce7;
  color: #15803d;
}

.result-highlight__badge--neutral {
  background: #fef3c7;
  color: #d97706;
}

.result-card__line {
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
  margin: 0;
}

.result-card__line strong {
  color: #1f2937;
  font-weight: 600;
}

.result-card__label {
  display: inline-block;
  font-weight: 500;
  color: #6b7280;
  margin-right: 0.25rem;
}

.result-card__difficulty {
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
  margin-top: 0.5rem;
}

#result-stars {
  color: #f59e0b;
  font-size: 1.125rem;
  margin: 0 0.25rem;
}

#result-level {
  color: #6b7280;
  font-weight: 400;
}

.result-card__price-breakdown {
  margin-top: 1rem;
}

.result-card__notes-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.price-bar-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 2fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.price-bar-header-label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
}

.price-bar-header-graph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.price-bar-header-left {
  text-align: center;
  flex: 1;
}

.price-bar-header-right {
  text-align: center;
  flex: 1;
}

.price-bar-header-value {
  min-width: 78px;
  /* Empty - matches value space */
}

.result-card__country-comparison {
  font-size: 0.9375rem;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.result-card__notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-bar-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 2fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin: 0;
  background: transparent;
  border-bottom: 1px solid #e5e7eb;
}

.price-bar-item:last-child {
  border-bottom: none;
}

.price-bar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #111827;
  min-width: 0;
}

.price-bar-icon {
  font-size: 1.1rem;
}

.price-bar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-bar-graph {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.price-bar-fill {
  height: 100%;
  max-width: 100%;
  border-radius: 999px;
}

.price-bar-fill.cheaper {
  background: #3b82f6;
}

.price-bar-fill.expensive {
  background: #ef4444;
}

.price-bar-zone {
  flex: 1;
  display: flex;
  align-items: center;
  height: 14px;
  background: #e5e7eb;
  position: relative;
}

.price-bar-zone--left {
  justify-content: flex-end;
  border-radius: 999px 0 0 999px;
  overflow: hidden;
}

.price-bar-zone--right {
  justify-content: flex-start;
  border-radius: 0 999px 999px 0;
  overflow: hidden;
}

.price-bar-center-line {
  width: 1px;
  height: 18px;
  background: #9ca3af;
  flex-shrink: 0;
}

.price-bar-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  font-weight: 700;
  color: #111827;
  text-align: right;
  min-width: 78px;
}

.price-bar-number--mobile {
  display: none;
  margin-left: auto;
  font-weight: 700;
}

.price-bar-number--mobile.cheaper {
  color: #2563eb;
}

.price-bar-number--mobile.expensive {
  color: #dc2626;
}
.price-bar-number {
  letter-spacing: -0.01em;
}

.price-bar-status {
  font-size: 0.8125rem;
  font-weight: 600;
  color: inherit;
}

.price-bar-value.cheaper {
  color: #2563eb;
}

.price-bar-value.expensive {
  color: #dc2626;
}

.result-card__disclaimer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* ===== Details / Summary (Info & FAQ) ===== */
details {
  margin-bottom: 1rem;
}

summary {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

summary:hover {
  background-color: #f3f4f6;
}

details[open] summary {
  margin-bottom: 0.75rem;
}

details p {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.7;
  padding: 0 1rem;
}

/* ===== Back Link ===== */
.section--back {
  text-align: center;
  background-color: transparent;
  box-shadow: none;
  padding: 1rem;
}

.section--back a {
  font-size: 0.9375rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.section--back a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* ===== Visually Hidden (for screen readers) ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .top-bar__container {
    padding: 0.875rem 1rem;
  }

  .top-bar__logo {
    font-size: 1.125rem;
  }

  .page-main {
    padding: 1.5rem 1rem;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .price-bar-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .price-bar-header {
    grid-template-columns: 1fr;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .price-bar-header-label {
    font-size: 0.8125rem;
    text-align: left;
  }

  .price-bar-header-value {
    display: none;
  }

  .price-bar-header-graph {
    font-size: 0.8125rem;
  }

  .price-bar-value {
    display: none;
  }

  .price-bar-number--mobile {
    display: inline;
  }

  .result-highlight__output {
    font-size: 1.65rem;
  }

  .result-highlight__input {
    font-size: 0.9rem;
  }

  .result-highlight__amount-number {
    font-size: 2.5rem;
  }

  .result-highlight__amount-unit {
    font-size: 1.25rem;
  }
}

/* 계산기 카드 여백 조정 */
.card h2 {
  margin-bottom: 0.5rem;
}

.card > p {
  margin-bottom: 1.5rem;
}

/* 가이드 섹션 스타일 */
.guide-intro {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.guide-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.guide-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.guide-list li {
  padding: 0.75rem 0;
  line-height: 1.7;
  color: #374151;
}

.guide-list li strong {
  color: #1f2937;
}

/* Callout 박스 스타일 */
.callout {
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  line-height: 1.7;
}

.callout-warning {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}

.callout-tip {
  background-color: #dbeafe;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

.callout strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* 난이도 레벨 스타일 */
.difficulty-levels {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.difficulty-level {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 0.875rem 0;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.7;
}

.difficulty-level:last-child {
  border-bottom: none;
}

.difficulty-stars {
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

.difficulty-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.difficulty-desc {
  flex: 1;
  min-width: 100%;
  margin-top: 0.25rem;
  padding-left: 0;
  color: #4b5563;
}

@media (min-width: 640px) {
  .difficulty-desc {
    min-width: 0;
    margin-top: 0;
    padding-left: 0.5rem;
  }
}

/* 난이도별 색상 */
.difficulty-very-hard .difficulty-stars {
  color: #dc2626;
}

.difficulty-very-hard .difficulty-label {
  color: #dc2626;
}

.difficulty-hard .difficulty-stars {
  color: #f97316;
}

.difficulty-hard .difficulty-label {
  color: #f97316;
}

.difficulty-normal .difficulty-stars {
  color: #f59e0b;
}

.difficulty-normal .difficulty-label {
  color: #f59e0b;
}

.difficulty-easy .difficulty-stars {
  color: #3b82f6;
}

.difficulty-easy .difficulty-label {
  color: #3b82f6;
}

.difficulty-very-easy .difficulty-stars {
  color: #10b981;
}

.difficulty-very-easy .difficulty-label {
  color: #10b981;
}

/* 소득 비교 컨테이너 */
.comparison-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  overflow: hidden;
}

.comparison-card {
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
}

.comparison-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.comparison-subtitle {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
  display: block;
  font-weight: 400;
}

.comparison-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.7;
  display: block;
  max-width: 280px;
  margin: 0 auto;
}

.comparison-card.ppp h3 {
  color: #3b82f6;
}

.comparison-divider {
  width: 1px;
  background: #e5e7eb;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-badge {
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.6875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  letter-spacing: 0.05em;
}

/* 별점 그리드 */
.rating-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.rate-card {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  position: relative;
  transition: all 0.2s ease;
}

.rate-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0.5rem 0.5rem 0 0;
}

.rate-stars {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
  letter-spacing: 0.1em;
}

.rate-card.hard .rate-stars {
  color: #ef4444;
}

.rate-card.normal .rate-stars {
  color: #f59e0b;
}

.rate-card.easy .rate-stars {
  color: #10b981;
}

.rate-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.rate-card p {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* 난이도별 색상 (Top border & Title만) */
.rate-card.hard::before {
  background: #ef4444;
}

.rate-card.hard h3 {
  color: #dc2626;
}

.rate-card.normal::before {
  background: #f59e0b;
}

.rate-card.normal h3 {
  color: #d97706;
}

.rate-card.easy::before {
  background: #10b981;
}

.rate-card.easy h3 {
  color: #059669;
}

/* 팁 박스 */
.tip-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #3b82f6;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  margin-top: 2.5rem;
  line-height: 1.7;
  color: #4b5563;
  font-size: 0.875rem;
}

.tip-box strong {
  font-weight: 600;
  color: #1f2937;
}

/* 반응형 */
@media (max-width: 768px) {
  .comparison-container {
    grid-template-columns: 1fr;
  }

  .comparison-divider {
    width: 100%;
    height: 1px;
  }

  .vs-badge {
    margin: -0.5rem 0;
  }

  .rating-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .comparison-card {
    padding: 2rem 1.5rem;
  }

  .rate-stars {
    font-size: 1.25rem;
  }
}
