/* ============================================================
   LandPrime - 공통 컴포넌트 스타일시트 (components.css)
   모든 페이지에서 공유하는 UI 컴포넌트 스타일
   ============================================================ */

/* ── 폰트 ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

/* ── 공통 리셋 보완 ── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   버튼 컴포넌트
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}
.lp-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.lp-btn-primary { background: #c0392b; color: #fff; }
.lp-btn-primary:hover:not(:disabled) { background: #a93226; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(192,57,43,.3); }

.lp-btn-secondary { background: #2563eb; color: #fff; }
.lp-btn-secondary:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-1px); }

.lp-btn-outline { background: #fff; color: #333; border: 1.5px solid #dde3ec; }
.lp-btn-outline:hover:not(:disabled) { border-color: #c0392b; color: #c0392b; }

.lp-btn-ghost { background: transparent; color: #666; }
.lp-btn-ghost:hover:not(:disabled) { background: #f5f6fa; color: #333; }

.lp-btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 4px; }
.lp-btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 8px; }
.lp-btn-full { width: 100%; }

.lp-btn-danger { background: #dc2626; color: #fff; }
.lp-btn-danger:hover:not(:disabled) { background: #b91c1c; }

.lp-btn-success { background: #16a34a; color: #fff; }
.lp-btn-success:hover:not(:disabled) { background: #15803d; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   폼 컴포넌트
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lp-form-group { margin-bottom: 14px; }
.lp-form-row { display: flex; gap: 10px; }
.lp-form-row .lp-form-group { flex: 1; }

.lp-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
}

.lp-input,
.lp-textarea,
.lp-select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.lp-input:focus,
.lp-textarea:focus,
.lp-select:focus {
  border-color: #c0392b;
  background: #fff;
}
.lp-input::placeholder,
.lp-textarea::placeholder { color: #94a3b8; }

/* 모바일에서 zoom 방지 - 16px 이상 */
@media (max-width: 768px) {
  .lp-input, .lp-textarea, .lp-select { font-size: 16px; }
}

.lp-textarea { resize: vertical; min-height: 80px; }

.lp-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.lp-checkbox input[type="checkbox"] { cursor: pointer; accent-color: #c0392b; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   카드 컴포넌트
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lp-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}
.lp-card-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-card-body { padding: 20px; }
.lp-card-footer {
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   배지 컴포넌트
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lp-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.lp-badge-red    { background: #fee2e2; color: #dc2626; }
.lp-badge-blue   { background: #dbeafe; color: #1d4ed8; }
.lp-badge-green  { background: #dcfce7; color: #16a34a; }
.lp-badge-orange { background: #ffedd5; color: #c2410c; }
.lp-badge-gray   { background: #f1f5f9; color: #64748b; }
.lp-badge-solid-red   { background: #dc2626; color: #fff; }
.lp-badge-solid-blue  { background: #2563eb; color: #fff; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   빈 상태 / 로딩
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lp-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}
.lp-empty .icon { font-size: 40px; margin-bottom: 12px; }
.lp-empty p { font-size: 14px; line-height: 1.6; }

.lp-loading {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
  font-size: 14px;
}
.lp-loading::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid #e8ecf0;
  border-top-color: #c0392b;
  border-radius: 50%;
  animation: lp-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   모달 컴포넌트
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.lp-modal-overlay.active { display: flex; }
.lp-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: lp-modal-in 0.2s ease-out;
}
@keyframes lp-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.lp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.lp-modal-head h3 { font-size: 16px; font-weight: 800; color: #222; margin: 0; }
.lp-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.lp-modal-close:hover { color: #333; }
.lp-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  flex: 1;
}
.lp-modal-foot {
  padding: 14px 20px;
  border-top: 1px solid #eee;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   탭 컴포넌트
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lp-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #eee;
  padding-bottom: 0;
  margin-bottom: 20px;
}
.lp-tab-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  white-space: nowrap;
}
.lp-tab-btn:hover { color: #555; }
.lp-tab-btn.active { color: #c0392b; border-bottom-color: #c0392b; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   개인정보 수집 안내 공통 모달
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.terms-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.terms-modal-overlay.active { display: flex; }
.terms-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 480px;
  width: 100%;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.terms-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.terms-modal-head h3 { font-size: 16px; font-weight: 800; color: #222; margin: 0; }
.terms-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.terms-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
}
.terms-modal-body h4 { font-size: 14px; font-weight: 800; color: #222; margin: 16px 0 8px; }
.terms-modal-body h4:first-child { margin-top: 0; }
.terms-modal-body ul { margin: 6px 0 0; padding-left: 18px; }
.terms-modal-body li { margin-bottom: 4px; }
.terms-modal-foot { padding: 14px 20px; border-top: 1px solid #eee; }
.terms-modal-ok {
  width: 100%;
  padding: 11px;
  background: #e65c00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.terms-modal-ok:hover { background: #cc4f00; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   페이지 공통 레이아웃
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lp-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.lp-page-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-page-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   스크롤 탑 버튼
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.scroll-top-btn {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(30,30,50,.6);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.scroll-top-btn:hover {
  background: rgba(192,57,43,.8);
  transform: translateY(-2px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   스크롤 애니메이션
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   반응형 유틸리티
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 481px) {
  .show-mobile-only { display: none !important; }
}
@media (max-width: 768px) {
  .hide-tablet { display: none !important; }
  .lp-form-row { flex-direction: column; }
}
