/* === 기본 리셋 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f5f0e8;
  --coral: #c96442;
  --coral-light: #e8927a;
  --navy: #1a2332;
  --navy-mid: #2d3f55;
  --gray: #6b7a8d;
  --gray-light: #e8e2d9;
  --white: #ffffff;
  --check-green: #2d7a4f;
}

body {
  background: var(--cream);
  color: var(--navy);
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  min-height: 100vh;
}

/* === 헤더 === */
header {
  background: var(--navy);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-label {
  font-size: 0.75rem;
  color: var(--coral-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.header-inner h1 {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 600;
}

.paste-btn {
  background: var(--coral);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.paste-btn:hover { background: var(--coral-light); }

/* === 메인 === */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem 4rem;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gray);
  line-height: 2;
  font-size: 1rem;
}

.empty-state strong { color: var(--coral); }

/* === 컨설턴트 그리드 === */
.consultant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* === 컨설턴트 카드 === */
.consultant-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(26,35,50,0.08);
  overflow: hidden;
}

.card-header {
  background: var(--navy-mid);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-header .avatar {
  width: 32px;
  height: 32px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.card-header h2 {
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
}

.card-body { padding: 1.25rem; }

/* === 섹션 === */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.6rem;
  margin-top: 1rem;
}

.section-label:first-child { margin-top: 0; }

/* === 체크리스트 === */
.checklist { list-style: none; }

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--gray-light);
  cursor: pointer;
  transition: opacity 0.2s;
}

.checklist li:last-child { border-bottom: none; }

.checklist li input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--coral);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist li label {
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
  line-height: 1.4;
}

.checklist li.checked label {
  text-decoration: line-through;
  color: var(--gray);
}

/* === 일정 === */
.schedule-list { list-style: none; }

.schedule-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-light);
  align-items: flex-start;
}

.schedule-item:last-child { border-bottom: none; }

.schedule-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral);
  white-space: nowrap;
  min-width: 60px;
  padding-top: 2px;
}

.schedule-title {
  font-size: 0.88rem;
  color: var(--navy);
  line-height: 1.4;
}

/* === 모달 === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,35,50,0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 560px;
  box-shadow: 0 8px 40px rgba(26,35,50,0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.modal-header h2 { font-size: 1.1rem; color: var(--navy); }

.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--gray);
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

textarea {
  width: 100%;
  height: 220px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  padding: 0.875rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--navy);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

textarea:focus { border-color: var(--coral); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-cancel {
  background: none;
  border: 1.5px solid var(--gray-light);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray);
}

.btn-confirm {
  background: var(--coral);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-confirm:hover { background: var(--coral-light); }

/* === 반응형 === */
@media (max-width: 600px) {
  header { padding: 1rem; }
  main { padding: 0 1rem 3rem; }
  .consultant-grid { grid-template-columns: 1fr; }
}
