/* 디마불사 AI 재무 상담 — 글로벌 스타일 */

:root {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, 'Noto Sans KR', sans-serif;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  background:
    radial-gradient(ellipse at top right, rgba(252, 211, 77, 0.08), transparent 40%),
    radial-gradient(ellipse at bottom left, rgba(74, 144, 217, 0.06), transparent 40%),
    #0B1426;
  background-attachment: fixed;
}

/* 슬라이드 인 애니메이션 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 페이드 인 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out both;
}

/* 버튼 선택지 호버 효과 */
.choice-btn {
  position: relative;
  overflow: hidden;
}

.choice-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(252, 211, 77, 0.05),
    transparent
  );
  transition: left 0.5s ease-out;
}

.choice-btn:hover::before {
  left: 100%;
}

/* 스크롤바 (모바일에서는 안 보임) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 상품 카드 transition */
.product-card {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.3s;
}

/* 텍스트 selection */
::selection {
  background: rgba(252, 211, 77, 0.3);
  color: #fff;
}

/* 입력창 자동 채우기 색상 보정 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f1f5f9;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset;
  transition: background-color 5000s ease-in-out 0s;
}
