/* ============================================================
   bph_info.css — 전립선비대증 증상·원인·진단 페이지 전용
   공통 스타일: common.css 참조
   ============================================================ */

/* ── 컬러 오버라이드 (그린민트) ── */
:root {
  --primary:        #0a7a5a;
  --primary-dark:   #065c43;
  --primary-light:  #e6f7f2;
  --accent:         #1ab88a;
  --accent-light:   #d0f2e8;
  --border:         #c8ece3;
  --bg-light:       #f2fbf8;
  --bg-section:     #f7f7f7;
  --shadow:         0 8px 32px rgba(10,122,90,0.10);
  --shadow-lg:      0 20px 56px rgba(10,122,90,0.14);
}

/* ── 그라디언트 오버라이드 ── */
.hero-section { background: linear-gradient(135deg, #063d2a 0%, #0a7a5a 55%, #1ab88a 100%); }
.hero-overlay {
  background: linear-gradient(
    105deg, rgba(6,61,42,0.92) 0%, rgba(10,122,90,0.70) 42%,
    rgba(10,122,90,0.18) 75%, transparent 100%
  );
}
.cta-section { background: linear-gradient(135deg, #063d2a 0%, #0a7a5a 100%); }
.flow-step:nth-child(1) .flow-circle { background: #0a7a5a; }
.flow-step:nth-child(2) .flow-circle { background: #1ab88a; }
.flow-step:nth-child(3) .flow-circle { background: #065c43; }
.flow-step:nth-child(4) .flow-circle { background: #1a9e5f; }
.flow-step:nth-child(5) .flow-circle { background: #0a7a5a; }
.symptom-photo-badge  { background: rgba(10,122,90,0.88); }
.symptom-thumb-label  { background: rgba(10,122,90,0.80); }
.diag-photo-badge     { background: rgba(10,122,90,0.88); }

/* ── 01. 전립선비대증이란 ── */
.intro-section { background: var(--white); padding-bottom: 80px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-img-box {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: 0 12px 48px rgba(10,122,90,0.10);
  position: relative; background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
}
.intro-img-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.intro-img-box img[src]:not([src=""]) { display: block; }
.intro-img-box svg { width: 100%; height: 100%; padding: 20px; }
.intro-text h3 { font-size: clamp(20px,2.4vw,28px); font-weight: 800; color: var(--text-dark); margin-bottom: 18px; line-height: 1.4; }
.intro-text h3 em { color: var(--primary); font-style: normal; }
.intro-text p { color: var(--text-mid); line-height: 1.95; margin-bottom: 22px; }

/* 전립선 크기 단계 */
.grade-visual { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 8px; }
.grade-box { border-radius: var(--radius); padding: 16px 14px; text-align: center; border: 1px solid var(--border); }
.grade-box.g1 { background: var(--bg-light); }
.grade-box.g2 { background: #f0faf6; border-color: #1ab88a; }
.grade-box.g3 { background: var(--red-light); border-color: var(--red); }
.grade-box .g-label { font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.grade-box.g1 .g-label { color: var(--primary); }
.grade-box.g2 .g-label { color: var(--accent); }
.grade-box.g3 .g-label { color: var(--red); }
.grade-box .g-size { font-weight: 900; line-height: 1; margin-bottom: 4px; }
.grade-box.g1 .g-size { color: var(--primary); }
.grade-box.g2 .g-size { color: var(--accent); }
.grade-box.g3 .g-size { color: var(--red); }
.grade-box .g-desc { color: var(--text-muted); line-height: 1.5; }

/* ── 02. 증상 ── */
.symptom-section { background: var(--bg-section); padding-bottom: 80px; }
.symptom-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.symptom-photo { position: sticky; top: 24px; }
.symptom-photo-main {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 20px 56px rgba(10,122,90,0.12);
  position: relative; background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
}
.symptom-photo-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; z-index: 1; }
.symptom-photo-main img[src]:not([src=""]) { display: block; }
.symptom-photo-badge { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 16px 22px; color: #fff; }
.symptom-photo-badge strong { display: block; font-weight: 700; margin-bottom: 3px; }
.symptom-photo-badge span   { opacity: 0.78; }
.symptom-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.symptom-thumb {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-section); position: relative;
  cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.symptom-thumb.active { border-color: var(--primary); }
.symptom-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.symptom-thumb img[src]:not([src=""]) { display: block; }
.thumb-text { color: var(--text-muted); font-weight: 500; text-align: center; padding: 4px; }
.symptom-thumb-label { position: absolute; bottom: 0; left: 0; right: 0; color: #fff; font-weight: 600; text-align: center; padding: 5px 4px; }
.symptom-right { display: flex; flex-direction: column; gap: 10px; }
.symptom-item {
  background: var(--white); border-radius: var(--radius); padding: 20px 22px;
  border-left: 3px solid var(--accent); cursor: pointer; transition: background 0.2s, box-shadow 0.2s;
}
.symptom-item:hover, .symptom-item.active { background: var(--primary-light); border-left-color: var(--primary); box-shadow: var(--shadow); }
.symptom-item.alert { border-left-color: var(--red); background: #fff9f9; }
.symptom-item.alert:hover, .symptom-item.alert.active { background: var(--red-light); }
.symptom-content strong { display: block; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.symptom-content span   { color: var(--text-muted); line-height: 1.7; }
.alert-badge { display: inline-block; font-weight: 700; color: var(--red); border: 1px solid var(--red); padding: 2px 8px; border-radius: 2px; margin-bottom: 6px; letter-spacing: 1px; }
.symptom-warn { margin-top: 14px; }
.symptom-warn-box { background: var(--red-light); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 20px 26px; }
.warn-title { font-weight: 700; color: var(--red); margin-bottom: 6px; }
.symptom-warn-box p { color: #c0392b; line-height: 1.8; }

/* ── 03. LUTS 분류 ── */
.luts-section { background: var(--white); padding-bottom: 80px; }
.luts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.luts-card { background: var(--bg-section); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.luts-card-img { width: 100%; aspect-ratio: 16/9; }
.luts-card-head { padding: 20px 22px 14px; }
.luts-card-head .luts-type { font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.luts-card.storage  .luts-type { color: var(--primary); }
.luts-card.voiding  .luts-type { color: var(--accent); }
.luts-card.postmict .luts-type { color: var(--green); }
.luts-card h4 { font-weight: 800; color: var(--text-dark); }
.luts-card-body { padding: 0 22px 24px; }
.luts-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.luts-list li { color: var(--text-mid); padding-left: 16px; position: relative; line-height: 1.65; }
.luts-list li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }

/* ── 04. 원인 ── */
.cause-section { background: var(--bg-section); padding-bottom: 80px; }
.cause-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cause-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.cause-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,122,90,0.13); }
.cause-card-img { width: 100%; aspect-ratio: 16/9; }
.cause-card-body { padding: 22px 22px 26px; border-top: 3px solid var(--primary); }
.cause-card-num { font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.cause-card h4 { font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.cause-card p   { color: var(--text-mid); line-height: 1.75; }

/* ── 05. 중증도 비교표 ── */
.grade-section { background: var(--white); padding-bottom: 80px; }
.grade-table-wrap { overflow-x: auto; }
.grade-table { width: 100%; border-collapse: collapse; }
.grade-table th { background: var(--primary); color: #fff; padding: 15px 20px; text-align: left; font-weight: 700; }
.grade-table th:first-child { border-radius: 4px 0 0 0; }
.grade-table th:last-child  { border-radius: 0 4px 0 0; }
.grade-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--text-mid); line-height: 1.65; vertical-align: top; }
.grade-table tr:last-child td { border-bottom: none; }
.grade-table tr:nth-child(even) td { background: var(--bg-light); }
.grade-pill { display: inline-block; font-weight: 700; padding: 3px 10px; border-radius: 2px; white-space: nowrap; }
.grade-pill.mild   { background: var(--primary-light); color: var(--primary); }
.grade-pill.mod    { background: #d0f2e8; color: #065c43; }
.grade-pill.severe { background: var(--red-light); color: var(--red); }

/* ── 06. 진단 — 풀사진 + 카드 ── */
.diagnosis-section { background: var(--bg-section); padding-bottom: 80px; }
.diag-photo-wrap { margin-bottom: 28px; }
.diag-photo-main {
  width: 100%; aspect-ratio: 21/9; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 16px 56px rgba(10,122,90,0.15);
  position: relative; background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
}
.diag-photo-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.diag-photo-main img.active-img { opacity: 1; }
.diag-photo-badge {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  backdrop-filter: blur(10px); padding: 18px 32px; color: #fff;
  display: flex; align-items: baseline; gap: 18px;
}
.diag-photo-badge strong { font-weight: 700; white-space: nowrap; }
.diag-photo-badge span   { opacity: 0.8; }
.diag-photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); width: 100%; height: 100%; padding: 32px; }
.diag-photo-placeholder .ph-box { width: 56px; height: 56px; border: 1.5px dashed var(--border); border-radius: 2px; }
.diag-cards { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.diag-card { background: var(--white); border-radius: var(--radius); padding: 22px 20px; border-top: 3px solid var(--accent); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.diag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.diag-card.active { border-top-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow); }
.diag-card-num { font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
.diag-card.active .diag-card-num { color: var(--primary); }
.diag-card h4 { font-weight: 700; color: var(--text-dark); margin-bottom: 10px; line-height: 1.35; }
.diag-card p  { color: var(--text-muted); line-height: 1.7; }

/* ── 07. 자가진단 ── */
.check-section { background: var(--white); 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(--bg-section); 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) {
  .diag-cards { grid-template-columns: repeat(3,1fr); }
  .cause-grid { grid-template-columns: repeat(2,1fr); }
  .luts-grid  { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .intro-grid, .symptom-layout, .check-layout { grid-template-columns: 1fr; gap: 32px; }
  .symptom-photo { position: static; }
  .symptom-photo-main { aspect-ratio: 16/9; }
  .diag-photo-main { aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  .grade-visual { grid-template-columns: 1fr; }
  .luts-grid, .cause-grid { grid-template-columns: 1fr; }
  .diag-cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .diag-cards { grid-template-columns: 1fr; }
}
