/* ============================================================
   balanitis.css — 귀두포피염 페이지 전용
   공통 스타일: common.css 참조
   ============================================================ */

/* ── 컬러 오버라이드 (세이지 그린) ── */
:root {
  --primary:        #5a8a1e;
  --primary-dark:   #426614;
  --primary-light:  #f0f7e4;
  --accent:         #7aaa3a;
  --accent-light:   #dff0c0;
  --border:         #cce8a0;
  --bg-light:       #f5faea;
  --bg-section:     #f7f7f7;
  --shadow:         0 8px 32px rgba(90,138,30,0.10);
  --shadow-lg:      0 20px 56px rgba(90,138,30,0.14);
}

/* ── 그라디언트 오버라이드 ── */
.hero-section { background: linear-gradient(135deg, #2a4410 0%, #5a8a1e 55%, #7aaa3a 100%); }
.hero-overlay {
  background: linear-gradient(
    105deg, rgba(26,74,56,0.92) 0%, rgba(90,138,30,0.70) 42%,
    rgba(90,138,30,0.18) 75%, transparent 100%
  );
}
.cta-section { background: linear-gradient(135deg, #2a4410 0%, #5a8a1e 100%); }
.diag-photo-badge    { background: rgba(90,138,30,0.88); }
.symptom-photo-badge { background: rgba(90,138,30,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(90,138,30,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; }

/* 포경 단계 시각화 */
.phimosis-stages { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 8px; }
.phimosis-stage { border-radius: var(--radius); padding: 16px 14px; text-align: center; border: 1px solid var(--border); background: var(--bg-light); }
.phimosis-stage .ps-label { font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; color: var(--accent); }
.phimosis-stage h4 { font-weight: 800; color: var(--text-dark); margin-bottom: 5px; }
.phimosis-stage p  { color: var(--text-muted); line-height: 1.5; }

/* ── 02. 증상 — 아이콘 그리드 ── */
.symptom-section { background: var(--bg-section); padding-bottom: 80px; }
.symptom-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 28px; }
.symptom-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 20px;
  text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}
.symptom-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.symptom-card.alert-card { border-top-color: var(--red); }
.symptom-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.symptom-card.alert-card .symptom-icon { background: var(--red-light); }
.symptom-card h4 { font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.symptom-card p  { color: var(--text-muted); line-height: 1.7; }
.symptom-alert-bar { background: var(--red-light); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 18px 26px; }
.symptom-alert-bar .warn-title { font-weight: 700; color: var(--red); margin-bottom: 5px; }
.symptom-alert-bar p { color: #c0392b; line-height: 1.8; }

/* ── 03. 원인 카드 ── */
.cause-section { background: var(--white); padding-bottom: 80px; }
.cause-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cause-card { background: var(--bg-section); border-radius: var(--radius); padding: 26px 22px; border-top: 3px solid var(--primary); box-shadow: var(--shadow); }
.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; }

/* ── 04. 치료 — 단계별 + 수술 히어로 ── */
.treatment-section { background: var(--bg-section); padding-bottom: 80px; }
/* 치료 단계 */
.treatment-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 48px; }
.treatment-step-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.treatment-step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.treatment-step-card:nth-child(1)::before { background: var(--accent); }
.treatment-step-card:nth-child(2)::before { background: var(--primary); }
.treatment-step-card:nth-child(3)::before { background: var(--primary-dark); }
.step-num { font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.treatment-step-card h4 { font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.treatment-step-card p  { color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.treatment-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.treatment-pill { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; padding: 4px 12px; border-radius: 2px; }

/* 포경수술 히어로 */
.op-hero {
  position: relative; width: 100%; min-height: 460px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #2a4410 0%, #5a8a1e 55%, #7aaa3a 100%);
  box-shadow: 0 24px 64px rgba(90,138,30,0.20);
}
.op-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; opacity: 0; transition: opacity 0.35s; }
.op-hero-img.loaded { opacity: 1; }
.op-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(26,74,56,0.92) 0%, rgba(90,138,30,0.65) 44%, rgba(90,138,30,0.15) 72%, transparent 100%);
}
.op-hero-content { position: relative; z-index: 2; padding: 56px 64px; max-width: 640px; color: #fff; }
.op-kicker { font-weight: 700; letter-spacing: 4px; color: rgba(255,255,255,0.55); text-transform: uppercase; margin-bottom: 14px; }
.op-hero-content h3 { font-size: clamp(24px,3.2vw,38px); font-weight: 900; line-height: 1.22; margin-bottom: 18px; }
.op-hero-content h3 em { font-style: normal; color: #c8f090; }
.op-hero-content p { opacity: 0.88; line-height: 1.85; margin-bottom: 28px; }
.op-points { display: flex; flex-wrap: wrap; gap: 10px; }
.op-point { border: 1px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.9); font-weight: 600; padding: 8px 18px; border-radius: 2px; }
.op-callouts { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 3; }
.op-callout { background: rgba(255,255,255,0.96); border-radius: var(--radius); padding: 16px 22px; min-width: 190px; box-shadow: 0 6px 20px rgba(0,0,0,0.16); }
.op-callout strong { display: block; color: var(--primary-dark); margin-bottom: 4px; }
.op-callout span   { color: var(--text-muted); }

/* ── 05. 자가진단 ── */
.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) {
  .symptom-grid { grid-template-columns: repeat(2,1fr); }
  .op-callouts  { display: none; }
}
@media (max-width: 900px) {
  .intro-grid, .check-layout { grid-template-columns: 1fr; gap: 32px; }
  .treatment-steps { grid-template-columns: 1fr; }
  .op-hero-content { padding: 40px 32px; }
}
@media (max-width: 768px) {
  .cause-grid { grid-template-columns: 1fr 1fr; }
  .phimosis-stages { grid-template-columns: 1fr; }
  .symptom-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cause-grid { grid-template-columns: 1fr; }
  .symptom-grid { grid-template-columns: 1fr; }
}
