/**
 * FAQ 페이지 - V3
 * Path: /WEB-INF/views/support/faq/list.jsp
 *
 * 주의: 레거시 CSS (new_main/default_styles.css)의 .bulletin-faq 스타일을 덮어씀
 */

/* ============================================
   필터/검색 영역
   ============================================ */

.bulletin-faq .board-filter-edu {
  margin-bottom: var(--edu-spacing-4);
}

/* ============================================
   FAQ 리스트 컨테이너
   - #list에서 .box-default 제거됨
   ============================================ */

.bulletin-faq .faq-list {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* ============================================
   FAQ 아코디언 (카드 스타일)
   - 레거시 스타일 리셋 필수
   ============================================ */

.bulletin-faq .faq-list details {
  background: #ffffff;
  border: 1px solid var(--edu-neutral-200, #E5E7EB);
  border-radius: 8px;
  margin-bottom: var(--edu-spacing-3, 12px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.bulletin-faq .faq-list details:hover {
  background: var(--edu-neutral-50, #F9FAFB);
}

.bulletin-faq .faq-list details[open] {
  border-color: var(--edu-neutral-300, #D1D5DB);
}

/* Summary (질문 영역) */
.bulletin-faq .faq-list details summary {
  padding: var(--edu-spacing-4, 16px);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.bulletin-faq .faq-list details summary::-webkit-details-marker {
  display: none;
}

/* Summary 내부 레이아웃 - Bootstrap .row 리셋 */
.bulletin-faq .faq-list details summary .faq-row {
  display: flex;
  align-items: center;
  gap: var(--edu-spacing-3, 12px);
  margin: 0;
  padding: 0;
}

/* 질문 제목 */
.bulletin-faq .faq-list details summary .faq-title {
  flex: 1;
  color: var(--edu-neutral-800, #1F2937);
  font-size: var(--edu-text-base, 1rem);
  font-weight: var(--edu-font-medium, 500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  /* 레거시 ::before 리셋 */
  position: static;
  padding-left: 0;
}

.bulletin-faq .faq-list details summary .faq-title::before {
  display: none !important;
  content: none !important;
}

/* 토글 아이콘 */
.bulletin-faq .faq-list details summary .faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--edu-neutral-400, #9CA3AF);
  transition: transform 0.15s ease;
  /* 레거시 리셋 */
  position: static;
  background: none;
}

.bulletin-faq .faq-list details summary .faq-toggle::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.bulletin-faq .faq-list details[open] summary .faq-toggle::before {
  transform: rotate(-135deg);
}

/* 답변 영역 - 레거시 스타일 리셋 필수 */
.bulletin-faq .faq-list details .faq-answer {
  padding: var(--edu-spacing-4, 16px) var(--edu-spacing-4, 16px) var(--edu-spacing-6, 24px);
  color: var(--edu-neutral-700, #374151);
  font-size: var(--edu-text-base, 1rem);
  line-height: var(--edu-leading-relaxed, 1.625);
  border-top: 1px solid var(--edu-neutral-100, #F3F4F6);
  background: #ffffff;
  /* 레거시 리셋 */
  position: static;
}

.bulletin-faq .faq-list details .faq-answer::before {
  display: none !important;
  content: none !important;
}

/* 답변 내부 이미지 */
.bulletin-faq .faq-list details .faq-answer img {
  max-width: 100%;
  height: auto;
}

/* 답변 내부 링크 */
.bulletin-faq .faq-list details .faq-answer a {
  color: var(--edu-primary-600, #1570EF);
  text-decoration: underline;
  word-break: break-all;
}

.bulletin-faq .faq-list details .faq-answer a:hover {
  color: var(--edu-primary-700, #0E5DBE);
}

/* ============================================
   더보기 버튼
   ============================================ */

.bulletin-faq .txt-c {
  display: flex;
  justify-content: center;
}

.bulletin-faq .btn-line-gr1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--edu-spacing-3, 12px) var(--edu-spacing-6, 24px);
  border: 1px solid var(--edu-neutral-300, #D1D5DB);
  background: #ffffff;
  color: var(--edu-neutral-700, #374151);
  border-radius: 8px;
  font-size: var(--edu-text-base, 1rem);
  font-weight: var(--edu-font-medium, 500);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.bulletin-faq .btn-line-gr1:hover {
  background: var(--edu-neutral-50, #F9FAFB);
  border-color: var(--edu-neutral-400, #9CA3AF);
}

/* ============================================
   빈 상태
   ============================================ */

.bulletin-faq .empty-state {
  background: #ffffff;
  border: 1px solid var(--edu-neutral-200, #E5E7EB);
  border-radius: 8px;
  text-align: center;
  padding: var(--edu-spacing-16, 64px) var(--edu-spacing-6, 24px);
  color: var(--edu-neutral-500, #6B7280);
  font-size: var(--edu-text-lg, 1.125rem);
  margin: var(--edu-spacing-6, 24px) 0;
}

.bulletin-faq .empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.bulletin-faq .empty-state .empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--edu-neutral-700, #374151);
  margin: 0 0 8px;
}

.bulletin-faq .empty-state .empty-desc {
  font-size: 16px;
  color: var(--edu-neutral-500, #6B7280);
  margin: 0;
}

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

@media (max-width: 768px) {
  /* FAQ 아코디언 */
  .bulletin-faq .faq-list details summary {
    padding: var(--edu-spacing-3, 12px);
  }

  .bulletin-faq .faq-list details summary .faq-row {
    gap: var(--edu-spacing-2, 8px);
  }

  .bulletin-faq .faq-list details summary .faq-title {
    font-size: var(--edu-text-sm, 0.875rem);
  }

  .bulletin-faq .faq-list details .faq-answer {
    padding: var(--edu-spacing-3, 12px) var(--edu-spacing-3, 12px) var(--edu-spacing-4, 16px);
    font-size: var(--edu-text-sm, 0.875rem);
  }
}
