/* /css/clients-content.css
 * clients.lawmate.io 대시보드 콘텐츠 페이지 공용 스타일 — 리뉴얼판
 */

:root {
  --accent: #C08A3E;
  --accent-2: #D9AE6C;
  --active-blue: #C08A3E;
  --accent-soft: #FBF2E4;
  --ink: #0B0E14;
  --text: #1E293B;
  --ash: #64748B;
  --line: #E7EAF0;
  --danger: #EF4444;
  --success: #16A34A;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body.content-body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background: #F3F5F9;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.c-container { max-width: 1040px; margin: 0 auto; padding: 22px 16px 90px; }
.c-container--wide { max-width: 1280px; }

@media (min-width: 1100px) {
  .c-container--wide .c-section { padding: 36px 44px; }
}

.c-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}
@media (max-width: 640px) {
  .c-form-grid { grid-template-columns: 1fr; }
}

.c-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 48px -34px rgba(15,23,42,.28);
}

.c-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.c-section-title { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }

.btn-home {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--accent-soft);
  transition: transform .15s var(--ease);
}
.btn-home:active { transform: scale(.95); }

/* ---------------------------------------------------------------
   폼 요소
   --------------------------------------------------------------- */
.c-group { margin-bottom: 18px; }
.c-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ash); margin-bottom: 7px; }

.c-input, .c-select, textarea.c-input {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: #F8FAFC;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.c-input:focus, .c-select:focus { outline: none; border-color: var(--accent); background: #fff; }
.c-input[readonly] { background: #F1F5F9; color: var(--ash); }

/* ---------------------------------------------------------------
   버튼 — 그라데이션 프라이머리
   --------------------------------------------------------------- */
.c-btn {
  padding: 14px 22px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .15s var(--ease);
}
.c-btn:active { transform: scale(.97); }
.c-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.c-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(192,138,62,.65);
}
.c-btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(192,138,62,.8); }
.c-btn-secondary { background: #F1F5F9; color: #475569; }
.c-btn-group { display: flex; gap: 10px; }

/* ---------------------------------------------------------------
   커스텀 모달 (alert/confirm 대체)
   --------------------------------------------------------------- */
.c-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11,14,20,.55);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
  z-index: 5500;
  padding: 20px;
}
.c-modal-overlay.is-active { opacity: 1; pointer-events: auto; }

.c-modal-alert {
  background: #fff;
  width: min(360px, 100%);
  border-radius: 24px;
  padding: 30px;
  box-sizing: border-box;
  text-align: center;
  transform: translateY(10px) scale(.98);
  transition: transform .2s var(--ease);
}
.c-modal-overlay.is-active .c-modal-alert { transform: translateY(0) scale(1); }

.c-modal-msg { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.65; margin-bottom: 22px; }
.c-modal-footer { display: flex; gap: 10px; }
.c-modal-btn { flex: 1; padding: 14px; border: none; border-radius: 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.c-modal-btn.confirm { background: var(--ink); color: #fff; }
.c-modal-btn.cancel { background: #F1F5F9; color: var(--ash); }

/* ---------------------------------------------------------------
   사건 카드 공용
   --------------------------------------------------------------- */
.case-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  background: #fff;
  transition: box-shadow .2s var(--ease);
}
.case-item:hover { box-shadow: 0 16px 34px -24px rgba(15,23,42,.3); }
.case-top { display: flex; justify-content: space-between; }
.case-info { font-size: 12px; color: var(--ash); font-weight: 700; }
.case-title { font-size: 1.05rem; font-weight: 800; margin-top: 6px; }
.button-group { display: flex; gap: 10px; }

.inner-card {
  background: #F8FAFC;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 15px;
}

/* 상태 뱃지 (pending/contracted 등) */
.status-pill {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.status-pill--pending { background: #DCFCE7; color: #15803D; }
.status-pill--contracted { background: #DBEAFE; color: #1D4ED8; }
.status-pill--cancelled { background: #F1F5F9; color: #94A3B8; }

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  background: #F1F5F9;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.file-chip:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------
   신뢰 배지 스트립 (사건 의뢰 상단)
   --------------------------------------------------------------- */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 26px;
}
.trust-strip__item { display: flex; flex-direction: column; gap: 2px; }
.trust-strip__item strong { font-size: 14px; font-weight: 800; color: var(--accent); }
.trust-strip__item span { font-size: 11.5px; color: var(--ash); font-weight: 600; }
.trust-strip__divider { width: 1px; height: 26px; background: rgba(192,138,62,.2); }
@media (max-width: 560px) {
  .trust-strip { flex-wrap: wrap; gap: 10px 18px; }
  .trust-strip__divider { display: none; }
}

/* ---------------------------------------------------------------
   번호 매긴 폼 서브섹션
   --------------------------------------------------------------- */
.form-subsection { margin-bottom: 30px; }
.form-subsection__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.form-subsection__num {
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-subsection__head h3 { margin: 0; font-size: 15.5px; font-weight: 800; color: var(--text); }
.form-subsection__head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ash); }

.file-box__title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.file-box__hint { font-size: 11.5px; color: #94A3B8; margin-top: 10px; }

/* ---------------------------------------------------------------
   개인정보/제3자 제공 동의
   --------------------------------------------------------------- */
.consent-box {
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 8px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  padding: 6px 0;
}
.consent-checkbox { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.consent-toggle {
  border: none; background: none; color: var(--accent);
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0 0 0 4px;
}
.consent-detail {
  display: none;
  font-size: 12px; color: var(--ash); line-height: 1.6;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin: 4px 0 6px 27px;
}
.consent-detail.is-open { display: block; }
.consent-detail a { color: var(--accent); }

/* 가입/로그인 모달 - 탭 */
.auth-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.auth-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
}
.auth-tab.is-active {
  color: #0f172a;
  border-bottom-color: var(--accent);
}

/* 페이지에 바로 노출되는 가입/로그인 카드 (팝업 아님) */
.auth-card {
  background: #fff;
  width: min(480px, 100%);
  border-radius: 28px;
  padding: 36px;
  box-sizing: border-box;
  box-shadow: 0 24px 50px -30px rgba(15,23,42,.25);
  border: 1px solid var(--line);
  margin-top: -8px;
}
.auth-card .btn-main { width: 100%; }

/* 히어로 혜택 리스트 */
.benefit-list { list-style: none; padding: 0; margin: 18px 0 0; max-width: 560px; }
.benefit-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: #B9BAC0;
  font-size: 15px;
  line-height: 1.5;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* 히어로 위에 얹는 가입 카드 */
.signup-card {
  background: #fff;
  border-radius: 26px;
  padding: 32px;
  margin-top: 36px;
  max-width: 720px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}

/* ---------------------------------------------------------------
   공개 블로그형 프로필 페이지 (profile_view.php)
   --------------------------------------------------------------- */
.blog-profile .container { max-width: 760px; padding: 60px 20px 100px; }
.blog-profile__header { margin-bottom: 36px; }
.blog-profile__header h1 { font-size: 2rem; font-weight: 800; margin: 10px 0 6px; }
.blog-profile__ceo { color: var(--ash); font-size: 14.5px; margin: 0; }
.blog-profile__intro {
  font-size: 15.5px; line-height: 1.9; color: #334155;
  padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line);
  white-space: pre-line;
}
.blog-profile__lawyers h2, .blog-profile__contact h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; }
.lawyer-blog-grid { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.lawyer-blog-card { display: flex; gap: 16px; }
.lawyer-blog-card__photo {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; overflow: hidden;
}
.lawyer-blog-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-blog-card h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; }
.lawyer-blog-card__meta { font-size: 12.5px; color: var(--ash); margin: 0 0 8px; }
.lawyer-blog-card__bio { font-size: 13.5px; line-height: 1.7; color: #475569; margin: 0; }
.blog-profile__contact ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; color: #475569; line-height: 1.9; }
.blog-profile__contact a { color: var(--accent); }

/* ---------------------------------------------------------------
   빈 상태 (목록이 없을 때)
   --------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  background: #FAFBFD;
}
.empty-state h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--text); }
.empty-state p { margin: 0 0 20px; font-size: 13.5px; color: var(--ash); }
.empty-state .c-btn { padding: 12px 26px; }

/* ---------------------------------------------------------------
   파일 업로드존 (join.php)
   --------------------------------------------------------------- */
.file-box {
  border: 2px dashed #CBD5E1; padding: 28px 20px; border-radius: 18px;
  background: #F8FAFC; text-align: center; transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.file-box.is-dragover { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.file-box__title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.file-box__hint { font-size: 11.5px; color: #94A3B8; margin-top: 10px; }
.file-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; margin-top: 9px; font-size: 13.5px; text-align: left;
}
.file-item .del { color: var(--danger); cursor: pointer; font-weight: 800; padding: 2px 6px; }

.upload-progress { display:none; margin-top:16px; }
.upload-progress.is-active { display:block; }
.upload-progress__track { height:8px; background:#E2E8F0; border-radius:999px; overflow:hidden; }
.upload-progress__bar { height:100%; width:0%; background:linear-gradient(90deg, var(--accent), var(--accent-2)); transition:width .15s linear; border-radius:999px; }
.upload-progress__label { font-size:12px; color:#64748b; margin-top:6px; font-weight:600; }

.spinner{
  display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,.5);
  border-top-color:#fff; border-radius:50%; animation: spin .7s linear infinite; margin-right:8px; vertical-align:-3px;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------------------------------------------------------------
   비밀번호 요구사항 체크리스트
   --------------------------------------------------------------- */
.pw-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; }
.req-item { font-size: 12px; color: #cbd5e1; font-weight: 600; }
.req-item.valid { color: var(--success); }
