/**
 * Product Details - FAQ Accordion
 * Contains: FAQ accordion component styling with animations and interactions
 * Part of modular product-details.css split
 */

.faq-accordion-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.faq-accordion-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-header {
    background: #ffffff;
    padding: 20px 24px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.faq-accordion-header:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.faq-accordion-item.active .faq-accordion-header {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-question-badge {
    width: 40px;
    height: 40px;
    background: transparent;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.faq-question-text {
    flex: 1;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    color: #999;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
}

.faq-toggle-icon::before {
    content: '+';
    display: block;
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-toggle-icon::before {
    content: '-';
    transform: rotate(0deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    border-top: none;
}

.faq-accordion-item.active .faq-accordion-content {
    max-height: 500px;
    transition: max-height 0.5s ease;
}

.faq-answer-wrapper {
    padding: 24px 24px 24px 80px;
}

.faq-answer-label {
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-answer-text {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

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

.faq-accordion-header:hover .faq-question-text {
    color: #000000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-accordion-item.active .faq-answer-wrapper {
    animation: fadeIn 0.3s ease;
}

@supports (-webkit-touch-callout: none) {
    .faq-accordion-header {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        touch-action: manipulation;
    }

    .faq-accordion-content {
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .faq-accordion-header * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .faq-accordion-item.active .faq-accordion-content {
        max-height: 1000px;
    }
}

@media (pointer: coarse) {
    .faq-accordion-header {
        min-height: 44px;
        padding: 16px 20px;
    }

    .faq-toggle-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
