/* =============================================================================
   딥체크 DeepCheck — 공통 스타일시트
   변수, 리셋, 헤더, 푸터, 공통 컴포넌트 (카드, 태그, 체크그리드, CTA)
   ============================================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --amber:  #C8832A;
  --amber2: #E09A3A;
  --green:  #3DAA6B;
  --red:    #D94F3D;
  --dark:   #1A1A1A;
  --mid:    #555555;
  --light:  #999999;
  --bg:     #FFFFFF;
  --bg2:    #F7F7F7;
  --border: #E8E8E8;
}

body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; }

/* ============================================================================
   HEADER
   ============================================================================ */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo-kr { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.logo-en { font-size: 13px; font-weight: 600; color: var(--amber); letter-spacing: 1px; }
nav.site-nav { display: flex; align-items: center; gap: 36px; }
nav.site-nav a {
  text-decoration: none; color: var(--mid);
  font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
nav.site-nav a:hover, nav.site-nav a.active { color: var(--dark); }
nav.site-nav a.active { border-bottom: 2px solid var(--amber); padding-bottom: 4px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.badge-verified {
  display: flex; align-items: center; gap: 5px;
  background: #EBF7F1; color: var(--green);
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid #C3EBD6;
}
.badge-verified::before { content: "✓"; font-weight: 900; }
.btn-subscribe {
  background: var(--amber); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
}
.btn-subscribe:hover { background: var(--amber2); }

/* ============================================================================
   COMMON CARD (목록 페이지 / 홈 최근 리뷰)
   ============================================================================ */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: #eee;
  overflow: hidden;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.3s;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.card:hover .card-play { opacity: 1; }
.card-play-circle {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.card-play-circle::after {
  content: "";
  border-left: 15px solid var(--amber);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}
.card-cat-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}
.card-cat-badge.bunyang { background: var(--amber); }
.card-cat-badge.wolse   { background: rgba(0,0,0,0.75); }
.card-cat-badge.maemae  { background: #3D6FAA; }
.card-cat-badge.jeonse  { background: #9065B0; }
.card-cat-badge.sangga  { background: #555; }
.card-verified-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
}
.card-verified-badge::before { content: "✓"; }
.card-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.card-location {
  font-size: 11px; color: var(--light);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 3px;
}
.card-location::before { content: "📍"; font-size: 10px; }
.card-title {
  font-size: 15px; font-weight: 700;
  color: var(--dark); line-height: 1.4;
  margin-bottom: 10px;
  min-height: 42px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; min-height: 22px; }
.ctag {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
}
.ctag.ok { background: #EBF7F1; color: #2A8A56; }
.ctag.ok::before { content: "✓"; }
.ctag.ng { background: #FDEDEB; color: #B83A2A; }
.ctag.ng::before { content: "✗"; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 10px;
  margin-top: auto;
}
.card-price { font-size: 13px; font-weight: 700; color: var(--amber); }
.card-meta { font-size: 11px; color: var(--light); }

/* ============================================================================
   ✓/✗ CHECK GRID (공통)
   ============================================================================ */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.check-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
}
.check-item.ok { background: #EBF7F1; color: #2A8A56; }
.check-item.ok::before { content: "✓"; color: var(--green); font-weight: 900; font-size: 14px; }
.check-item.ng { background: #FDEDEB; color: #B83A2A; }
.check-item.ng::before { content: "✗"; color: var(--red); font-weight: 900; font-size: 14px; }

/* ============================================================================
   REAL COST BOX (공통)
   ============================================================================ */
.real-cost {
  background: #FEF3E2;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.real-cost-label { font-size: 12px; color: var(--mid); font-weight: 600; }
.real-cost-sub { font-size: 11px; color: var(--light); margin-top: 2px; }
.real-cost-num { font-size: 20px; font-weight: 800; color: var(--amber); }

/* ============================================================================
   CTA (dark, 공통)
   ============================================================================ */
.cta {
  background: var(--dark);
  border-radius: 16px;
  padding: 52px 48px;
  text-align: center;
}
.cta-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--amber); margin-bottom: 12px; text-transform: uppercase;
}
.cta h2 {
  font-size: 26px; font-weight: 900; color: #fff;
  margin-bottom: 10px; letter-spacing: -0.5px;
}
.cta p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-kakao {
  background: #FEE500; color: #1A1A1A;
  border: none; border-radius: 10px;
  padding: 14px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 10px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  cursor: pointer;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--light);
}
.footer-logo { font-size: 16px; font-weight: 800; color: var(--dark); }
.footer-info { line-height: 1.8; text-align: center; }
.footer-info a { color: var(--light); text-decoration: none; }
.footer-info a:hover { color: var(--amber); }

/* ============================================================================
   MAIN WRAPPER
   ============================================================================ */
main.site-main { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
main.site-main.narrow { max-width: 860px; }

.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title { font-size: 18px; font-weight: 800; color: var(--dark); }
.view-all { font-size: 13px; color: var(--light); text-decoration: none; }
.view-all:hover { color: var(--amber); }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 0 0 40px; }

/* ============================================================================
   MODAL (조건 남기기)
   ============================================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 20px; color: var(--light);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
}
.modal-close:hover { background: var(--bg2); color: var(--dark); }
.modal h3 {
  font-size: 20px; font-weight: 800;
  margin-bottom: 6px; letter-spacing: -0.3px;
}
.modal .modal-sub { font-size: 13px; color: var(--mid); margin-bottom: 20px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal label {
  font-size: 12px; font-weight: 700;
  color: var(--mid);
  display: block;
  margin-bottom: 4px;
}
.modal input, .modal select, .modal textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.15s;
}
.modal input:focus, .modal select:focus, .modal textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.modal textarea { resize: vertical; min-height: 70px; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal .submit-btn {
  background: var(--amber); color: #fff;
  border: none; border-radius: 10px;
  padding: 14px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.modal .submit-btn:hover { background: var(--amber2); }
.modal .submit-btn:disabled { background: var(--light); cursor: wait; }
.modal .legal-small {
  font-size: 11px; color: var(--light); line-height: 1.5;
  margin-top: 4px;
}
.modal .form-feedback {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: none;
}
.modal .form-feedback.success { display: block; background: #EBF7F1; color: #2A8A56; }
.modal .form-feedback.error   { display: block; background: #FDEDEB; color: #B83A2A; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 900px) {
  header.site-header { padding: 0 20px; }
  nav.site-nav { display: none; }
  main.site-main { padding: 24px 16px 60px; }
  footer.site-footer { flex-direction: column; gap: 14px; padding: 20px; text-align: center; }
  .cta { padding: 36px 24px; }
  .cta h2 { font-size: 20px; }
}
