/* H88 Generator - FAQ Accordion Styles */
/* Theme-independent accordion that works everywhere */

.h88-faq-accordion {
    max-width: 100%;
    margin: 30px 0;
    font-family: inherit;
}

.h88-faq-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

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

.h88-faq-item.active {
    border-color: #3b82f6;
}

.h88-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: #1f2937;
    background: #fafafa;
    transition: all 0.3s ease;
    user-select: none;
    gap: 15px;
}

.h88-faq-question:hover {
    background: #f3f4f6;
}

.h88-faq-item.active .h88-faq-question {
    background: #eff6ff;
    color: #1e40af;
}

.h88-faq-question-text {
    flex: 1;
}

.h88-faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    color: #6b7280;
    transition: transform 0.3s ease, color 0.3s ease;
}

.h88-faq-item.active .h88-faq-icon {
    transform: rotate(45deg);
    color: #3b82f6;
}

.h88-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #fff;
}

.h88-faq-answer-content {
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.h88-faq-item.active .h88-faq-answer {
    max-height: 1000px;
}

.h88-faq-item.active .h88-faq-answer-content {
    padding: 20px;
    padding-top: 0;
}

/* Schema.org structured data - hidden but present for SEO */
.h88-faq-schema {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .h88-faq-question {
        padding: 15px;
        font-size: 15px;
    }
    
    .h88-faq-answer-content {
        padding: 0 15px;
        font-size: 14px;
    }
    
    .h88-faq-item.active .h88-faq-answer-content {
        padding: 15px;
        padding-top: 0;
    }
}

/* Dark mode support (if theme uses prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
    .h88-faq-item {
        background: #1f2937;
        border-color: #374151;
    }
    
    .h88-faq-question {
        background: #111827;
        color: #f9fafb;
    }
    
    .h88-faq-question:hover {
        background: #1f2937;
    }
    
    .h88-faq-item.active .h88-faq-question {
        background: #1e3a5f;
        color: #93c5fd;
    }
    
    .h88-faq-answer {
        background: #1f2937;
    }
    
    .h88-faq-answer-content {
        color: #d1d5db;
    }
    
    .h88-faq-icon {
        color: #9ca3af;
    }
    
    .h88-faq-item.active .h88-faq-icon {
        color: #60a5fa;
    }
}
