/* Reset básico para remover margens e paddings padrão */

html {
  -webkit-text-size-adjust: 100%; /* impede o iOS de alterar o tamanho do texto */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    background-color: #ffffff;
    color: rgb(53, 52, 52);
    font-family: 'Roboto', sans-serif; /* Aplicando a nova fonte */
    background-image: url('https://gift.reviews/genaius-v01/images/background-gifts-06.png');

}

body::before {
    content: "";
    background-image: url('/images/gifts-background01.jpg');
    background-repeat: repeat-x;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3; /* muito suave */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* atrás de todo o conteúdo */
}





.chat-container {
    display: flex;
    flex-direction: column;
    max-width: 95%; /* Limita a largura máxima no mobile */
    margin: 0 auto; /* Centraliza no desktop */
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* 85% branco, 15% transparente */
}

@media (min-width: 768px) { /* Ajustes para telas maiores que 768px */
    .chat-container {
        max-width: 50%; /* Limita a largura a 50% para desktop */
    }
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid grey;
}

.profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.profile h2, .profile span {
    margin: 0;
}

.follow-btn {
    padding: 5px 15px;
    background-color: #444444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}



.message p {
    margin-bottom: 10px;
    width: 100%; /* Garante que a mensagem use a largura total */
}

.chat-form {
    display: flex;
    padding: 10px 20px;
    
}

.chat-form input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc; /* Borda sempre visível */
    border-radius: 5px;
    margin-right: 10px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-form input[type="text"]:focus {
    border: 2px solid #444444; /* Azul quando ativo */
}

.chat-form button {
    padding: 10px 15px;
    background-color: #444444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}



.chat-form-initial {
    display: flex;
    padding: 10px 20px;
    width: 75%;
}

.chat-form-initial input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 2px solid #444444; /* Borda sempre visível */
    border-radius: 5px;
    margin-right: 10px;
    outline: none;
    transition: border-color 0.3s;
    
}

.chat-form-initial input[type="text"]:focus {
    border: 2px solid #292929; /* Azul quando ativo */
}

.chat-form-initial button {
    padding: 10px 15px;
    background-color: #292929;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.bot-info-line {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza horizontalmente o conteúdo dentro do .bot-info */
    /*padding: 20px;*/
    background-color: #ffffff; /* Cor de fundo escura */
    color: rgba(20, 20, 20, 0.479); /* Texto branco */
    background-color: rgba(255, 255, 255, 0.1); /* 85% branco, 15% transparente */
    border-top: 5px solid #ffffff; /* Borda superior para destacar */
    flex-direction: row; /* Organiza os itens em coluna */
    padding-bottom: 150px;
}

.bot-image-line {
    width: 48px; /* Tamanho maior da imagem */
    height: 48px;
    border-radius: 50%;
    margin-bottom: 20px; /* Espaço abaixo da imagem */
    margin-right: 10px;
    margin-top: 0px;
}

.bot-description-line {
    text-align: left;
}

.bot-description-line h3 {
    margin: 0;
    font-size: 12px; /* Ajuste de tamanho de fonte conforme necessário */
}

.bot-description-line p {
    margin: 5px 0;
    font-size: 12px; /* Tamanho de fonte menor para os detalhes */
}

.bot-info {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza horizontalmente o conteúdo dentro do .bot-info */
    padding: 20px;
    background-color: #ffffff; /* Cor de fundo escura */
    color: rgb(34, 33, 33); /* Texto branco */
    background-color: rgba(255, 255, 255, 0.1); /* 85% branco, 15% transparente */
    border-top: 5px solid #ffffff; /* Borda superior para destacar */
    flex-direction: column; /* Organiza os itens em coluna */
}

.bot-image {
    width: 80px; /* Tamanho maior da imagem */
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px; /* Espaço abaixo da imagem */
}

.bot-description {
    text-align: center; /* Centraliza o texto */
}

.bot-description h3 {
    margin: 0;
    font-size: 18px; /* Ajuste de tamanho de fonte conforme necessário */
}

.bot-description p {
    margin: 5px 0;
    font-size: 14px; /* Tamanho de fonte menor para os detalhes */
}

.intro-box {
    background-color: #f0f0f0; /* Cinza claro */
    padding: 10px;
    border-radius: 5px; /* Bordas arredondadas */
    margin: 10px 0; /* Espaçamento para separar do texto acima e abaixo */
}

.bot-description p.intro-text {
    color: #333; /* Texto em cinza escuro para contraste */
    font-weight: 500;
    line-height: 20px;
    font-size: 16px;
}









.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Centraliza as mensagens horizontalmente */

    /* Esconde a barra de rolagem no Firefox */
    scrollbar-width: none; 
    scroll-behavior: smooth;   /* 👈 adiciona transição suave */
    /* Esconde a barra de rolagem no Chrome, Edge, etc */
    &::-webkit-scrollbar {
        display: none;
    }
}



.message {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.bot-message .message-text {
    background-color: #f5f3f3; /* Cinza claro para mensagens do bot */
    border-radius: 1px;
    padding: 10px;
    padding-bottom: 10;
    max-width: 100%;
}

.user-message .message-text {
    background-color: #3d3d3d; /* Azul para mensagens do usuário */
    color: white;
    border-radius: 10px;
    padding: 10px;
    max-width: 70%;
    margin-left: auto; /* Alinha à direita */
    text-align: center; /* Alinha o texto à direita dentro do balão */
}

/* Ajuste global para elementos dentro das mensagens para evitar espaços extras */
.message-text, .message-bot {
    margin: 0; /* Remove margens */
    padding: 0; /* Remove paddings */
}


/* Estilo para cartões de oferta */
.offer-card {
    position: relative;
    background-color: #ffffff; /* Fundo branco para o cartão */
    border: 1px solid #e1e1e1; /* Borda sutil */
    border-radius: 5px; /* Bordas menos arredondadas para formato retangular */
    padding: 10px; /* Espaçamento interno */
    display: flex; /* Layout flexível para organizar imagem e conteúdo */
    align-items: center; /* Alinha itens verticalmente */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Sombra sutil para destaque */
    width: 100%; /* Largura ajustada para desktop */
}

.offer-image {
    width: 35%; /* Largura maior para a imagem */
    height: auto; /* Altura automática para manter a proporção */
    border-radius: 5px; /* Menos arredondado para forma retangular */
    margin-right: 15px; /* Espaço entre imagem e texto */
}

.offer-details {
    flex: 1; /* Ocupa o espaço restante */
    display: flex;
    flex-direction: column; /* Organiza o conteúdo em coluna */
}

.offer-title {
    font-weight: bold; /* Título em negrito */
    margin-bottom: 5px; /* Espaço abaixo do título */
}

.offer-url {
    padding: 8px 16px; /* Padding mais substancial para parecer um botão */
    background-color: #444444; /* Cor de fundo azul para o botão */
    color: white; /* Texto branco */
    text-decoration: none; /* Remove sublinhado */
    text-align: center; /* Centraliza o texto */
    border-radius: 4px; /* Bordas arredondadas para o botão */
    display: inline-block; /* Permite o ajuste de padding */
    margin-top: 10px; /* Espaço acima do botão */
    cursor: pointer; /* Cursor de ponteiro para indicar clicabilidade */
}



.offer-rank {
    background-color: #444444;
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-circular);
    font-size: 1rem;
    padding: calc(40px / 2 - 16px / 2) 8px calc(40px / 2 - 16px / 2) calc(40px / 2 - 16px / 2);
    line-height: 16px;
    color: #f0f0f0;
}

.offer-rank::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: calc(40px / 2) solid #444444;
    position: absolute;
    right: calc(40px / 2* -1);
    top: 0;
    border-top-width: 40px;
    border-left-width: 0;
    border-bottom-color: transparent;
    border-right-color: transparent;
}





@media (max-width: 768px) {
    .offer-card {
        flex-direction: column; /* Stack elements vertically on smaller screens */
    }

    .offer-image {
        width: 100%; /* Full width images on small screens */
        margin-bottom: 10px; /* Space between image and details */
    }

    .chat-form-initial{
        width: 95%;
    }

    
}

/* fim do estilo do card*/




.extra-button {
    background-color: #292929;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 20px;
}

.extra-button:hover {
    background-color: #111111;
}

.sugestoes-fixas-container {
    margin-top: 45px;
    margin-left: 40px; /* valor padrão para mobile */
}

@media (min-width: 768px) {
    .sugestoes-fixas-container {
        margin-left: 80px; /* valor para desktop */
    }
}

.suggestion-link {
    color: #0077cc;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    margin: 6px 0;
}

.suggestion-link:hover {
    color: #005999;
    text-decoration: underline;
}

.initial-options-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 75vh;
    text-align: center;
    
}


.initial-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
}

.initial-question {
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    width: 75%;
}

.suggestion-button {
    font-weight: bold;
    padding: 12px 20px;
    font-size: 14px;
    background-color: transparent;
    color: #444444;
    border: 2px solid #444444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-button:hover {
    background-color: #292929;
    color: white;
}




.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in {
    opacity: 0;
    display: flex !important;
    animation: fadeInAnim 0.6s ease-out forwards;
}

@keyframes fadeInAnim {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.fade-in-delayed {
    animation: fadeInAnim 0.6s ease-out forwards;
    pointer-events: auto;
}

.quick-sug{
    font: 10px;
    color: #16161685;
    padding-bottom: 15px;
    font-style: italic;
}


/* ----- TREND BUTTONS ESPECIAIS ----- */
.trend-button{
    display: flex;
    align-items: center;
    gap: 8px;                       /* espaço ícone-texto   */
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;               /* esconde brilho       */
    position: relative;
    transition: transform .25s ease;
}
.trend-button i{
    font-size: 18px;
    animation: pulse 2s infinite;   /* ícone pulsando       */
}
.trend-button:hover{
    transform: translateY(-2px) scale(1.03);
}

/* Dourado – best sellers */
.trend-gold{
    background: linear-gradient(135deg,#d4af37 0%,#ffd766 40%,#ffef9a 50%,#ffd766 60%,#d4af37 100%);
    color:#fff;
    box-shadow:0 0 12px rgba(255,215,0,.7),0 0 32px rgba(255,215,0,.4);
}

/* Rosé – ofertas para mulheres */
.trend-pink{
    background: linear-gradient(135deg,#ff5f6d 0%, #ffc371 100%);
    color:#fff;
    box-shadow:0 0 12px rgba(255,99,143,.45),0 0 32px rgba(255,99,143,.3);
}

/* Reflexo que “desliza” */
.trend-button::after{
    content:'';
    position:absolute;
    top:0;
    left:-75%;
    width:50%;
    height:100%;
    background:rgba(255,255,255,.3);
    transform:skewX(-20deg);
    transition:left .7s cubic-bezier(.4,0,.2,1);
    animation: shine 3s infinite;
}


/* Icone respirando */
@keyframes shine{
    0%   {left:-75%;}
    60%  {left:120%;}
    100% {left:120%;}
}

@keyframes pulse{
    0%,100%{ transform: scale(1);   opacity:1;   }
    50%   { transform: scale(1.15); opacity:0.65;}
}


/* — texto preto e borda sólida na cor dominante — */
.trend-gold{
    color:#000000;                                   /* texto preto */
    border:2px solid #b88a22;                     /* bordo ouro-escuro */
}
.trend-pink{
    color:#000;
    border:2px solid #cc3d65;                     /* borde rosé-escuro */
}

.trend-button span{
    text-shadow:0 0 4px rgba(255,255,255,0.6);
}


/* Animação da chama */
.flame-icon{
    font-size: 20px;              /* mesmo tamanho que antes */
    animation: flame 3s infinite ease-in-out;
    transform-origin: center;
    display:inline-block;
}

/* “Treme” levemente, varia o brilho e a cor */
@keyframes flame{
    0%{
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 3px rgba(24, 13, 0, 0.8));
        color:#1f1e1d;
    }
    40%{
        transform: translateY(-1px) scale(1.08);
        filter: drop-shadow(0 0 6px rgb(54, 38, 1));
        color:#161615;
    }
    70%{
        transform: translateY(0) scale(.95);
        filter: drop-shadow(0 0 4px rgba(32, 14, 2, 0.6));
        color:#201e1b;
    }
    100%{
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 3px rgba(27, 16, 3, 0.8));
        color:#1f1e1c;
    }
}

/* —— Badge “unread” —— */
/* —— Badge “unread” CENTRAL —— */
#unread-indicator{
    position: fixed;
    /* alinhar no centro horizontal */
    left: 50%;
    transform: translateX(-50%);   /* compensa 50 % da própria largura */

    /* distância vertical em relação ao rodapé  */
    bottom: 34px;                  /* ajuste se mudar a altura do input */

    width: 40px;
    height: 40px;
    border-radius: 50%;
    background:#e7562a;
    color:#fff;
    display:none;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:16px;
    box-shadow:0 0 8px rgba(0,0,0,.25);
    cursor:pointer;
    z-index:999;
    transition: transform .2s;
}
#unread-indicator:hover{
    transform: translateX(-50%) scale(1.1);  /* mantém centrado no hover */
}


/* Badge de preço dentro da seção de detalhes */
.offer-price-badge{
    display:inline-flex;        /* ou inline-block; ambos funcionam */
    align-self:flex-start;      /* impede ocupar 100% no flex-column */
    width:auto;                 /* deixa o navegador calcular */
    background:#1d4ba1;
    color:#fff;
    padding:4px 10px;
    margin-top:6px;
    font-weight:700;
    font-size:14px;
    border-radius:18px;
    box-shadow:0 0 6px rgba(0,0,0,.15);
    white-space:nowrap;         /* evita quebra interna */
}


.offer-price-ribbon{
    background:#ffd766;           /* dourado claro */
    color:#000;
    font-weight:700;
    padding:6px 10px;
    border-top:1px solid #e1e1e1; /* linha fina p/ separar da imagem */
    border-bottom-left-radius:5px;
    border-bottom-right-radius:5px;
    text-align:center;
}

.offer-prices{
    margin-top:4px;
    font-size:15px;
}
.offer-old-price{
    text-decoration: line-through;
    color:#999;
    margin-right:6px;
}
.offer-current-price{
    color:#1a78db;
    font-weight:700;
}


@media (max-width: 768px) {
    .message-avatar {
        display: none;
    }
    .suggestion-buttons {    
        width: 100%;
    }
}


input, textarea, select, button {
  font-size: 16px;
}