/* Central de Ajuda - Estilos Trampix */

.help-main {
    min-height: calc(100vh - 80px);
    padding: 40px 20px 60px;
    display: flex;
    justify-content: center;
}

.help-container {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Cabecalho */
.help-header {
    text-align: center;
    padding: 20px 0;
}

.help-title {
    font-family: 'Sora', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.help-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Campo de busca */
.help-search {
    position: relative;
    width: 100%;
}

.help-search__input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all 0.25s var(--ease);
}

.help-search__input::placeholder {
    color: var(--text-muted);
}

.help-search__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(138, 5, 190, 0.15), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.help-search__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Sugestoes de busca */
.help-search__suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 100;
    overflow: hidden;
    animation: fadeSlideDown 0.2s var(--ease);
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-search__suggestions-list {
    list-style: none;
    padding: 8px;
}

.help-search__suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s var(--ease);
}

.help-search__suggestion-item:hover {
    background: var(--surface-soft);
    color: var(--text-primary);
}

.help-search__suggestion-item .material-symbols-rounded {
    font-size: 20px;
    color: var(--accent);
}

/* Chat de ajuda */
.help-chat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 480px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.help-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

/* Mensagens */
.help-message {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: messageFadeIn 0.3s var(--ease);
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-message--assistant {
    align-items: flex-start;
}

.help-message--user {
    align-items: flex-end;
}

/* Baloes de mensagem */
.help-bubble {
    max-width: 85%;
    padding: 14px 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: var(--radius-lg);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.help-bubble--assistant {
    background: var(--surface-soft);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 6px;
}

.help-bubble--user {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 6px;
}

/* Opcoes de botoes */
.help-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.help-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-align: left;
}

.help-option:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 5, 190, 0.2);
}

.help-option:active {
    transform: translateY(0);
}

.help-option .material-symbols-rounded {
    font-size: 18px;
    color: var(--accent);
}

/* Sistema de confirmacao */
.help-feedback {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    animation: messageFadeIn 0.3s var(--ease);
}

.help-feedback__question {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.help-feedback__buttons {
    display: flex;
    gap: 10px;
}

.help-feedback__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.help-feedback__btn--yes {
    background: var(--success);
    color: #fff;
    border: none;
}

.help-feedback__btn--yes:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.help-feedback__btn--no {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.help-feedback__btn--no:hover {
    background: var(--surface-soft);
    border-color: var(--danger);
    color: var(--danger);
}

/* Mensagem de sucesso */
.help-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    font-weight: 600;
    animation: messageFadeIn 0.3s var(--ease);
}

/* Sugestoes adicionais */
.help-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    animation: messageFadeIn 0.3s var(--ease);
}

.help-suggestions__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-suggestions__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.help-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s var(--ease);
}

.help-suggestion:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text-primary);
}

.help-suggestion .material-symbols-rounded {
    font-size: 16px;
    color: var(--accent);
}

/* Botao de suporte */
.help-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-soft), var(--surface-soft));
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    margin-top: 8px;
}

.help-support-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 5, 190, 0.3);
}

.help-support-btn .material-symbols-rounded {
    font-size: 20px;
}

/* Indicador de digitacao */
.help-typing {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 6px;
}

.help-typing__dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.help-typing__dot:nth-child(1) { animation-delay: 0s; }
.help-typing__dot:nth-child(2) { animation-delay: 0.2s; }
.help-typing__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Scrollbar personalizada */
.help-chat__messages::-webkit-scrollbar {
    width: 6px;
}

.help-chat__messages::-webkit-scrollbar-track {
    background: transparent;
}

.help-chat__messages::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.help-chat__messages::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Responsividade */
@media (max-width: 600px) {
    .help-main {
        padding: 24px 16px 40px;
    }

    .help-container {
        gap: 20px;
    }

    .help-title {
        font-size: 1.8rem;
    }

    .help-subtitle {
        font-size: 1rem;
    }

    .help-chat {
        border-radius: var(--radius-lg);
        min-height: 420px;
    }

    .help-chat__messages {
        padding: 16px;
        gap: 16px;
    }

    .help-bubble {
        max-width: 92%;
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .help-option {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .help-feedback__buttons {
        flex-direction: column;
    }

    .help-feedback__btn {
        width: 100%;
        justify-content: center;
    }
}
