/**
 * Activity FAQ Section Styles
 * 
 * Accordion-style FAQ with activity-specific theming
 * Supports fishing (blue) and hunting (orange) color schemes
 * 
 * @package StateParksCPT
 * @since 2.5.0
 */

/* =================================================================
   FAQ Section Container
   ================================================================= */
.asp-faq-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 2rem 2rem 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* =================================================================
   FAQ Header
   ================================================================= */
.asp-faq-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.asp-faq-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.asp-faq-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* =================================================================
   FAQ List & Items
   ================================================================= */
.asp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.asp-faq-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.asp-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.asp-faq-item[open] {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* =================================================================
   FAQ Question (Summary)
   ================================================================= */
.asp-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #334155;
    list-style: none;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
}

.asp-faq-question::-webkit-details-marker {
    display: none;
}

.asp-faq-question::marker {
    display: none;
    content: '';
}

.asp-faq-question:hover {
    background: #f1f5f9;
}

.asp-faq-item[open] .asp-faq-question {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.asp-faq-q-text {
    flex: 1;
    padding-right: 1rem;
}

/* Toggle Arrow */
.asp-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #64748b;
    transition: transform 0.25s ease, background 0.2s ease;
    flex-shrink: 0;
}

.asp-faq-toggle svg {
    width: 18px;
    height: 18px;
}

.asp-faq-item[open] .asp-faq-toggle {
    transform: rotate(180deg);
    background: #e2e8f0;
}

/* =================================================================
   FAQ Answer
   ================================================================= */
.asp-faq-answer {
    padding: 1rem 1.25rem 1.25rem;
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

.asp-faq-answer p {
    margin: 0;
}

/* =================================================================
   Activity-Specific Theming - Fishing (Blue)
   ================================================================= */
.asp-faq-section--fishing .asp-faq-header {
    border-bottom-color: #60a5fa;
}

.asp-faq-section--fishing .asp-faq-header h2 {
    color: #1e40af;
}

.asp-faq-section--fishing .asp-faq-item[open] {
    border-color: #93c5fd;
}

.asp-faq-section--fishing .asp-faq-item[open] .asp-faq-question {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    border-bottom-color: #bfdbfe;
}

.asp-faq-section--fishing .asp-faq-question:hover {
    background: #eff6ff;
}

.asp-faq-section--fishing .asp-faq-item[open] .asp-faq-toggle {
    background: #3b82f6;
    color: white;
}

/* =================================================================
   Activity-Specific Theming - Hunting (Orange)
   ================================================================= */
.asp-faq-section--hunting .asp-faq-header {
    border-bottom-color: #fb923c;
}

.asp-faq-section--hunting .asp-faq-header h2 {
    color: #9a3412;
}

.asp-faq-section--hunting .asp-faq-item[open] {
    border-color: #fdba74;
}

.asp-faq-section--hunting .asp-faq-item[open] .asp-faq-question {
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 100%);
    border-bottom-color: #fed7aa;
}

.asp-faq-section--hunting .asp-faq-question:hover {
    background: #fff7ed;
}

.asp-faq-section--hunting .asp-faq-item[open] .asp-faq-toggle {
    background: #f97316;
    color: white;
}

/* =================================================================
   Responsive Adjustments
   ================================================================= */
@media (max-width: 768px) {
    .asp-faq-section {
        padding: 1.5rem 1.25rem 2rem;
        margin: 2rem 0;
        border-radius: 12px;
    }

    .asp-faq-header h2 {
        font-size: 1.25rem;
    }

    .asp-faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .asp-faq-answer {
        padding: 0.875rem 1rem 1rem;
        font-size: 0.9rem;
    }

    .asp-faq-toggle {
        width: 24px;
        height: 24px;
    }

    .asp-faq-toggle svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .asp-faq-section {
        padding: 1.25rem 1rem;
        border-radius: 8px;
    }

    .asp-faq-header {
        flex-wrap: wrap;
    }
}

/* =================================================================
   Print Styles
   ================================================================= */
@media print {
    .asp-faq-item[open] {
        break-inside: avoid;
    }

    .asp-faq-toggle {
        display: none;
    }

    .asp-faq-answer {
        display: block !important;
    }
}