/**
 * 현키스팟 v3 — 디자인 토큰
 * 광고 랜딩 페이지와 색상 통일 (FF671D 오렌지)
 */

:root {
  /* ===== 브랜드 컬러 (v3 통일) ===== */
  --orange: #FF671D;          /* 메인 오렌지 (광고 랜딩과 동일) */
  --orange-dark: #E5530E;     /* 호버/active */
  --orange-light: #FFEFE4;    /* 배경/하이라이트 */

  /* ===== 잉크 (네이비 톤) ===== */
  --ink: #1B2951;             /* 헤더/주요 텍스트 */
  --ink-soft: #4A5878;        /* 본문 */
  --ink-mute: #8593AE;        /* 보조 */

  /* ===== 배경/경계 ===== */
  --bg: #FAF7F2;              /* 페이지 배경 */
  --bg-card: #FFFFFF;         /* 카드 */
  --beige: #F4EBE0;
  --cream: #FAF7F2;
  --line: #E8DFD0;            /* 경계선 */
  --line-soft: #F0EAE0;

  /* ===== 상태 컬러 ===== */
  --imminent: #FF671D;        /* 마감 임박 (오렌지) */
  --recruiting: #2563EB;      /* 모집 중 (블루) */
  --started: #1F7A3F;         /* 활성화 (그린) */
  --pending: #C2700A;         /* 대기 (앰버) */
  --warning: #C2421E;         /* 경고 (레드) */

  /* ===== 그림자 ===== */
  --shadow-sm: 0 1px 4px rgba(27,41,81,0.06);
  --shadow-md: 0 4px 16px rgba(27,41,81,0.08);
  --shadow-lg: 0 12px 40px rgba(255,103,29,0.15);

  /* ===== 반경 ===== */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* ===== 폰트 ===== */
  --font-base: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Gowun Batang', serif;
}

/* ===== 글로벌 리셋 ===== */
*, *::before, *::after { box-sizing: border-box; }
body, html { margin: 0; padding: 0; }
body {
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== 공통 유틸 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px;
  background: var(--orange); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255,103,29,0.30); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: 0 2px 6px rgba(255,103,29,0.25); }
.btn:focus-visible { outline: 3px solid rgba(255,103,29,0.45); outline-offset: 2px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); background: #FFF7F0; box-shadow: 0 6px 14px rgba(25,31,40,0.08); }
.btn-secondary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line);
}
.btn-block { width: 100%; }

/* ===== 카드 ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ===== 상태 배지 ===== */
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  white-space: nowrap;
}
.badge-imminent { background: #FFEFE4; color: var(--orange); }
.badge-recruiting { background: #E6F0FD; color: var(--recruiting); }
.badge-started { background: #E7F5EC; color: var(--started); }
.badge-pending { background: #FDF4E3; color: var(--pending); }

/* ===== 모달 (공통) ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(27,41,81,0.5);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999; padding: 16px;
}
.modal-overlay.is-open { display: flex; }
.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--bg); color: var(--ink-soft);
  border: none; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--line); }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.modal-subtitle { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
body.no-scroll { overflow: hidden; }

/* ===== 폼 ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-label .required { color: var(--orange); }
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px; color: var(--ink);
}
.form-input:focus {
  outline: 2px solid var(--orange);
  border-color: transparent;
}
.form-hint { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }

/* ===== 모바일 대응 ===== */
@media (max-width: 780px) {
  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }
  .btn-lg { padding: 14px 22px; font-size: 14px; }
  .modal-content { padding: 22px 20px; border-radius: var(--radius-lg); }
}
