/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* 모바일 최적화 전역 스타일 */

/* CSS Reset for Mobile */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  word-wrap: break-word;
  word-break: keep-all;
}

/* 모바일 터치 최적화 */
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 모바일 뷰포트 최적화 */
@media (max-width: 767px) {
  /* 기본 폰트 크기 증가 */
  html {
    font-size: 16px;
  }

  /* 모든 요소 오버플로우 방지 */
  * {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* 컨테이너 패딩 최적화 */
  .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100vw;
  }

  /* 섹션 간격 최적화 */
  section {
    margin-bottom: 32px;
    padding-left: 8px;
    padding-right: 8px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* 이미지 반응형 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 버튼 최소 높이 */
  button {
    min-height: 48px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 입력 필드 최적화 */
  input,
  select,
  textarea {
    font-size: 16px; /* iOS 줌 방지 */
    min-height: 48px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 텍스트 요소 오버플로우 방지 */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  span,
  div {
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
            hyphens: auto;
  }

  /* 스크롤 여백 (sticky CTA 때문에) */
  body {
    padding-bottom: 80px;
  }
}

/* 아이폰 X 이상 Safe Area 대응 */
@supports (padding: max(0px)) {
  .safe-area-bottom {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* 다크모드 대응 (선택적) */
@media (prefers-color-scheme: dark) {
  /* 필요시 다크모드 스타일 추가 */
}

/* 고대비 모드 대응 */
@media (prefers-contrast: high) {
  button,
  .card {
    border: 2px solid currentColor;
  }
}

/* 애니메이션 줄이기 선호 설정 대응 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 포커스 표시 개선 */
*:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* 스크롤바 스타일링 (Webkit) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 선택 텍스트 스타일 */
::selection {
  background: #6366f1;
  color: white;
}

::-moz-selection {
  background: #6366f1;
  color: white;
}

