/* === 이용안내 페이지 === */

/* 컨테이너 */
.guide-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem;
}

/* 헤더 */
.guide-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.guide-header-image {
  max-width: 480px;
  width: 100%;
  margin-bottom: 0.75rem;
  /* 가장자리 투명 → 배경과 동화 */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, black 12%, black 78%, transparent),
    linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent, black 12%, black 78%, transparent),
    linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-composite: intersect;
}

.guide-title {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.guide-subtitle {
  color: var(--sand-dark);
  font-size: 0.85rem;
  margin: 0;
}

/* 아코디언 */
.guide-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* 섹션 카드 */
.guide-section {
  background: var(--night-card-70);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.guide-section.expanded {
  border-color: var(--gold);
}

/* 섹션 헤더 (버튼) */
.guide-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.875rem;
  background: transparent;
  border: none;
  color: var(--sand);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
  text-align: left;
}

.guide-section-header:hover {
  background: rgba(244, 197, 66, 0.06);
}

.guide-section-header:active {
  background: rgba(244, 197, 66, 0.12);
}

.guide-section-header:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* 아이콘 */
.guide-section-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}

/* 제목 */
.guide-section-title {
  flex: 1;
}

/* 토글 화살표 */
.guide-section-toggle {
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.guide-section.expanded .guide-section-toggle {
  transform: rotate(90deg);
}

/* 섹션 본문 */
.guide-section-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.875rem;
  color: var(--sand-dark);
  font-size: 0.82rem;
  line-height: 1.6;
}

.guide-section.expanded .guide-section-body {
  display: block;
}

/* 단계 표시 */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.guide-step {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.guide-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(244, 197, 66, 0.15);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-step-text {
  flex: 1;
}

.guide-step-text strong {
  color: var(--sand);
}

/* FAQ 목록 */
.guide-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-faq-item {
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.guide-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-faq-q {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.guide-faq-a {
  color: var(--sand-dark);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* 팁 목록 */
.guide-tip-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide-tip-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.82rem;
}

.guide-tip-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
}

.guide-tip-text {
  flex: 1;
}

/* 하단 버튼 */
.guide-footer {
  text-align: center;
  padding-top: 0.5rem;
}

/* === 모바일 반응형 === */

@media (max-width: 768px) {
  .guide-section-icon {
    width: 36px;
    height: 36px;
  }

  .guide-section-header {
    font-size: 0.85rem;
    gap: 0.625rem;
  }

  .guide-section-body {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .guide-container {
    padding: 0.75rem;
  }

  .guide-header-image {
    max-width: 320px;
  }

  .guide-title {
    font-size: 1.05rem;
  }

  .guide-section-icon {
    width: 32px;
    height: 32px;
  }

  .guide-section-header {
    font-size: 0.82rem;
    padding: 0.5rem 0.625rem;
    gap: 0.5rem;
  }

  .guide-section-body {
    padding: 0.625rem;
    font-size: 0.78rem;
  }

  .guide-step-num {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }
}

/* 모션 감소 */
@media (prefers-reduced-motion: reduce) {
  .guide-section-toggle {
    transition: none;
  }

  .guide-section {
    transition: none;
  }

  .guide-section-header {
    transition: none;
  }
}

/* === 기능 카드 === */
.guide-feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.guide-feature-card {
  padding: 1rem;
  background: var(--night-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.guide-feature-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.guide-feature-title { font-size: 0.88rem; font-weight: 700; color: var(--gold); margin-bottom: 0.6rem; }
.guide-feature-card .guide-step {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0; font-size: 0.78rem; color: var(--sand);
}
.step-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(244, 197, 66, 0.15);
  color: var(--gold); font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .guide-feature-cards { grid-template-columns: 1fr; }
}
