/* FAQ 페이지 스타일 */

/* 전체 레이아웃 */
.faq-page {
    min-height: 100vh;
    background-color: #ffffff;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 페이지 헤더 */
.faq-header {
    background: #ffffff;
    color: #333;
    padding: 40px 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.header-content {
    text-align: center;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.page-description {
    font-size: 1rem;
    color: #666;
}

/* 메인 콘텐츠 */
.faq-main {
    padding: 40px 0;
}

/* 검색 섹션 */
.faq-search-section {
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ddd;
    transition: border-color 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: #333;
}

.search-input-wrapper .fas {
    color: #999;
    margin-right: 10px;
    font-size: 1rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

/* 카테고리 탭 */
.faq-categories {
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    background: white;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.category-tab {
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background-color: #f5f5f5;
    color: #333;
}

.category-tab.active {
    background: #333;
    color: white;
}

/* FAQ 콘텐츠 */
.faq-content {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

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

.faq-item.hidden {
    display: none;
}

/* FAQ 질문 */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.question-header {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 16px;
}

.question-number {
    background: #333;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 28px;
    text-align: center;
}

.category-label {
    background: #f5f5f5;
    color: #666;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

.question-toggle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .question-toggle {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    background-color: #f8f9fa;
}

/* FAQ 답변 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.answer-content {
    display: flex;
    padding: 0 32px 24px;
    gap: 16px;
}

.answer-label {
    background: #666;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 28px;
    height: fit-content;
    text-align: center;
}

.answer-text {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.6;
}

.answer-text p {
    margin: 0;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 80px 32px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 24px;
}

.empty-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-description {
    font-size: 1rem;
    margin: 0;
}

/* 문의 안내 섹션 */
.faq-contact-section {
    background-color: #f9f9f9;
    padding: 40px 0;
    margin-top: 40px;
}

.contact-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 30px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-content {
    flex: 1;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-description {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 버튼 스타일 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: #333;
    color: white;
    border-color: #333;
}

.btn-primary:hover {
    background: #555;
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #333;
    border-color: #333;
}

.btn-outline:hover {
    background: #333;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #666;
    color: white;
    border-color: #666;
}

.btn-secondary:hover {
    background: #888;
    color: white;
    text-decoration: none;
}

/* 검색 결과 없음 */
.no-results {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 40px 20px;
    text-align: center;
    margin-top: 30px;
}

.no-results.hidden {
    display: none;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 24px;
}

.no-results-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 모바일 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .faq-header {
        padding: 30px 0 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-description {
        font-size: 0.9rem;
    }
    
    .faq-main {
        padding: 30px 0;
    }
    
    .faq-search-section {
        margin-bottom: 25px;
    }
    
    .search-input-wrapper {
        padding: 12px 14px;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 6px 8px;
        gap: 4px;
    }
    
    .category-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-width: fit-content;
        flex-shrink: 0;
    }
    
    .faq-question {
        padding: 16px;
    }
    
    .question-header {
        gap: 10px;
    }
    
    .question-title {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .question-number,
    .answer-label {
        font-size: 0.75rem;
        padding: 3px 6px;
        min-width: 24px;
    }
    
    .category-label {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    .answer-content {
        padding: 0 16px 16px;
        gap: 10px;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-actions {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .faq-header {
        padding: 25px 0 12px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .search-input-wrapper {
        padding: 10px 12px;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 14px;
    }
    
    .question-header {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .question-title {
        font-size: 0.9rem;
    }
    
    .answer-content {
        padding: 0 14px 14px;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}
