/* Importar Fontes Modernas */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@600;700&display=swap');

/* Estilos Gerais */
body {
    font-family: 'Roboto', sans-serif;
    color: #333333;
}

/* Estilos para a página de download */
.descargar2 {
    margin: 30px 0;
}

.header-descargar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    width: 80%;
    margin: 0 auto 2em auto;
    background-color: #f0f4f8;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-descargar img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.header-descargar h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    color: #333333;
    text-align: center;
    margin: 0;
}

/* Seção de Redirecionamento */
.redirect {
    background-color: #ffffff;
    border: 2px solid #e0e7ff;
    text-align: center;
    padding: 25px;
    margin-bottom: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.redirect h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: #4a5568;
    margin-bottom: 15px;
}

.redirect .loading img {
    width: 100px;
    height: 100px;
}

.redirect .notload a {
    color: #3182ce;
    text-decoration: underline;
    font-weight: 600;
}

/* Bloco de Informações do Aplicativo */
.provider_stats_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.provider_stats {
    width: 100%;
    max-width: 500px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background-color: #ffffff;
    padding: 20px;
}

.provider_logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.provider_logo img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.provider_logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #1a202c;
    text-decoration: none;
}

.provider_logo a:hover {
    color: #3182ce;
    text-decoration: underline;
}

.provider_overall {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centralizado */
    text-align: center;
    font-size: 18px;
    background-color: #f5f5f5;
    padding: 15px 0;
    border-radius: 5px;
    margin-bottom: 15px;
}

.provider_overall .oos {
    font-weight: 700;
    font-size: 20px;
    color: #2d3748;
}

.star-rating {
    display: flex;
    align-items: center;
}

.star-rating .star {
    font-size: 16px; /* Reduzido de 18px para 16px */
    color: gold;
    margin-right: 2px;
    position: relative; /* Adicionado para suporte ao half-star */
}

.star-rating .star.empty {
    color: #ccc; /* Cor para estrelas vazias */
}

.star-rating .star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: gold;
}

/* Estilos para o número de downloads */
.download-count {
    font-size: 16px;
    color: #4a5568;
    margin-top: 5px;
}

.provider_stats_row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.provider_stats_row_left div,
.provider_stats_row_right div {
    font-size: 16px;
    color: #4a5568;
}

.clear {
    clear: both;
}

/* Seção de Visita/Download */
.provider_visit {
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0;
}

/* Botões de Download */
a.visit {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    margin: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
a.visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Remover Animação de Pulsação */
a.visit {
    animation: none;
}

/* Estilos para os Ícones das Plataformas */
.platform-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Responsividade */
@media (max-width: 900px) {
    .header-descargar {
        width: 90%;
    }
    .provider_stats_row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .provider_stats_row {
        flex-direction: column;
        width: 100%;
    }
    a.visit {
        flex: 1 1 100%;
        justify-content: center;
    }
    .header-descargar {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .header-descargar img {
        width: 50px;
        height: 50px;
    }
    .header-descargar h1 {
        font-size: 22px;
        text-align: center;
    }
}

/* Botões Adicionais com Gradiente (Opcional) */
.button-container-cli {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    max-width: 600px;
    margin: 20px auto;
}

.gradient-button-cli {
    background: linear-gradient(90deg, #52c234 0%, #0f9b0f 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 45%;
}

.gradient-button-cli i.arrow-right {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    margin-left: 10px;
    transform: rotate(-45deg);
}

.gradient-button-cli span {
    flex-grow: 1;
}

@media (max-width: 600px) {
    .gradient-button-cli {
        flex: 1 1 100%;
    }
}

/* Container de Botões de Aplicativos */
.app-buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.provider_stats_wrapper {
    flex: 1 1 300px;
    max-width: 500px;
}

/* Estilo para campos com erro */
input.error {
    border: 2px solid #e53e3e; /* Vermelho */
    background-color: #fff5f5; /* Fundo levemente vermelho */
}

/* Efeitos de Foco */
input:focus {
    border: 2px solid #3182ce; /* Azul */
    outline: none;
    box-shadow: 0 0 8px rgba(49, 130, 206, 0.5); /* Glow */
}

/* Estilo para botões com acessibilidade */
a.visit:focus-visible, button:focus-visible {
    outline: 2px dashed #3182ce; /* Destaque acessível */
    outline-offset: 2px;
}

a.visit:active, button:active {
    transform: scale(0.98); /* Leve contração no clique */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Responsividade para dispositivos menores */
@media (max-width: 480px) {
    .provider_stats_row {
        padding: 10px;
        font-size: 14px;
    }
    .header-descargar h1 {
        font-size: 18px;
    }
}

/* Botão Cancelar Redirecionamento - Estilização */
#cancel-redirect {
    background-color: #FF6F61; /* Cor inicial */
    color: #FFFFFF; /* Cor do texto */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease; /* Transição suave */
}

#cancel-redirect:hover {
    background-color: #FF9671; /* Cor ao passar o mouse */
    color: #FFFFFF;
}

/* Botão quando alterado para "Continuar para o Download" */
#cancel-redirect.continue-download {
    background-color: #4CAF50; /* Cor verde */
    color: #FFFFFF; /* Cor do texto */
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

#cancel-redirect.continue-download:hover {
    background-color: #45A049; /* Cor verde mais escura no hover */
    color: #FFFFFF;
}

/* Centralizar o botão e os textos da área de redirecionamento */
.redirect-container {
    text-align: center; /* Centraliza tudo dentro da div */
    margin-top: -50px;
}

/* Ajustar o aviso de redirecionamento cancelado */
#message-container p {
    font-size: 14px; /* Ajusta o tamanho da fonte */
    color: red; /* Mantém o texto em vermelho */
    font-weight: bold;
    margin-top: 15px; /* Espaçamento superior */
    text-align: center; /* Centraliza o texto */
}

/* Centralizar o link de redirecionamento (clique aqui) */
#redirect-link {
    display: inline-block; /* Mantém o link como um bloco pequeno */
    margin-top: 10px; /* Espaçamento superior */
    font-size: 14px; /* Ajusta o tamanho da fonte */
    text-align: center;
}

/* Ajustar tamanho do texto do link "Se o redirecionamento não funcionar" */
#redirect-link {
    font-size: 12px; /* Reduz o tamanho da fonte */
    color: #007BFF; /* Mantém a cor azul padrão */
}

#redirect-link:after {
    content: ' (caso o botão não funcione)'; /* Mensagem opcional para instruções adicionais */
    font-size: 12px;
}

/* Ajustar o parágrafo inteiro, caso necessário */
.redirect-container p {
    font-size: 12px;
    color:
}

/* Estilos responsivos para dispositivos móveis */
@media (max-width: 768px) {
    /* Centralizar o botão */
    #cancel-redirect {
        width: 100%;
        max-width: 300px; /* Largura máxima para o botão */
        margin: 10px auto; /* Centraliza horizontalmente */
        display: block; /* Garante que seja um elemento em bloco */
        text-align: center;
    }

    /* Centralizar o texto */
    .redirect-container p {
        text-align: center; /* Centraliza os parágrafos */
        font-size: 14px; /* Ajusta o tamanho da fonte */
    }

    /* Ajustar o título */
    #downloadTitle {
        font-size: 18px; /* Reduz o tamanho do título */
        text-align: center; /* Centraliza o título */
    }

    /* Ajustar a imagem do aplicativo */
    #downloadThumb {
        display: block;
        margin: 10px auto;
        max-width: 80%; /* Garante que a imagem não ultrapasse a tela */
    }

    /* Ajustar o texto do link */
    #redirect-link {
        font-size: 12px; /* Reduz o tamanho da fonte */
    }
}

@media only screen and (max-width: 768px) {
    .redirect-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .redirect-container h1 {
        font-size: 18px; /* Reduz o tamanho do título em dispositivos menores */
        margin-bottom: 10px;
    }

    .redirect-container p {
        font-size: 14px; /* Reduz o tamanho dos textos explicativos */
        margin-bottom: 10px;
    }

    #cancel-redirect {
        width: auto;
        margin: 15px 0;
        padding: 10px 15px;
    }

    #message-container {
        font-size: 14px; /* Ajusta a mensagem de redirecionamento cancelado */
    }

    #redirect-link {
        font-size: 14px;
    }

    .provider_stats_wrapper {
        margin: 20px 0;
        padding: 10px;
        box-sizing: border-box;
        width: 100%; /* Para ocupar toda a largura em dispositivos menores */
    }
}

.loja-botoes-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .loja-botoes-wrap a {
    display: block;
  }
  
  .loja-botoes-wrap img {
    max-width: 180px;
    height: auto;
    transition: transform 0.2s ease;
  }
  
  .loja-botoes-wrap img:hover {
    transform: scale(1.05);
  }
  
  @media (max-width: 360px) {
    .loja-botoes-wrap img {
      max-width: 140px;
    }
  }
  