/**
 * FULL Ask AI - Frontend Styles v1.1
 */

.full-ask-ai {
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

.full-ask-ai__header {
    margin-bottom: 16px;
}

.full-ask-ai__title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.full-ask-ai__subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.full-ask-ai__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.full-ask-ai__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.full-ask-ai__btn:hover {
    background: #FFD910;
    border-color: #FFD910;
    color: #1a1a1a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 217, 16, 0.25);
    text-decoration: none !important;
}

.full-ask-ai__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.full-ask-ai__icon svg {
    width: 100%;
    height: 100%;
}

.full-ask-ai__label {
    line-height: 1;
}

/* ==================== MICROCOPY (aviso Claude) ==================== */
.full-ask-ai__microcopy {
    font-size: 11px;
    color: #6c757d;
    font-weight: 400;
    margin-left: 4px;
    line-height: 1;
    opacity: 0.85;
}

.full-ask-ai__btn:hover .full-ask-ai__microcopy {
    color: #5a4600;
    opacity: 1;
}

/* Microcopy some em inline/minimal pra não poluir */
.full-ask-ai-inline .full-ask-ai__microcopy,
.full-ask-ai-minimal .full-ask-ai__microcopy {
    display: none;
}

/* ==================== STYLE: INLINE ==================== */
.full-ask-ai-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
}

.full-ask-ai-inline .full-ask-ai__header {
    margin-bottom: 0;
    flex-shrink: 0;
}

.full-ask-ai-inline .full-ask-ai__title {
    font-size: 15px;
    margin: 0;
}

.full-ask-ai-inline .full-ask-ai__buttons {
    flex: 1;
    min-width: 0;
}

/* ==================== STYLE: MINIMAL ==================== */
.full-ask-ai-minimal {
    background: transparent;
    border: none;
    padding: 12px 0;
}

.full-ask-ai-minimal .full-ask-ai__btn {
    padding: 8px 12px;
    font-size: 13px;
}

/* ==================== MODO STICKY ==================== */
.full-ask-ai--sticky {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    max-width: 260px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.full-ask-ai--sticky.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.full-ask-ai--sticky.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.full-ask-ai--sticky-right {
    right: 20px;
}

.full-ask-ai--sticky-left {
    left: 20px;
}

.full-ask-ai--sticky .full-ask-ai__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.full-ask-ai--sticky .full-ask-ai__btn {
    justify-content: flex-start;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
}

.full-ask-ai--sticky .full-ask-ai__title {
    font-size: 14px;
    font-weight: 600;
}

.full-ask-ai--sticky .full-ask-ai__subtitle {
    display: none;
}

.full-ask-ai--sticky .full-ask-ai__microcopy {
    display: none;
}

.full-ask-ai__close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.full-ask-ai__close:hover {
    color: #1a1a1a;
    background: #F8F9FA;
}

/* Close button só aparece no modo sticky */
.full-ask-ai:not(.full-ask-ai--sticky) .full-ask-ai__close {
    display: none;
}

/* ==================== ÍCONES COLORIDOS ==================== */
/* Em modo colorido os SVGs já carregam fill próprio. 
   Em modo mono, o SVG herda currentColor do botão. */
.full-ask-ai--icons-colored .full-ask-ai__icon svg {
    /* Preserva as cores da marca */
}

.full-ask-ai--icons-mono .full-ask-ai__icon {
    color: currentColor;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .full-ask-ai {
        padding: 20px 16px;
    }

    .full-ask-ai__title {
        font-size: 16px;
    }

    .full-ask-ai__buttons {
        gap: 8px;
    }

    .full-ask-ai__btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .full-ask-ai__microcopy {
        display: none; /* microcopy some no mobile pra economizar espaço */
    }

    .full-ask-ai-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Sticky vira barra inferior no mobile */
    .full-ask-ai--sticky {
        top: auto;
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        transform: none;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 12px 16px;
    }

    .full-ask-ai--sticky .full-ask-ai__buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .full-ask-ai--sticky .full-ask-ai__header {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .full-ask-ai__buttons {
        width: 100%;
    }

    .full-ask-ai:not(.full-ask-ai--sticky) .full-ask-ai__btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 4px);
    }
}
