/* ============================================================
   AEO Automator - Public CSS
   ============================================================ */

/* ---- FAQ Block ---- */
.aeo-faq-block { margin: 2em 0; }
.aeo-faq-title { font-size: 1.5em; margin-bottom: 1em; }

.aeo-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.aeo-faq-question {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    background: #f8fafc;
    position: relative;
}
.aeo-faq-answer  {
    padding: 14px 18px;
    color: #475569;
    border-top: 1px solid #e2e8f0;
}

/* Accordion mode */
.aeo-faq-block--accordion .aeo-faq-answer { display: none; }
.aeo-faq-block--accordion .aeo-faq-item.is-open .aeo-faq-answer { display: block; }
.aeo-faq-block--accordion .aeo-faq-question::after {
    content: '+';
    position: absolute;
    right: 18px;
    font-size: 18px;
    color: #6366f1;
    transition: transform .2s;
}
.aeo-faq-block--accordion .aeo-faq-item.is-open .aeo-faq-question::after {
    transform: rotate(45deg);
}

/* ---- Table Block ---- */
.aeo-table-block { margin: 2em 0; overflow-x: auto; }
.aeo-table-block .aeo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.aeo-table-block .aeo-table th,
.aeo-table-block .aeo-table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.aeo-table-block .aeo-table thead th {
    background: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
}
.aeo-table-block .aeo-table tbody tr:nth-child(even) { background: #f8fafc; }
.aeo-table-block .aeo-table-caption {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 8px;
}
.aeo-table-block .aeo-table-source {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

/* ---- HowTo Block ---- */
.aeo-howto-block { margin: 2em 0; }
.aeo-howto-title  { font-size: 1.4em; margin-bottom: .5em; }
.aeo-howto-time   { font-size: 14px; color: #6366f1; font-weight: 600; margin-bottom: 1em; }
.aeo-howto-supplies { padding-left: 1.2em; color: #475569; font-size: 14px; margin-bottom: 1.5em; }
.aeo-howto-steps  { list-style: none; padding: 0; counter-reset: step-counter; }
.aeo-howto-step {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
}
.aeo-howto-step--optional { opacity: 0.8; }
.aeo-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 15px;
}
.aeo-step-content  { flex: 1; }
.aeo-step-title    { display: block; font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.aeo-step-desc     { color: #475569; margin: 0; }
.aeo-step-image    { max-width: 100%; border-radius: 8px; margin-top: 10px; }

/* ---- List Block ---- */
.aeo-list-block { margin: 1.5em 0; }
.aeo-list-title  { font-size: 1.1em; margin-bottom: .5em; }
.aeo-list {
    list-style: disc;
    padding-left: 1.5em;
    color: #475569;
    line-height: 1.7;
}
.aeo-list-item--highlighted { font-weight: 700; color: #1e293b; }

/* ---- Author Box Block ---- */
.aeo-author-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #f8fafc;
    margin: 2em 0;
}
.aeo-author-box--vertical { flex-direction: column; align-items: center; text-align: center; }
.aeo-author-box .aeo-author-avatar { border-radius: 50%; flex-shrink: 0; }
.aeo-author-box .aeo-author-name  { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.aeo-author-box .aeo-author-role  { display: block; font-size: 13px; color: #6366f1; margin-bottom: 6px; }
.aeo-author-box .aeo-author-exp   { font-size: 13px; color: #94a3b8; }
.aeo-author-box .aeo-author-credentials { font-size: 13px; color: #475569; margin: 6px 0; }
.aeo-author-box .aeo-author-methodology { font-size: 13px; color: #64748b; font-style: italic; }
.aeo-author-box .aeo-author-social      { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.aeo-author-box .aeo-social-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    padding: 3px 10px;
    border: 1px solid #c7d2fe;
    border-radius: 99px;
    transition: background .15s;
}
.aeo-author-box .aeo-social-link:hover { background: #ede9fe; }
