/**
 * Frontend styles for Make FAQ Gutenberg blocks
 */

/* FAQ Display Block */
.wp-block-make-faq-faq-display {
    margin-bottom: 2em;
}

.make-faq-item {
    margin-bottom: 1em;
}

.make-faq-question {
    cursor: pointer;
    font-weight: bold;
    padding: 0.5em 0;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.make-faq-question:after {
    content: "+";
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.make-faq-question.active:after {
    content: "-";
}

.make-faq-answer {
    padding: 0.5em 0 1em;
    display: none;
}

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

/* List Style */
.make-faq-list .make-faq-item {
    margin-bottom: 2em;
}

.make-faq-list .make-faq-question {
    cursor: default;
    margin-bottom: 0.5em;
}

.make-faq-list .make-faq-question:after {
    display: none;
}

.make-faq-list .make-faq-answer {
    display: block;
}

/* Toggle Style */
.make-faq-toggle .make-faq-item {
    margin-bottom: 1em;
}

/* FAQ Search Block */
.wp-block-make-faq-faq-search {
    margin-bottom: 2em;
}

.make-faq-search-form {
    display: flex;
    width: 100%;
}

.make-faq-search-input {
    flex: 1;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
}

.make-faq-search-button {
    padding: 0.5em 1em;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.make-faq-search-button:hover {
    background: #005177;
}

.make-faq-search-results {
    margin-top: 1em;
}

.make-faq-no-results {
    padding: 1em;
    background: #f8f8f8;
    text-align: center;
    border-radius: 3px;
}