/* FAQ Search Devoq Styles - Modal Version */

/* Trigger Input (Fake search bar) */

/* Ensure modal appears above everything */
#devoq-faq-modal {
    z-index: 999999 !important;
}

.devoq-faq-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.6);
    z-index: 999999 !important;
    display: none;
    justify-content: center;
    align-items: center;
    animation: devoqFadeIn 0.3s;
}




.devoq-faq-trigger-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
}

.devoq-faq-trigger-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    background: white;
    position: relative;
    transition: border-color 0.3s;
}

.devoq-faq-trigger-input:hover {
    border-color: #7C3AED;
}

.devoq-faq-trigger-wrapper {
    position: relative;
}

.devoq-faq-trigger-wrapper svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

/* Modal Overlay */
.devoq-faq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: devoqFadeIn 0.3s;
}

.devoq-faq-modal-overlay.active {
    display: flex !important;
}

.devoq-faq-modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    animation: devoqSlideUp 0.3s;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.devoq-faq-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    transition: color 0.3s;
    z-index: 10;
}

.devoq-faq-close:hover {
    color: #000;
}

.devoq-faq-modal-content h2 {
    margin: 0 0 20px 0;
    color: #1f2937;
}

/* Search Box in Modal */
.devoq-faq-search-box {
    position: relative;
    margin: 20px 0;
}

.devoq-faq-search-box svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.devoq-faq-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.devoq-faq-input:focus {
    border-color: #7C3AED;
}

/* Results Area */
.devoq-faq-results {
    margin-top: 30px;
}

.devoq-faq-item {
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 15px;
    background: white;
    transition: box-shadow 0.3s;
}

.devoq-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.devoq-faq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.devoq-faq-item-title {
    flex: 1;
}

.devoq-faq-item h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.5;
    color: #1f2937;
    font-weight: 600;
}

.devoq-faq-content {
    margin-top: 15px;
    color: #4b5563;
    line-height: 1.8;
    display: none;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.devoq-faq-content.expanded {
    display: block;
}

.devoq-faq-content p {
    margin: 10px 0;
}

.devoq-faq-content ul,
.devoq-faq-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.devoq-faq-content li {
    margin: 5px 0;
}

.devoq-faq-content a {
    color: #7C3AED;
    text-decoration: none;
}

.devoq-faq-content a:hover {
    text-decoration: underline;
}

.devoq-faq-toggle {
    background: #7C3AED;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.3s;
}

.devoq-faq-toggle:hover {
    background: #6D28D9;
}

.devoq-faq-category {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.devoq-no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
}

.devoq-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.devoq-faq-stats {
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

@keyframes devoqFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes devoqSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .devoq-faq-modal-content {
        width: 95%;
        padding: 25px;
        max-height: 90vh;
    }
    
    .devoq-faq-item-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .devoq-faq-toggle {
        align-self: flex-start;
    }
    
    .devoq-faq-item {
        padding: 20px;
    }
}
