/* FAQs형 게시판 스타일 */

/* 컨테이너 */
.board-faq-container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 20px;
}

/* FAQ 목록 */
.faq-accordion {
    margin: 20px 0;
}

/* FAQ 아이템 */
.faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.faq-item.active {
    border-color: #3498db;
}

/* 공지사항 FAQ */
.faq-notice {
    border-color: #ffc107;
    background: linear-gradient(to right, #fff9e6 0%, #ffffff 100%);
}

.faq-notice .faq-question {
    background: linear-gradient(to right, #fff9e6 0%, #ffffff 100%);
}

/* FAQ 질문 영역 */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    background: white;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

/* Q 아이콘 */
.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    background: #ffc107;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

/* 제목 래퍼 */
.faq-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.faq-category {
    display: inline-block;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.faq-title {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
}

/* 토글 아이콘 */
.faq-toggle-icon {
    margin-left: 15px;
    color: #7f8c8d;
    flex-shrink: 0;
}

.faq-toggle-icon i {
    transition: transform 0.3s ease;
    font-size: 18px;
}

/* FAQ 답변 영역 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer-content {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.faq-answer-content ul {display: block;list-style-type: disc;margin:12px 0;}
.faq-answer-content li {margin-left:20px;}

/* h2 태그 앞에 컬러 바 추가 스타일 */
.faq-answer-content h2 {
  position: relative;
  padding-left: 15px;
  font-size:24px !important;
  margin: 20px 0px;
  font-weight: 600;
  letter-spacing: -1px;
  color:#4474cd;
}

.faq-answer-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 70%;
  background-color: #a8c0ec; /* 원하는 색상으로 변경 가능 */
  border-radius:0px;
}

/* A 아이콘 */
.faq-answer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

/* 답변 본문 */
.faq-answer-body {
    flex: 1;
    font-size: 16px;
    line-height: 26px;
    color: #495057;
}

.faq-answer-body p {
    margin-bottom: 12px;
}

.faq-answer-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* FAQ 메타 정보 */
.faq-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-size: 13px;
    color: #6c757d;
}

.faq-date, .faq-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* FAQ 첨부파일 */
.faq-files {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.faq-files h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.faq-files ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-files li {
    padding: 8px 0;
}

.faq-files a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    text-decoration: none;
    transition: color 0.3s;
}

.faq-files a:hover {
    color: #3498db;
}

.file-size {
    color: #6c757d;
    font-size: 12px;
}

/* FAQ 단독 보기 */
.faq-view {
    max-width: var(--site-width);
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-view-header {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.faq-view-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.4;
}

.faq-q-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.faq-view-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.faq-view-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.faq-view-answer {
    padding: 30px;
}

.faq-view-answer-header {
    margin-bottom: 20px;
}

.faq-a-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.faq-view-content {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
}

.faq-view-content p {
    margin-bottom: 15px;
}

.faq-view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 리스트 헤더 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 15px;
}

.total-count {
    font-weight: 600;
    color: #495057;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* 반응형 */
@media (max-width: 768px) {
    .board-faq-container {
        padding: 15px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question-content {
        gap: 10px;
    }
    
    .faq-icon, .faq-answer-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .faq-title {
        font-size: 14px;
    }
    
    .faq-answer-content {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .faq-view-header {
        padding: 20px;
    }
    
    .faq-view-title {
        font-size: 18px;
    }
    
    .faq-view-answer {
        padding: 20px;
    }
    
    .faq-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* 카테고리 탭 스타일 (리스트형 스타일 재사용) */
.category-tabs {
    margin: 20px 0;
}

.category-tab-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.category-tab {
    padding: 8px 16px;
    border-radius: 6px 6px 0 0;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-tab:hover {
    background: #e9ecef;
}

.category-tab.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
    padding: 20px 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.page-link.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 버튼 스타일 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 검색 폼 */
.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.board-stats {
    font-weight: 600;
    color: #495057;
}

/* 오디오 아이콘 애니메이션 */
.audio-icon {
    animation: audioGlow 2s ease-in-out infinite;
}

@keyframes audioGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}
