/* ============================================================
   sti_types.css — 성병유형 페이지 전용
   공통 스타일: common.css 참조
   ============================================================ */

/* ── 컬러 오버라이드 (테라코타·피치) ── */
:root {
  --primary:        #b85a2a;
  --primary-dark:   #8a3e1a;
  --primary-light:  #fdf0ea;
  --accent:         #d4784a;
  --accent-light:   #fde0cc;
  --border:         #f0cbb8;
  --bg-light:       #fdf7f4;
  --bg-section:     #f7f7f7;
  --shadow:         0 8px 32px rgba(184,90,42,0.10);
  --shadow-lg:      0 20px 56px rgba(184,90,42,0.14);
}

/* ── 그라디언트 오버라이드 ── */
.hero-section { background: linear-gradient(135deg, #5a2010 0%, #b85a2a 55%, #d4784a 100%); }
.hero-overlay {
  background: linear-gradient(
    105deg, rgba(90,32,16,0.92) 0%, rgba(184,90,42,0.70) 42%,
    rgba(184,90,42,0.18) 75%, transparent 100%
  );
}
.cta-section { background: linear-gradient(135deg, #5a2010 0%, #b85a2a 100%); }
.diag-photo-badge { background: rgba(184,90,42,0.88); }

/* ── 01. 성병이란 + 경고 박스 ── */
.intro-section { background: var(--white); padding-bottom: 80px; }
.sti-warning {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 22px 28px; margin-bottom: 48px;
  display: flex; gap: 16px; align-items: flex-start;
}
.sti-warning-icon { flex-shrink: 0; margin-top: 2px; }
.sti-warning-text h4 { font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.sti-warning-text p  { color: var(--text-mid); line-height: 1.8; }

/* 성병 특징 4카드 */
.sti-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.sti-feature-card {
  background: var(--bg-light); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
}
.sti-feature-icon { margin-bottom: 12px; }
.sti-feature-card h4 { font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.sti-feature-card p  { color: var(--text-muted); line-height: 1.65; }

/* ── 02. 성병 유형별 상세 — 아코디언 카드 ── */
.types-section { background: var(--bg-section); padding-bottom: 80px; }
.sti-list { display: flex; flex-direction: column; gap: 16px; }
.sti-item {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.sti-item-head {
  display: grid; grid-template-columns: 280px 1fr auto;
  gap: 0; align-items: stretch; cursor: pointer;
  transition: background 0.2s;
}
.sti-item-head:hover { background: var(--bg-light); }
.sti-item.open .sti-item-head { background: var(--primary-light); }
/* 좌측: 질환명 */
.sti-item-title {
  padding: 24px 28px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.sti-item-tag { font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 6px; }
.sti-item-title h3 { font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.sti-item-title span { color: var(--text-muted); }
/* 중앙: 핵심 정보 칩 */
.sti-item-chips { padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sti-chip { font-weight: 600; padding: 5px 14px; border-radius: 2px; }
.sti-chip.red    { background: var(--red-light);    color: var(--red); }
.sti-chip.orange { background: var(--orange-light);  color: var(--orange); }
.sti-chip.primary{ background: var(--primary-light); color: var(--primary-dark); }
.sti-chip.green  { background: var(--green-light);   color: var(--green); }
/* 우측: 토글 화살표 */
.sti-item-arrow { padding: 24px 24px; display: flex; align-items: center; color: var(--accent); transition: transform 0.3s; }
.sti-item.open .sti-item-arrow { transform: rotate(180deg); }
/* 본문 */
.sti-item-body { display: none; padding: 28px 28px 32px; border-top: 1px solid var(--border); }
.sti-item.open .sti-item-body { display: block; }
.sti-item-body-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.sti-body-col h4 { font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.sti-body-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.sti-body-col ul li { color: var(--text-mid); padding-left: 14px; position: relative; line-height: 1.6; }
.sti-body-col ul li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }
.sti-treat-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.sti-treat-pill { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; padding: 5px 13px; border-radius: 2px; }

/* ── 03. 성병 비교표 ── */
.compare-section { background: var(--white); padding-bottom: 80px; }
.sti-compare-table-wrap { overflow-x: auto; }
.sti-compare-table { width: 100%; border-collapse: collapse; }
.sti-compare-table th { background: var(--primary); color: #fff; padding: 14px 18px; text-align: left; font-weight: 700; white-space: nowrap; }
.sti-compare-table th:first-child { border-radius: 4px 0 0 0; }
.sti-compare-table th:last-child  { border-radius: 0 4px 0 0; }
.sti-compare-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text-mid); line-height: 1.6; vertical-align: top; }
.sti-compare-table tr:last-child td { border-bottom: none; }
.sti-compare-table tr:nth-child(even) td { background: var(--bg-light); }
.sti-compare-table td:first-child { font-weight: 700; color: var(--text-dark); white-space: nowrap; }
.danger-high { color: var(--red);    font-weight: 700; }
.danger-mid  { color: var(--orange); font-weight: 700; }
.danger-low  { color: var(--green);  font-weight: 700; }

/* ── 04. 자가진단 ── */
.check-section { background: var(--bg-section); padding-bottom: 80px; }
.check-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.check-group h3 { font-weight: 800; color: var(--text-dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.check-group.red h3 { border-color: var(--red); }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; background: var(--white); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; user-select: none; border: 1px solid var(--border); transition: border-color 0.2s; }
.check-item:hover { border-color: var(--accent); }
.check-item.checked { border-color: var(--primary); background: var(--primary-light); }
.check-item.checked-alert { border-color: var(--red); background: var(--red-light); }
.check-box { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 2px; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.check-item.checked .check-box { background: var(--primary); border-color: var(--primary); }
.check-item.checked-alert .check-box { background: var(--red); border-color: var(--red); }
.check-box::after { content: ''; display: none; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg) translate(-1px,-1px); }
.check-item.checked .check-box::after,
.check-item.checked-alert .check-box::after { display: block; }
.check-item span { color: var(--text-mid); line-height: 1.65; }
.check-result { margin-top: 18px; padding: 16px 20px; border-radius: var(--radius); font-weight: 600; display: none; }
.check-result.show   { display: block; }
.check-result.normal { background: var(--green-light); color: var(--green); }
.check-result.caution{ background: var(--orange-light); color: var(--orange); }
.check-result.urgent { background: var(--red-light); color: var(--red); }

.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; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .sti-feature-grid { grid-template-columns: repeat(2,1fr); }
  .sti-item-head { grid-template-columns: 220px 1fr auto; }
}
@media (max-width: 900px) {
  .sti-item-head { grid-template-columns: 1fr auto; }
  .sti-item-chips { display: none; }
  .sti-item-body-grid { grid-template-columns: 1fr 1fr; }
  .check-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sti-feature-grid { grid-template-columns: 1fr 1fr; }
  .sti-item-body-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sti-feature-grid { grid-template-columns: 1fr; }
}
