/* ============================================
   FAQ 페이지 스타일
   ============================================ */

/* 기본 리셋 및 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6600;
    --primary-orange-light: #FFB380;
    --text-dark: #2C3E50;
    --text-gray: #5A6C7D;
    --text-light: #8B95A1;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EEF3 100%);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 40px;
    font-size: 14px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   헤더
   ============================================ */
.header {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE6CC 100%);
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(255, 102, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 102, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    color: #FF6600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-title i {
    font-size: 20px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    color: #FF6600;
    border: 2px solid #FF6600;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.1);
}

.back-button:hover {
    background: #FF6600;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

/* ============================================
   메인 컨텐츠
   ============================================ */
.main-content {
    padding: 24px 0;
}

/* FAQ 컨테이너 */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* FAQ 아이템 */
.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

/* FAQ 질문 (토글 버튼) */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    background: white;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: #FFF5E6;
}

.faq-question-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.faq-question-text i {
    color: #FF6600;
    font-size: 16px;
}

.faq-toggle-icon {
    color: #FF6600;
    font-size: 18px;
    transition: transform 0.3s ease;
}

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

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

.faq-answer-content {
    padding: 0 16px 16px 16px;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.7;
    border-top: 1px solid #F0F0F0;
}

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

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

.empty-state i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.empty-state .subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

/* ============================================
   반응형 (PC에서 크게 보이도록)
   ============================================ */

/* 태블릿 이상 (768px~) */
@media (min-width: 768px) {
    body {
        font-size: 15px;
        padding-bottom: 50px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 18px 0;
    }
    
    .app-title {
        font-size: 22px;
        gap: 10px;
    }
    
    .app-title i {
        font-size: 26px;
    }
    
    .back-button {
        font-size: 13px;
        padding: 9px 16px;
    }
    
    .main-content {
        padding: 32px 0;
    }
    
    .faq-question {
        padding: 16px 20px;
    }
    
    .faq-question-text {
        font-size: 15px;
        gap: 11px;
    }
    
    .faq-question-text i {
        font-size: 17px;
    }
    
    .faq-toggle-icon {
        font-size: 19px;
    }
    
    .faq-answer-content {
        padding: 0 20px 20px 20px;
        font-size: 14px;
    }
}

/* PC (데스크톱) 1024px~ */
@media (min-width: 1024px) {
    body {
        font-size: 16px;
        padding-bottom: 60px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .app-title {
        font-size: 24px;
        gap: 12px;
    }
    
    .app-title i {
        font-size: 28px;
    }
    
    .back-button {
        font-size: 14px;
        padding: 10px 20px;
        gap: 8px;
        border-radius: 25px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .faq-container {
        gap: 16px;
    }
    
    .faq-item {
        border-radius: 16px;
    }
    
    .faq-question {
        padding: 20px 24px;
    }
    
    .faq-question-text {
        font-size: 16px;
        gap: 12px;
    }
    
    .faq-question-text i {
        font-size: 18px;
    }
    
    .faq-toggle-icon {
        font-size: 20px;
    }
    
    .faq-answer-content {
        padding: 0 24px 24px 24px;
        font-size: 15px;
        line-height: 1.8;
    }
}