/*
=========================================================================
FAQ 게시판 스킨 스타일
=========================================================================
*/

/* FAQ 리스트 */
.faq_list_wrap {
    margin: 20px 0;
}

.no_data {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.faq_item {
    border: 1px solid var(--border2);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq_item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.faq_question {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background: var(--bg);
    transition: background 0.2s ease;
    gap: 12px;
}

.faq_question:hover {
    background: var(--light-gray);
}

.faq_item.active .faq_question {
    background: var(--light-gray);
    border-bottom: 1px solid var(--border2);
}

.faq_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.faq_subject {
    flex: 1;
    font-size: 1.05em;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
}

.faq_actions {
    margin-left: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

.faq_detail_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--gray);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.faq_detail_link:hover {
    background: var(--border2);
    color: var(--color-primary);
}

.faq_detail_link i {
    font-size: 14px;
}

.faq_toggle {
    color: var(--gray);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq_item.active .faq_toggle {
    transform: rotate(180deg);
}

.faq_toggle .arrow_down {
    font-size: 12px;
}

.faq_answer {
    display: none;
    background: var(--input-bg);
    border-top: 1px solid var(--border2);
}

.faq_answer_inner {
    display: flex;
    padding: 20px;
    gap: 12px;
}

.faq_icon_answer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--disabled-gray);
    color: var(--gray);
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid var(--border2);
}

.faq_content {
    flex: 1;
    line-height: 1.8;
    color: var(--text-color);
    word-break: break-word;
}

.faq_meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    padding-top: 0;
    font-size: 0.85em;
    color: var(--gray);
}

.faq_meta span,
.faq_meta a {
    display: inline-block;
}

.faq_comment {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.faq_comment:hover {
    text-decoration: underline;
}

/* FAQ 상세보기 */
.faq_view_wrap {
    border: 1px solid var(--border2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.faq_question_view {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 25px;
    background: var(--bg);
    border-bottom: 1px solid var(--border2);
}

.faq_question_view .faq_subject {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
}

.faq_answer_view {
    display: flex;
    gap: 12px;
    padding: 30px 25px;
    background: var(--input-bg);
}

.faq_answer_view .faq_content {
    line-height: 1.9;
    color: var(--text-color);
}

.faq_meta_view {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    background: var(--bg);
    border-top: 1px solid var(--border2);
    font-size: 0.9em;
    color: var(--gray);
}

.faq_meta_view span {
    display: inline-block;
}

.faq_meta_view span::after {
    content: '|';
    margin: 0 10px;
    color: var(--border2);
}

.faq_meta_view span:last-child::after {
    display: none;
}

/* FAQ 작성폼 */
.faq_write_question .fTit,
.faq_write_answer .fTit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
}

.faq_write_question .faq_icon,
.faq_write_answer .faq_icon_answer {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.faq_write_answer textarea {
    min-height: 250px;
}

/* 반응형 */
@media (max-width: 600px) {
    .faq_question,
    .faq_answer_inner {
        padding: 15px;
    }

    .faq_icon,
    .faq_icon_answer {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .faq_subject {
        font-size: 0.95em;
    }

    .faq_question_view,
    .faq_answer_view {
        padding: 20px 15px;
    }

    .faq_question_view .faq_subject {
        font-size: 1.1em;
    }

    .faq_meta,
    .faq_meta_view {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.8em;
    }
}
