/* ==========================================================================
   Base Reset - Foundation Styles
   HTML/Body 기본 스타일과 리셋
   ========================================================================== */

/* ===== HTML & Body ===== */
html {
  height: 100%;
}

body {
  font-family: var(--font-family-primary);
  min-height: 100%;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  caret-color: var(--color-text-primary);
}

/* ===== Scroll Lock (when modal is open) ===== */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Prevent iOS auto-scroll on input focus */
body.menu-open .create-menu-backdrop,
body.menu-open .search-modal-backdrop {
  touch-action: none;
}

body.menu-open .create-menu-sheet,
body.menu-open .create-menu-sheet * {
  touch-action: auto;
}

/* ===== Form Element Resets ===== */
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ===== Link Reset ===== */
a {
  text-decoration: none;
  color: inherit;
}
