/* ==========================================================================
   大發進銷存 (DAFA ERP) - FAQ 常見問題與深度解答獨立樣式表
   路徑: firebase/public/assets/v2/css/faq.css
   ========================================================================== */

.faq-hero-section {
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
    background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.06) 45%, transparent 70%),
                radial-gradient(circle at 10% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.faq-search-box {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.faq-search-box input {
    height: 3.5rem;
    border-radius: 9999px;
    padding-left: 3.25rem;
    padding-right: 1.5rem;
    font-size: 1.05rem;
    border: 2px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.faq-search-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 12px 30px -5px rgba(37, 99, 235, 0.2);
    outline: none;
}

.faq-search-box .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.25rem;
}

.faq-cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.faq-cat-pill {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 0.5rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.faq-cat-pill:hover {
    border-color: #93c5fd;
    color: #2563eb;
    background: #eff6ff;
}

.faq-cat-pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.faq-item-card .accordion-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    transition: all 0.2s ease;
}

.faq-item-card .accordion-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.06);
}

.faq-badge-category {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: #2563eb;
    flex-shrink: 0;
}

.accordion-button {
    padding: 1.15rem 1.25rem;
    border-radius: 1rem !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: #f8fafc;
    color: #0f172a;
}

.accordion-button:not(.collapsed) .faq-badge-category {
    background: #2563eb;
    color: #ffffff;
}

.accordion-body ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.accordion-body li {
    margin-bottom: 0.35rem;
}

.faq-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    border-radius: 1.5rem;
    color: #ffffff;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.35);
}
