/* 파일 책임: 결과 박스, 히어로 카드, 요약 그리드 스타일 */

/* ─────────────────────────────────────────────
   결과 섹션 래퍼 (기본 숨김, 애니메이션 진입)
───────────────────────────────────────────── */
.result-section {
  display: none;
}

.result-section.is-visible {
  display: block;
  animation: result-enter 0.35s ease forwards;
}

@keyframes result-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────
   히어로 카드 (메인 금액 표시)
───────────────────────────────────────────── */
.result-hero {
  position: relative;
  background-color: var(--color-result-bg);    /* #1A1A2E */
  border-radius: 16px;
  padding: 28px 24px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* 배경 글로우 효과 */
.result-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(15, 123, 108, 0.25) 0%,
    rgba(15, 123, 108, 0.08) 50%,
    transparent 70%
  );
  pointer-events: none;
}

/* 좌측 하단 보조 글로우 */
.result-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(15, 123, 108, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* 히어로 내용은 글로우 위에 표시 */
.result-hero__content {
  position: relative;
  z-index: 1;
}

/* 레이블 (작은 대문자) */
.result-hero__label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* 메인 금액 */
.result-hero__amount {
  font-size: var(--text-result-hero);    /* 44px */
  font-weight: var(--font-extrabold);
  color: var(--color-text-inverse);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
  word-break: break-all;
}

/* 월 환산 메모 */
.result-hero__monthly-note {
  font-size: var(--text-xs);
  color: var(--color-accent-teal-light);
  line-height: 1.5;
}

/* 태블릿/데스크탑 패딩 확대 */
@media (min-width: 768px) {
  .result-hero {
    padding: 40px 48px;
  }
}

/* 데스크탑: 금액 폰트 확대 */
@media (min-width: 1024px) {
  .result-hero__amount {
    font-size: var(--text-result-hero-lg);   /* 56px */
  }
}

/* ─────────────────────────────────────────────
   요약 그리드
───────────────────────────────────────────── */
.result-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .result-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* 요약 아이템 카드 */
.result-summary__item {
  background-color: var(--color-bg-subtle);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 아이템 레이블 */
.result-summary__label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
  line-height: 1.4;
}

/* 아이템 값 */
.result-summary__value {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* 세금/공제 항목은 붉은색 */
.result-summary__value.is-tax {
  color: var(--color-error);
}

/* 강조 항목 (실수령액 등) */
.result-summary__value.is-accent {
  color: var(--color-accent-primary);
}

/* ─────────────────────────────────────────────
   결과 상세 박스 (보조 정보)
───────────────────────────────────────────── */
.result-detail {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.result-detail__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: 14px;
}

.result-detail__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
}

.result-detail__row:last-child {
  border-bottom: none;
}

.result-detail__name {
  color: var(--color-text-secondary);
}

.result-detail__value {
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

.result-detail__value.is-tax {
  color: var(--color-error);
}

/* ─────────────────────────────────────────────
   결과 섹션 제목
───────────────────────────────────────────── */
.result-title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-primary);
  display: inline-block;
}
