/**
 * FAQ Styles
 *
 * Styles for FAQ archive page - matches PHP prototype exactly
 *
 * @package Remko_Theme
 * @since 1.0.0
 */

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ FILTER BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.faq-filter-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #E5E7EB;
    background: white;
    color: #374151;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.faq-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.faq-filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Responsive button sizing */
@media (max-width: 768px) {
    .faq-filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .faq-filter-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0;
    }
    .faq-filter-btn {
        padding: 6px 12px;
        font-size: 11px;
        flex-shrink: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ PRODUCT SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-product-content {
    background-color: #F9FAFB;
    padding: 16px;
    border-radius: 8px;
    border-top: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.faq-product-content.collapsed .faq-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    height: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.faq-product-content.active .faq-list {
    max-height: none;
    opacity: 1;
    overflow: visible;
    height: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ SECTION HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-section-header {
    cursor: pointer;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.faq-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
}

.faq-toggle-btn i,
.faq-toggle-btn .ph,
.faq-toggle-btn .ph-fill {
    font-size: 20px;
    color: var(--dark);
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-product-content.collapsed .faq-toggle-btn i,
.faq-product-content.collapsed .faq-toggle-btn .ph,
.faq-product-content.collapsed .faq-toggle-btn .ph-fill {
    transform: rotate(-90deg);
}

.faq-product-content.active .faq-toggle-btn i,
.faq-product-content.active .faq-toggle-btn .ph,
.faq-product-content.active .faq-toggle-btn .ph-fill {
    transform: rotate(0deg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ LIST & ITEMS
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    padding-top: 0.5rem;
}

.faq-item {
    /* Simple Q&A pair - no accordion behavior */
}

.faq-question h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.faq-answer p {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ SUBSECTION HEADINGS
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-subheading {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent) !important;
    margin: 16px 0 12px 0;
    letter-spacing: 0.6px;
    font-weight: 600;
    padding-top: 8px;
}

/* First subheading doesn't need top margin */
.faq-list > .faq-subheading:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ INTRO TEXT
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-intro p {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DIVIDERS
   ═══════════════════════════════════════════════════════════════════════════ */

.divider-soft {
    height: 1px;
    background-color: #E5E7EB;
    margin: 0.01rem 0;
}

/* Divider before subheading needs more space */
.faq-subheading + .divider-soft,
.divider-soft + .faq-subheading {
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .faq-product-content {
        padding: 12px;
    }

    .faq-section-header h3 {
        font-size: 1.1rem;
    }

    .faq-question h4 {
        font-size: 0.95rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .faq-product-content {
        padding: 10px;
        border-radius: 6px;
    }

    .faq-section-header h3 {
        font-size: 1rem;
    }

    .faq-toggle-btn i {
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT PAGE FAQs (shortcode component)
   ═══════════════════════════════════════════════════════════════════════════ */

.product-faqs {
    background-color: #F9FAFB;
    padding: 24px;
    border-radius: 8px;
    margin: 2rem 0;
}

.product-faqs__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1rem 0;
}

.product-faqs__list {
    display: flex;
    flex-direction: column;
}

.product-faqs__item {
    padding: 0.5rem 0;
}

.product-faqs__question h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.product-faqs__answer p {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.product-faqs__more {
    margin-top: 1.5rem;
    text-align: center;
}

.product-faqs__error {
    color: #dc2626;
    background: #fef2f2;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    font-size: 14px;
}

/* Responsive styles for product FAQs */
@media (max-width: 768px) {
    .product-faqs {
        padding: 16px;
    }

    .product-faqs__title {
        font-size: 1.1rem;
    }

    .product-faqs__question h4 {
        font-size: 0.95rem;
    }

    .product-faqs__answer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-faqs {
        padding: 12px;
        border-radius: 6px;
        margin: 1rem 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO TEXT SHADOW (for visibility on background images)
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
