/* FAQ Plugin Frontend Styles */

.ppf-container {
    margin: 20px 0;
    position: relative;
}

.ppf-main-heading {
    margin: 0 0 20px;
    padding: 0;
}

.ppf-faqs-list {
    margin: 0;
    padding: 0;
}

.ppf-item {
    margin-bottom: 10px;
    list-style: none;
}

.ppf-question {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ppf-question:hover {
    background: #e0e0e0;
}

.ppf-question-text {
    flex: 1;
    font-weight: 600;
}

.ppf-toggle-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.ppf-answer {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.ppf-answer-content {
    padding: 20px;
    line-height: 1.6;
}

.ppf-answer-content p:last-child {
    margin-bottom: 0;
}

/* Active state styles */
.ppf-item.active .ppf-question {
    background: #0073aa;
    color: #fff;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.ppf-item.active .ppf-question:hover {
    background: #005a87;
}

.ppf-item.active .ppf-toggle-icon {
    color: #fff;
}

/* Expand/Collapse buttons */
.ppf-expand-collapse {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.ppf-expand-all-btn,
.ppf-collapse-all-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ppf-expand-all-btn:hover,
.ppf-collapse-all-btn:hover {
    background: #005a87;
}

/* Layout variations */
.ppf-layout-grid .ppf-faqs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ppf-layout-grid .ppf-item {
    margin-bottom: 0;
}

/* Icon styles */
.ppf-question .dashicons {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .ppf-question {
        padding: 12px;
        font-size: 14px;
    }
    
    .ppf-answer-content {
        padding: 15px;
    }
    
    .ppf-expand-collapse {
        flex-direction: column;
    }
    
    .ppf-expand-all-btn,
    .ppf-collapse-all-btn {
        width: 100%;
    }
}

/* Style variations */
.ppf-style-minimal .ppf-question {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    padding: 12px 0;
}

.ppf-style-minimal .ppf-answer {
    background: transparent;
    border: none;
    padding-left: 20px;
}

.ppf-style-colorful .ppf-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.ppf-style-colorful .ppf-question:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.ppf-style-dark .ppf-container {
    background: #1a1a1a;
    color: #fff;
}

.ppf-style-dark .ppf-question {
    background: #2d2d2d;
    border-color: #404040;
    color: #fff;
}

.ppf-style-dark .ppf-answer {
    background: #2d2d2d;
    border-color: #404040;
    color: #ccc;
}

.ppf-style-dark .ppf-main-heading {
    color: #fff;
}

/* Post type group styles */
.ppf-post-group {
    margin-bottom: 30px;
}

.ppf-post-title {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.ppf-sub-heading {
    margin: 0 0 15px;
    font-size: 1.1em;
    color: #666;
}