/* ==========================================================================
   상세 가이드 페이지 스타일
   ========================================================================== */

/* 단계별 가이드 */
.detailed-guide {
  padding: var(--spacing-4xl) 0;
  background: var(--bg-light);
}

.guide-step {
  margin-bottom: var(--spacing-3xl);
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.step-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-white);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: var(--font-size-xl);
  font-weight: 700;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.step-info h3 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.step-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: var(--font-size-sm);
}

.step-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
}

.step-details h4 {
  color: var(--primary-color);
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.step-details h4:first-child {
  margin-top: 0;
}

.document-list,
.procedure-list,
.criteria-list,
.contract-list,
.preparation-list,
.setup-list,
.ceremony-list,
.departure-list,
.cremation-list,
.memorial-list,
.caution-list,
.memorial-schedule,
.memorial-methods {
  margin: 0 0 var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.document-list li,
.procedure-list li,
.criteria-list li,
.contract-list li,
.preparation-list li,
.setup-list li,
.ceremony-list li,
.departure-list li,
.cremation-list li,
.memorial-list li,
.caution-list li,
.memorial-schedule li,
.memorial-methods li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.procedure-list,
.ceremony-list,
.cremation-list,
.memorial-list {
  list-style-type: decimal;
}

.step-tips {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.tip-card {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  position: relative;
}

.tip-card::before {
  content: "💡";
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--bg-white);
  padding: 0 var(--spacing-sm);
  font-size: var(--font-size-lg);
}

.tip-card h5 {
  margin: 0 0 var(--spacing-sm) 0;
  color: #856404;
  font-weight: 600;
}

.tip-card p {
  margin: 0;
  color: #856404;
  line-height: 1.6;
}

/* 체크리스트 섹션 */
.checklist-section {
  padding: var(--spacing-4xl) 0;
  background: var(--bg-white);
}

.checklist-container {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.checklist-tabs {
  display: flex;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: var(--spacing-lg) var(--spacing-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: var(--bg-white);
}

.checklist-content {
  padding: var(--spacing-xl);
}

.checklist-tab {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checklist-tab.active {
  display: block;
  opacity: 1;
}

.checklist-tab h3 {
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--primary-color);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.checklist-item:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

.checklist-text {
  flex: 1;
  font-weight: 500;
}

.checklist-actions {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

/* 비용 안내 섹션 */
.cost-guide {
  padding: var(--spacing-4xl) 0;
  background: var(--bg-light);
}

.cost-overview {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.cost-summary h3 {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text-dark);
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.cost-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.cost-amount {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-color);
}

.cost-note {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.cost-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.cost-category {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cost-category h4 {
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--primary-color);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: var(--spacing-sm);
}

.cost-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.cost-item:last-child {
  border-bottom: none;
}

.item-name {
  font-weight: 500;
  color: var(--text-dark);
}

.item-cost {
  font-weight: 600;
  color: var(--primary-color);
}

.support-benefits {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.support-benefits h3 {
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--primary-color);
  font-size: var(--font-size-xl);
  font-weight: 600;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.benefit-item {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  border-left: 4px solid var(--primary-color);
}

.benefit-item h4 {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--primary-color);
  font-weight: 600;
}

.benefit-item p {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

/* 지역별 정보 섹션 */
.regional-info {
  padding: var(--spacing-4xl) 0;
  background: var(--bg-white);
}

.region-selector {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.region-select {
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-lg);
  background: var(--bg-white);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 300px;
}

.region-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1);
}

.region-content {
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  min-height: 200px;
}

.region-placeholder {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .step-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .checklist-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    border-bottom: none;
    border-right: 3px solid transparent;
  }
  
  .tab-btn.active {
    border-right-color: var(--primary-color);
    border-bottom-color: transparent;
  }
  
  .cost-breakdown {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .region-select {
    min-width: auto;
    width: 100%;
    max-width: 300px;
  }
}

/* 애니메이션 */
.guide-step {
  animation: fadeInUp 0.6s ease forwards;
}

.guide-step:nth-child(1) { animation-delay: 0.1s; }
.guide-step:nth-child(2) { animation-delay: 0.2s; }
.guide-step:nth-child(3) { animation-delay: 0.3s; }
.guide-step:nth-child(4) { animation-delay: 0.4s; }
.guide-step:nth-child(5) { animation-delay: 0.5s; }
.guide-step:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 아이콘 스타일 */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-sm);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(100%); /* 흰색 아이콘 */
}

.btn-secondary .icon {
  filter: brightness(0) saturate(100%) invert(40%); /* 회색 아이콘 */
}

.checklist-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}

.cost-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
}

.print-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 6,2 18,2 18,9'/%3E%3Cpath d='M6,18H4a2,2 0 0,1-2-2v-5a2,2 0 0,1,2-2h16a2,2 0 0,1,2,2v5a2,2 0 0,1-2,2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E");
}

.reset-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,4 1,10 7,10'/%3E%3Cpath d='M3.51,15a9,9 0 1,0,2.13-9.36L1,10'/%3E%3C/svg%3E");
}

/* 접근성 개선 */
.checklist-item:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.tab-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .guide-step {
    background: var(--bg-dark);
    color: var(--text-light);
  }
  
  .step-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  }
  
  .tip-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: var(--primary-color);
  }
  
  .tip-card h5,
  .tip-card p {
    color: var(--text-light);
  }
  
  .checklist-container {
    background: var(--bg-dark);
  }
  
  .checklist-item {
    background: var(--bg-darker);
  }
  
  .cost-category,
  .support-benefits {
    background: var(--bg-dark);
  }
  
  .benefit-item {
    background: var(--bg-darker);
  }
} 