/* =====================================================================
   CENTRAL DE AJUDA JEDAX
   Segue o tema escuro do Portal: fundo #05070a, cards #111418, verde #67B34D
   ===================================================================== */

/* ---------- Botão AJUDA do Portal (centralizado, abaixo do nome do usuário) ---------- */
.ajuda-btn-wrap { text-align: center; margin-bottom: 22px; }
.btn-ajuda {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(103, 179, 77, 0.12);
    border: 1px solid #67B34D;
    color: #67B34D;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn-ajuda:hover {
    background: #67B34D;
    color: #05070a;
    box-shadow: 0 0 14px rgba(103, 179, 77, 0.45);
}
.btn-ajuda:focus-visible,
.ajuda-item:focus-visible,
.ajuda-voltar:focus-visible,
.ajuda-faq summary:focus-visible {
    outline: 2px solid #67B34D;
    outline-offset: 2px;
}

/* ---------- Popup (o Portal força texto centralizado em .modal-body) ---------- */
#modalAjuda .modal-content { text-align: left; }
#modalAjuda .modal-title { color: #67B34D; }
#modalAjuda .modal-body { text-align: left !important; padding: 4px 20px 20px !important; }
#modalAjuda .ajuda-tela-cheia { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; text-decoration: underline; }
#modalAjuda .ajuda-tela-cheia:hover { color: #67B34D; }

/* ---------- Atalho do administrador (aparece só para admin) ---------- */
.ajuda-admin-link { text-align: right; margin-bottom: 6px; }
.ajuda-admin-link a { color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; text-decoration: none; }
.ajuda-admin-link a:hover { color: #67B34D; }

/* ---------- Lista ---------- */
.ajuda-root { color: #fff; }

.ajuda-categoria {
    margin: 22px 0 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #67B34D;
}
.ajuda-categoria i { margin-right: 4px; }
.ajuda-lista > .ajuda-categoria:first-child { margin-top: 4px; }

.ajuda-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #111418;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    color: #fff !important;
    text-decoration: none !important;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.ajuda-item:hover { border-color: #67B34D; }

.ajuda-icone { color: #67B34D; font-size: 1.4rem; flex: 0 0 auto; }
.ajuda-texto { display: flex; flex-direction: column; min-width: 0; }
.ajuda-texto b { font-size: 0.95rem; }
.ajuda-texto small { color: rgba(255, 255, 255, 0.65); font-size: 0.8rem; margin-top: 2px; }

/* ---------- Dúvidas frequentes (sanfona nativa, sem JavaScript) ---------- */
.ajuda-faq { display: block; padding: 0; cursor: default; }
.ajuda-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    list-style: none;
}
.ajuda-faq summary::-webkit-details-marker { display: none; }
.ajuda-faq summary::after { content: '+'; color: #67B34D; font-weight: 900; font-size: 1.2rem; line-height: 1; }
.ajuda-faq[open] summary::after { content: '\2212'; }
.ajuda-resposta { padding: 0 16px 16px; color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Player de vídeo ---------- */
.ajuda-player[hidden],
.ajuda-lista[hidden] { display: none !important; }

.ajuda-voltar {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.ajuda-voltar:hover { border-color: #67B34D; color: #67B34D; }

.ajuda-player-titulo { font-weight: 800; margin: 14px 0 10px; }

.ajuda-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%;   /* proporção 16:9 */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.ajuda-ratio iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.ajuda-vazio { color: rgba(255, 255, 255, 0.6); text-align: center; padding: 30px 10px; margin: 0; }

@media (max-width: 480px) {
    .ajuda-item { padding: 12px 14px; }
    .ajuda-texto b, .ajuda-faq summary { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .btn-ajuda, .ajuda-item, .ajuda-voltar { transition: none; }
}
