/* ════════════════════════════════════════════════════════════════
   Love Compatibility — 궁합 마스터 리포트
   라이트 핑크/로즈 디자인 + 다크 토글 지원
   ════════════════════════════════════════════════════════════════ */

.lc-page {
  min-height: calc(100vh - 56px);
  padding: 60px 24px 100px;
  background: linear-gradient(180deg, #fdf2f8 0%, #fff1f2 60%, #fff5f7 100%);
}
.lc-container {
  max-width: 720px;
  margin: 0 auto;
}

/* ─── 헤드 ─── */
.lc-head { text-align: center; margin-bottom: 32px; }
.lc-pin {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: #be185d;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lc-title {
  font-size: 36px;
  font-weight: 800;
  color: #1f1937;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.lc-sub {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* ─── 정보 카드 ─── */
.lc-info-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(236, 72, 153, 0.1);
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.1);
  overflow: hidden;
  margin-bottom: 22px;
}

.lc-info-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.08);
}
.lcih-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border-radius: 14px;
  font-size: 26px;
  color: #ec4899;
}
.lcih-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1f1937;
  margin-bottom: 3px;
}
.lcih-body p {
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 0.02em;
}
.lcih-price { text-align: right; }
.lcip-old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 6px;
}
.lcip-off {
  display: inline-block;
  padding: 2px 8px;
  background: #ec4899;
  color: white;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.lcip-new {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  color: #be185d;
  letter-spacing: -0.02em;
}

/* 포함 내용 */
.lc-features {
  padding: 20px 26px;
  background: linear-gradient(180deg, rgba(252, 231, 243, 0.5), rgba(252, 231, 243, 0.3));
}
.lcf-title {
  font-size: 13px;
  font-weight: 700;
  color: #be185d;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.lc-features ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-features li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: #4b5563;
}
.lcfi {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(236, 72, 153, 0.15);
  color: #be185d;
  border-radius: 50%;
  font-size: 12px;
}

/* ─── 폼 카드 ─── */
.lc-form-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.08);
  padding: 28px;
}
.lc-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.lcfh-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(236, 72, 153, 0.15);
  color: #be185d;
  border-radius: 50%;
  font-size: 16px;
}
.lc-form-head h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1f1937;
}

.lc-persons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 700px) {
  .lc-persons { grid-template-columns: 1fr; }
}

.lc-person {
  padding: 18px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lc-person-pink {
  background: rgba(252, 231, 243, 0.4);
  border: 1px solid rgba(236, 72, 153, 0.18);
}
.lc-person-purple {
  background: rgba(237, 233, 254, 0.4);
  border: 1px solid rgba(168, 85, 247, 0.18);
}
.lcp-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1f1937;
  margin-bottom: 4px;
}
.lc-person-pink .lcp-icon { color: #ec4899; }
.lc-person-purple .lcp-icon { color: #a855f7; }

.lc-field input[type="text"],
.lc-field input[type="date"],
.lc-field input[type="time"] {
  width: 100%;
  padding: 11px 14px;
  background: white;
  border: 1.5px solid rgba(168, 85, 247, 0.15);
  border-radius: 8px;
  font-size: 13px;
  color: #1f1937;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lc-person-pink .lc-field input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}
.lc-person-purple .lc-field input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.lc-radio-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px;
  font-size: 13px;
  color: #4b5563;
}
.lc-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
}
.lc-radio-row input[type="radio"] { accent-color: #ec4899; }
.lc-person-purple .lc-radio-row input[type="radio"] { accent-color: #a855f7; }

.lc-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  font-weight: 600;
}
.lc-check input[type="checkbox"] { accent-color: #ec4899; }
.lc-person-purple .lc-check input[type="checkbox"] { accent-color: #a855f7; }

/* ─── 제출 버튼 ─── */
.lc-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 50%, #a855f7 100%);
  color: white;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}
.lc-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.45);
}

/* ════════════════════════════════════════════════════════════════
   다크 모드 변환
   ════════════════════════════════════════════════════════════════ */
body.dark .lc-page {
  background: linear-gradient(180deg, #1a0a1f 0%, #15041a 50%, #07060f 100%);
}
body.dark .lc-pin {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.35);
  color: #f9a8d4;
}
body.dark .lc-title { color: white; }
body.dark .lc-sub { color: #c5c4d6; }

body.dark .lc-info-card {
  background: rgba(20, 14, 30, 0.85);
  border-color: rgba(236, 72, 153, 0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
body.dark .lc-info-head { border-bottom-color: rgba(236, 72, 153, 0.1); }
body.dark .lcih-icon {
  background: rgba(236, 72, 153, 0.18);
  color: #f9a8d4;
}
body.dark .lcih-body h3 { color: white; }
body.dark .lcih-body p { color: #9ca3af; }
body.dark .lcip-old { color: #6b7280; }
body.dark .lcip-new { color: #f472b6; }

body.dark .lc-features {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.08), rgba(236, 72, 153, 0.04));
}
body.dark .lcf-title { color: #f472b6; }
body.dark .lc-features li { color: #d1d5db; }
body.dark .lcfi {
  background: rgba(236, 72, 153, 0.22);
  color: #f9a8d4;
}

body.dark .lc-form-card {
  background: rgba(20, 14, 30, 0.85);
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
body.dark .lc-form-head h3 { color: white; }
body.dark .lcfh-icon {
  background: rgba(236, 72, 153, 0.22);
  color: #f9a8d4;
}

body.dark .lc-person-pink {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.25);
}
body.dark .lc-person-purple {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
}
body.dark .lcp-h { color: white; }
body.dark .lc-field input {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
  color-scheme: dark;
}
body.dark .lc-field input::placeholder { color: #6b7280; }
body.dark .lc-radio-row,
body.dark .lc-check { color: #d1d5db; }

@media (max-width: 540px) {
  .lc-title { font-size: 28px; }
  .lc-info-head { grid-template-columns: 48px 1fr; padding: 18px; }
  .lcih-price { grid-column: 1 / -1; text-align: left; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(236, 72, 153, 0.1); }
  .lc-form-card { padding: 22px 18px; }
}

/* ════════════════════════════════════════════════════════════════
   추가: 궁합 분석 결과 카드 (Mock API 응답 표시 영역)
   - 입력 카드(.lc-form-card)와 동일 폭/스타일 톤 유지
   - 두 사람 컬러 톤 (핑크 ↔ 퍼플) 양쪽으로 그라데이션
   - 추가/업데이트 시 이 블록 안에 주석으로 표기할 것
   ════════════════════════════════════════════════════════════════ */
.lc-result-card {
  margin-top: 24px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.15);
  animation: lcResultIn 0.45s ease-out both;
}
@keyframes lcResultIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 결과 헤더 */
.lc-result-head {
  padding: 22px 26px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 50%, #a855f7 100%);
  color: white;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.lcr-person {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.lcr-person .lcr-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: 2px solid rgba(255,255,255,0.4);
}
.lcr-person .lcr-name {
  font-size: 14px;
  font-weight: 800;
}
.lcr-person .lcr-meta {
  font-size: 11px;
  opacity: 0.85;
}
.lcr-heart {
  font-size: 32px;
  animation: lcrHeart 1.4s ease-in-out infinite;
}
@keyframes lcrHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.lc-result-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 종합 궁합 점수 (도넛 그래프) */
.lcr-score-wrap {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 14px;
}
.lcr-score-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: conic-gradient(
    #ec4899 0%,
    #ec4899 var(--p, 0%),
    #f0d9e6 var(--p, 0%),
    #e9dcfa 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.lcr-score-circle::before {
  content: "";
  position: absolute; inset: 9px;
  background: white;
  border-radius: 50%;
}
.lcr-score-num {
  position: relative;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lcr-score-meta h4 {
  font-size: 18px;
  font-weight: 800;
  color: #1f1937;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.lcr-score-meta p {
  font-size: 13px;
  line-height: 1.65;
  color: #6b7280;
}

/* 카테고리 (성격/소통/가치관 등) — 가로 막대 */
.lcr-cats {
  display: flex; flex-direction: column; gap: 12px;
}
.lcr-cat-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  gap: 12px;
  align-items: center;
}
.lcr-cat-label {
  font-size: 13px;
  font-weight: 700;
  color: #1f1937;
  display: flex; align-items: center; gap: 6px;
}
.lcr-cat-bar {
  height: 10px;
  background: #f3e8ff;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.lcr-cat-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ec4899, #a855f7);
  width: 0;
  transition: width 0.8s ease-out;
}
.lcr-cat-num {
  font-size: 13px;
  font-weight: 800;
  color: #be185d;
  text-align: right;
}

/* 강점 / 갈등 트리거 듀얼 박스 */
.lcr-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lcr-dual-box {
  padding: 16px;
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.lcr-dual-box.strong {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.2);
}
.lcr-dual-box.risk {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.lcr-dual-box h5 {
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; gap: 6px;
}
.lcr-dual-box.strong h5 { color: #be185d; }
.lcr-dual-box.risk   h5 { color: #7c3aed; }
.lcr-dual-box ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.lcr-dual-box li {
  font-size: 12.5px;
  line-height: 1.55;
  color: #4b5563;
  padding-left: 14px;
  position: relative;
}
.lcr-dual-box li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #ec4899;
}
.lcr-dual-box.risk li::before { color: #a855f7; }

/* 데이트/궁합 추천 (행운 요소) */
.lcr-lucky {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lcr-lucky-item {
  text-align: center;
  padding: 12px 8px;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  background: rgba(245, 243, 255, 0.6);
}
.lcr-lucky-item .lk-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 4px;
}
.lcr-lucky-item .lk-val {
  font-size: 14px;
  font-weight: 800;
  color: #7c3aed;
}

/* 종합 조언 박스 */
.lcr-advice {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(168,85,247,0.08));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #4b5563;
}
.lcr-advice strong {
  display: block;
  font-weight: 800;
  color: #7c3aed;
  margin-bottom: 6px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* 액션 버튼 */
.lcr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lcr-btn {
  padding: 13px;
  font-size: 13px; font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.2s;
}
.lcr-btn-primary {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: white; border: none;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}
.lcr-btn-primary:hover { transform: translateY(-1px); }
.lcr-btn-ghost {
  background: white;
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  color: #7c3aed;
}
.lcr-btn-ghost:hover { border-color: #a855f7; }

/* 로딩 */
.lcr-loading {
  padding: 40px 22px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.lcr-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(236, 72, 153, 0.2);
  border-top-color: #ec4899;
  border-right-color: #a855f7;
  border-radius: 50%;
  animation: lcSpin 0.9s linear infinite;
}
@keyframes lcSpin { to { transform: rotate(360deg); } }
.lcr-loading-text {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

/* 다크 모드 */
body.dark .lc-result-card {
  background: rgba(20, 14, 30, 0.85);
  border-color: rgba(236, 72, 153, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
body.dark .lcr-score-wrap {
  background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(168,85,247,0.08));
  border-color: rgba(236, 72, 153, 0.25);
}
body.dark .lcr-score-circle::before { background: #1a0f24; }
body.dark .lcr-score-meta h4 { color: white; }
body.dark .lcr-score-meta p { color: #c5c4d6; }
body.dark .lcr-cat-label { color: white; }
body.dark .lcr-cat-bar { background: rgba(255,255,255,0.08); }
body.dark .lcr-cat-num { color: #f9a8d4; }
body.dark .lcr-dual-box.strong {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.3);
}
body.dark .lcr-dual-box.risk {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
}
body.dark .lcr-dual-box li { color: #d1d5db; }
body.dark .lcr-lucky-item {
  background: rgba(0,0,0,0.25);
  border-color: rgba(168, 85, 247, 0.5);
}
body.dark .lcr-lucky-item .lk-val { color: #d8b4fe; }
body.dark .lcr-advice {
  background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(168,85,247,0.12));
  color: #d1d5db;
}
body.dark .lcr-btn-ghost {
  background: rgba(0,0,0,0.3);
  border-color: rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}
body.dark .lcr-loading-text { color: #c5c4d6; }

@media (max-width: 540px) {
  .lcr-dual { grid-template-columns: 1fr; }
  .lcr-actions { grid-template-columns: 1fr; }
  .lcr-cat-row { grid-template-columns: 90px 1fr 36px; gap: 8px; }
  .lcr-score-wrap { grid-template-columns: 90px 1fr; gap: 14px; padding: 16px; }
  .lcr-score-circle { width: 90px; height: 90px; }
  .lcr-score-num { font-size: 24px; }
  .lc-result-head { grid-template-columns: 1fr auto 1fr; padding: 18px; gap: 8px; }
  .lcr-person .lcr-avatar { width: 40px; height: 40px; font-size: 18px; }
  .lcr-heart { font-size: 24px; }
}
