/* FAQ Page Styles */

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

.board-actions {
    text-align: right;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.btn-primary:hover {
    background-color: #000;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* FAQ List */
.faq-list {
    border-top: 2px solid #333;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 15px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background-color 0.2s;
}

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

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 12px;
}

.faq-icon.answer-icon {
    background-color: #28a745;
}

.faq-question-text {
    flex: 1;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

.faq-toggle {
    margin-left: 10px;
    color: #666;
    transition: transform 0.3s;
}

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

/* FAQ Answer */
.faq-answer {
    display: none;
    padding: 0 15px 20px 15px;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer-inner {
    display: flex;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.faq-answer-text {
    flex: 1;
    color: #555;
    line-height: 1.7;
    font-size: 14px;
}

.faq-answer-text p {
    margin: 0 0 10px 0;
}

.faq-answer-text p:last-child {
    margin-bottom: 0;
}

/* Admin Actions */
.faq-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

/* Empty state */
.board_empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-container {
        padding: 15px;
    }

    .faq-question {
        padding: 15px 10px;
        font-size: 14px;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 10px;
    }

    .faq-answer-inner {
        padding: 15px;
    }

    .faq-answer-text {
        font-size: 13px;
    }
}
