/**
 * AI FAQ Generator Pro - Front Office Styles
 *
 * @author SYNC
 * @version 1.1.0
 */

.psaifaqpro-faq-block {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.faq-section {
    margin-bottom: 30px;
}

.faq-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #25B9D7;
}

.faq-accordion {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

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

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

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

.faq-question.active {
    background-color: #e8f6f9;
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #25B9D7;
    margin-left: 15px;
    transition: transform 0.2s ease;
}

.faq-answer {
    padding: 15px 20px;
    background-color: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Standalone FAQ Pages */
.psaifaqpro-page {
    padding: 20px 0;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.faq-list-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

.faq-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-category-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.faq-category-title a {
    color: #25B9D7;
    text-decoration: none;
}

.faq-category-title a:hover {
    text-decoration: underline;
}

.faq-excerpt {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.faq-single-page .page-heading {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

/* Footer and Nav Links */
.psaifaqpro-footer-link,
.psaifaqpro-nav-link {
    display: inline-block;
}

.psaifaqpro-nav-link i {
    margin-right: 5px;
    vertical-align: middle;
}

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

    .faq-title {
        font-size: 20px;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .faq-question {
        padding: 12px 15px;
    }

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

    .faq-list {
        grid-template-columns: 1fr;
    }

    .faq-single-page .page-heading {
        font-size: 24px;
    }

    .faq-single-page .page-heading {
        font-size: 24px;
    }
}

/* AI Generated Accordion (HTML5 Details/Summary) */
details.faq-details {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
}

details.faq-details:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

details.faq-details:last-child {
    border-bottom: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

summary.faq-summary {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    list-style: none;
    /* Hide default triangle */
    transition: background-color 0.2s ease;
}

summary.faq-summary::-webkit-details-marker {
    display: none;
    /* Hide default triangle in WebKit */
}

summary.faq-summary:hover {
    background-color: #f5f5f5;
}

summary.faq-summary::after {
    content: '+';
    font-size: 24px;
    font-weight: bold;
    color: #25B9D7;
    margin-left: 15px;
    transition: transform 0.2s ease;
}

details.faq-details[open] summary.faq-summary {
    background-color: #e8f6f9;
    border-bottom: 1px solid #e0e0e0;
}

details.faq-details[open] summary.faq-summary::after {
    content: '-';
}

.faq-details-content {
    padding: 15px 20px;
    background-color: #fafafa;
    color: #555;
    line-height: 1.6;
}