/**
 * FAQ 페이지 스타일
 * - mypage 공통 레이아웃에 맞춘 FAQ 전용 구성
 */

/* page-header는 mypage_common.css에서 처리 */


:root {
    --faq-gradient: #667eea;
    --faq-card-shadow: none;
    --faq-border: #e8ecf1;
    --faq-primary: #ff6c0f;
    --faq-muted: #8c8fa8;
    --faq-surface: #ffffff;
}

.faq-page {
    flex: 1;
    padding: 32px;
    background: #f7f8fb;
    min-height: calc(100vh - var(--header-height, 70px));
}

/* page-header 기본 스타일은 mypage_common.css에서 처리 */

.faq-search {
    margin-bottom: 24px;
    animation: fadeSlideUp 0.4s ease;
}

.faq-search-card {
    background: var(--faq-surface);
    border-radius: 16px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid var(--faq-border);
    transition: all 0.3s ease;
}

.faq-search-card:focus-within {
    border-color: var(--faq-primary);
}

.faq-search-card svg {
    color: #a0a6c3;
}

.faq-search-card input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #1f2341;
    outline: none;
}

.faq-search-card input::placeholder {
    color: #b5bbd6;
}

.faq-search-card #faqSearchBtn {
    border: none;
    background: var(--faq-primary);
    color: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}


.faq-filter-card {
    background: var(--faq-surface);
    border: 2px solid var(--faq-border);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 32px;
    animation: fadeSlideUp 0.45s ease;
}

.faq-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
    gap: 12px;
}

.faq-filter-header .filter-desc {
    font-size: 13px;
    color: var(--faq-muted);
    margin: 0;
}

.faq-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.faq-chip-group-scroll {
    display: flex;
    gap: 12px;
}

.faq-chip {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    background: #f4f6fb;
    color: #4b4f68;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.faq-chip:hover {
    color: var(--faq-primary);
    border-color: rgba(255, 108, 15, 0.4);
    background: #fff;
}

.faq-chip.active {
    background: #fff;
    border-color: var(--faq-primary);
    color: var(--faq-primary);
}

.chip-count {
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    padding: 2px 10px;
    border-radius: 999px;
}

.faq-chip.active .chip-count {
    background: rgba(255, 108, 15, 0.15);
}

.faq-list-section {
    margin-bottom: 32px;
}

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

.faq-item {
    background: var(--faq-surface);
    border-radius: 18px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 108, 15, 0.5);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    cursor: pointer;
}

.question-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.question-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 108, 15, 0.1);
    color: var(--faq-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.question-text {
    font-size: 16px;
    font-weight: 700;
    color: #1f2341;
    flex: 1;
    min-width: 0;
}

.question-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--faq-muted);
    background: #f4f6fb;
    padding: 6px 12px;
    border-radius: 999px;
    flex-shrink: 0;
}

.toggle-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-question:hover .toggle-icon svg {
    color: var(--faq-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-toggle {
    display: none;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 1000px;
}

.faq-toggle:checked ~ .faq-question .toggle-icon {
    transform: rotate(180deg);
}

.answer-content {
    display: flex;
    gap: 15px;
    border-radius:15px;
    align-items: center;
    padding:20px;
    margin:0 10px 10px;
    background:#f9f9f9;
}

.answer-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.answer-text {
    flex: 1;
    color: #4b4f68;
    line-height: 1.7;
    font-size: 15px;
}


.answer-text ol,
.answer-text ul {
    margin: 10px 0 10px 20px;
}

.answer-text strong {
    color: var(--faq-primary);
}

.faq-empty {
    text-align: center;
    padding: 48px 20px;
    background: var(--faq-surface);
    border-radius: 18px;
    border: 2px dashed var(--faq-border);
    color: var(--faq-muted);
}

.faq-help-card {
    background: #f3f3f3;
    border-radius: 24px;
    padding: 32px;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    border:1px solid #ccc;
    animation: fadeSlideUp 0.5s ease;
}

.faq-help-card .help-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-help-card .help-icon svg {
    color: #ff6c0f;
}

.help-title {
    font-size: 20px;
    margin: 0 0 6px;
    color: #34184f;
}

.help-text {
    margin: 0;
    color: rgba(52, 24, 79, 0.75);
}

.help-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-pill {
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill.primary {
    background: var(--faq-primary);
    color: #fff;
}

.btn-pill.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #34184f;
}


@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 1200px) {
    .faq-chip-group {
        gap: 10px;
    }

    .faq-question {
        padding: 22px 24px;
    }
}

@media (max-width: 992px) {


    .faq-search-card {
        padding: 14px 20px;
    }

    .faq-filter-card {
        padding: 20px 22px;
    }
}


@media (max-width: 768px) {

    .faq-page {padding:20px;}


    


}


@media (max-width: 576px) {

    .notice-page {
        padding:16px;
    }


    .faq-chip {
        flex-shrink: 0;
    }

    .faq-question {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .question-content {
        width: 100%;
    }

    .question-text {
        font-size: 15px;
    }

    .toggle-icon {
        align-self: flex-end;
    }

    .answer-content {
        padding: 0 18px 20px;
    }
}