/* ============================================
   WooCommerce Category FAQs - Woodmart Styling
   File: woocommerce/category/css/faq-section.css
   ============================================ */

:root {
    --primary-color: #b8860b;
    --secondary-color: #1a1a1a;
    --rgb-color: 184, 134, 11;
    --bg-light: #fafaf8;
    --border-light: #e0d5c7;
    --text-dark: #333;
    --text-muted: #666;
    --transition-smooth: all 0.3s ease;
}

/* ============================================
   MAIN SECTION STYLING
   ============================================ */

.woodmart-category-faqs-section {
    margin-top: 20px;
    position: relative;
    z-index: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.woodmart-category-faqs-section .faq-top-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light) 20%, var(--border-light) 80%, transparent);
    opacity: 0.5;
}

.woodmart-category-faqs-section .faq-container {
    max-width: 100%;
    padding: 0;
}

.woodmart-category-faqs-section .faq-wrapper {
    background: var(--bg-light);
    padding: 10px 20px;
    position: relative;
}

/* ============================================
   HEADER STYLING
   ============================================ */

.woodmart-category-faqs-section .faq-header {
    text-align: center;
    margin-bottom: 20px;
}

.woodmart-category-faqs-section .faq-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.woodmart-category-faqs-section .faq-divider {
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    margin: 20px auto 0;
    opacity: 0.6;
}

/* ============================================
   ACCORDION STYLING
   ============================================ */

.woodmart-category-faqs-section .faqs-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.woodmart-category-faqs-section .faq-item {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

/* Reset browser defaults */
.woodmart-category-faqs-section details {
    all: revert;
}

.woodmart-category-faqs-section details summary {
    all: revert;
}

/* ============================================
   QUESTION STYLING
   ============================================ */

.woodmart-category-faqs-section .faq-question {
    cursor: pointer;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    position: relative;
    transition: var(--transition-smooth);
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: 0.3px;
}

.woodmart-category-faqs-section .question-text {
    display: flex;
    align-items: center;
    flex: 1;
    padding-right: 20px;
}

.woodmart-category-faqs-section .question-number {
    min-width: 30px;
    height: 30px;
    width: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.woodmart-category-faqs-section .question-content {
    flex: 1;
}

.woodmart-category-faqs-section .toggle-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    font-size: 18px;
    font-weight: bold;
}

/* ============================================
   HOVER & INTERACTION STATES
   ============================================ */

.woodmart-category-faqs-section .faq-question:hover {
    background: rgba(var(--rgb-color), 0.03);
}

.woodmart-category-faqs-section .faq-item[open] .faq-question {
    color: var(--primary-color);
    font-weight: 600;
}

.woodmart-category-faqs-section .faq-item[open] .question-number {
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(var(--rgb-color), 0.2);
}

.woodmart-category-faqs-section .faq-item[open] .toggle-icon {
    transform: rotate(45deg);
}

/* ============================================
   ANSWER STYLING
   ============================================ */

.woodmart-category-faqs-section .faq-answer {
    padding: 0 0 25px 45px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 15px;
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

.woodmart-category-faqs-section .faq-answer p {
    margin: 0 0 10px 0;
}

.woodmart-category-faqs-section .faq-answer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */

@media (max-width: 768px) {
    .woodmart-category-faqs-section .faq-title {
        font-size: 24px;
    }

    .woodmart-category-faqs-section .faq-question {
        font-size: 15px;
        padding: 20px 0;
    }

    .woodmart-category-faqs-section .faq-answer {
        padding: 0 0 20px 45px;
        font-size: 14px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 480px) {
    .woodmart-category-faqs-section .faq-wrapper {
        padding: 30px 20px;
    }

    .woodmart-category-faqs-section .faq-title {
        font-size: 20px;
    }

    .woodmart-category-faqs-section .faq-question {
        padding: 15px 0;
        font-size: 14px;
    }

    .woodmart-category-faqs-section .question-number {
        min-width: 26px !important;
        height: 26px !important;
        width: 26px !important;
        font-size: 12px !important;
        margin-right: 12px !important;
    }

    .woodmart-category-faqs-section .faq-answer {
        padding: 0 0 15px 38px;
        font-size: 13px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .woodmart-category-faqs-section .faq-top-divider {
        display: none;
    }

    .woodmart-category-faqs-section .toggle-icon {
        display: none;
    }

    .woodmart-category-faqs-section .faq-item {
        page-break-inside: avoid;
    }
}
