/* faq-widget.css - Flora FAQ Widget - Universal Theme Compatible */

.florasense-faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: inherit; /* Use theme's font */
    background: transparent;
    color: inherit;
}

/* Header Section */
.faq-header {
    text-align: center;
    margin-bottom: 32px;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 1.25rem;
    color: #666666;
    margin: 0;
    font-weight: 400;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* FAQ Item */
.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    background: #ffffff;
}

.faq-item:hover {
    border-color: #999999;
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.faq-question:hover {
    background: #f8f8f8;
}

.faq-question:focus {
    outline: 2px solid #000000;
    outline-offset: -2px;
}

.faq-question.expanded {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.question-text {
    flex: 1;
    margin-right: 16px;
    line-height: 1.4;
}

/* FAQ Icon - Simple Plus/Minus */
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #666666;
    transition: transform 0.2s ease;
    position: relative;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.faq-question.expanded .faq-icon {
    transform: rotate(45deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
}

.faq-answer.expanded {
    max-height: 1000px;
}

.answer-content {
    padding: 0 20px 20px 20px;
    color: #333333;
    font-size: 1.19rem;
    line-height: 1.6;
    font-family: inherit;
}

.answer-content br + br {
    display: block;
    margin: 8px 0;
    content: "";
}

/* Footer */
.faq-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.faq-footer p {
    color: #666666;
    margin: 0;
    font-size: 1.13rem;
}

.support-link {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.support-link:hover {
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .florasense-faq-container {
        padding: 16px;
    }
    
    .faq-title {
        font-size: 2.19rem;
    }
    
    .faq-subtitle {
        font-size: 1.19rem;
    }
    
    .faq-question {
        padding: 16px 18px;
        font-size: 1.19rem;
    }
    
    .question-text {
        margin-right: 12px;
    }
    
    .answer-content {
        padding: 0 18px 18px 18px;
        font-size: 1.13rem;
    }
    
    .faq-header {
        margin-bottom: 24px;
    }
    
    .faq-list {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .florasense-faq-container {
        padding: 12px;
    }
    
    .faq-title {
        font-size: 1.88rem;
    }
    
    .faq-question {
        padding: 14px 16px;
        font-size: 1.13rem;
    }
    
    .answer-content {
        padding: 0 16px 16px 16px;
        font-size: 1.06rem;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .faq-question,
    .faq-answer,
    .faq-icon,
    .faq-item {
        transition: none;
    }
}

/* Ensure compatibility with any theme background */
.florasense-faq-container * {
    box-sizing: border-box;
}

/* Reset any inherited styles that might interfere */
.faq-question,
.answer-content {
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .faq-item {
        border-color: #000000;
        border-width: 2px;
    }
    
    .faq-question {
        color: #000000;
    }
    
    .support-link {
        color: #000000;
        text-decoration: underline;
    }
}
