/* Authority Engine public styles */

/* =============================================
   AEO FRONTEND STYLES
   ============================================= */

/* FAQ Accordion */
.ae-faq-accordion { margin: 2em 0; }
.ae-faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.ae-faq-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #0a0a0a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.ae-faq-trigger:hover { color: #2563EB; }
.ae-faq-icon {
    font-size: 1.25rem;
    color: #2563EB;
    flex-shrink: 0;
    transition: transform .2s;
    line-height: 1;
}
.ae-faq-item.open .ae-faq-icon { transform: rotate(45deg); }
.ae-faq-body { display: none; padding: 0 0 16px; }
.ae-faq-item.open .ae-faq-body { display: block; }
.ae-faq-body div { color: #525252; line-height: 1.7; }

/* Answer Boxes */
.ae-answer-box {
    margin: 1.5em 0;
    border-radius: 8px;
    padding: 20px 24px;
    border-left: 4px solid #2563EB;
    background: #eff6ff;
}
.ae-answer-box--definition { border-color: #8b5cf6; background: #f5f3ff; }
.ae-answer-box--statistic  { border-color: #10b981; background: #ecfdf5; }
.ae-answer-box--steps      { border-color: #f59e0b; background: #fffbeb; }
.ae-answer-box--quote      { border-color: #6b7280; background: #f9fafb; }
.ae-answer-box__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #2563EB;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ae-answer-box--definition .ae-answer-box__label { color: #7c3aed; }
.ae-answer-box--statistic  .ae-answer-box__label { color: #059669; }
.ae-answer-box--steps      .ae-answer-box__label { color: #d97706; }
.ae-answer-box--quote      .ae-answer-box__label { color: #4b5563; }
.ae-answer-box__term { font-size: 1.25rem; font-weight: 800; color: #0a0a0a; margin-bottom: 8px; }
.ae-answer-box__question { font-weight: 600; color: #0a0a0a; margin-bottom: 8px; font-style: italic; }
.ae-answer-box__content { color: #374151; line-height: 1.7; }
.ae-answer-box__source { font-size: 0.8125rem; color: #6b7280; margin-top: 12px; }
.ae-answer-box__source a { color: #2563EB; }

/* HowTo */
.ae-howto { margin: 2em 0; }
.ae-howto-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.ae-howto-meta { color: #6b7280; font-size: 0.9rem; margin-bottom: 16px; }
.ae-howto-steps { list-style: none; padding: 0; counter-reset: howto; }
.ae-howto-step-item {
    counter-increment: howto;
    padding: 16px 16px 16px 60px;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}
.ae-howto-step-item::before {
    content: counter(howto);
    position: absolute;
    left: 12px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: #2563EB;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.ae-howto-step-name { font-weight: 600; margin-bottom: 4px; }
.ae-howto-step-text { color: #525252; font-size: 0.9375rem; }
.ae-howto-step-link { color: #2563EB; font-size: 0.875rem; font-weight: 600; margin-top: 8px; display: inline-block; }

/* Entity list */
.ae-entities { display: flex; gap: 8px; flex-wrap: wrap; margin: 1em 0; }
.ae-entity {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}
.ae-entity a { color: inherit; text-decoration: none; }
.ae-entity a:hover { text-decoration: underline; }
.ae-entity-organization { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ae-entity-place        { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.ae-entity-product      { background: #fdf4ff; border-color: #e9d5ff; color: #6b21a8; }

