/* =====================================================
   CSS PARA A PÁGINA DE DOAÇÕES (apoie.css)
   ===================================================== */

/* --- Configurações Globais e Variáveis --- */
:root {
    --cor-fundo: #f8f9fa;
    --cor-fundo-card: #ffffff;
    --cor-texto-principal: #212529;
    --cor-texto-secundario: #6c757d;
    --cor-link: #0056b3;
    --cor-borda: #dee2e6;
    --cor-sombra: rgba(0, 0, 0, 0.07);
    --fonte-titulo: 'Montserrat', sans-serif;
    --fonte-corpo: 'Roboto', sans-serif;
    --cor-pix-button: #00c767; /* Verde PIX */
    --cor-paypal-button: #0070ba; /* Azul PayPal */
    --cor-whatsapp-button: #25D366; /* Verde WhatsApp */
    --cor-popup-bg: rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--fonte-corpo);
    line-height: 1.6;
    color: var(--cor-texto-principal);
    background-color: var(--cor-fundo);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh; /* Garante que o body ocupa a altura total */
    display: flex;
    flex-direction: column;
}

/* --- Cabeçalho com a Logo --- */
.site-header {
    background-color: #121212;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.logo {
    max-height: 70px;
    width: auto;
}

/* --- Conteúdo Principal da Página de Doação --- */
.apoie-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--cor-fundo-card);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--cor-sombra);
    flex-grow: 1; /* Permite que o container cresça e ocupe o espaço disponível */
}

/* --- Seção Hero (Topo com Foto e Títulos) --- */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--cor-borda);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* Imagem redonda */
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid var(--cor-pix-button); /* Borda destacada */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-family: var(--fonte-titulo);
    font-size: 2.8rem;
    color: var(--cor-texto-principal);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--cor-texto-secundario);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Seção de Conteúdo e Botões de Doação --- */
.content-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.donation-options {
    display: flex;
    flex-wrap: wrap; /* Para quebrar em linhas menores telas */
    justify-content: center;
    gap: 20px; /* Espaço entre os botões */
    margin: 40px 0;
}

.apoie-button {
    display: inline-flex; /* Para alinhar ícone e texto se houver */
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
}

.apoie-button:hover {
    filter: brightness(1.1); /* Efeito de brilho ao passar o mouse */
    transform: translateY(-2px);
}

.pix-button {
    background-color: var(--cor-pix-button);
}



.paypal-button {
    background-color: var(--cor-paypal-button);
}

.thank-you-message {
    text-align: center;
    font-size: 1.1rem;
    color: var(--cor-texto-principal);
    margin-top: 30px;
    font-weight: 500;
}

/* --- Estilos do Popup PIX --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cor-popup-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--cor-fundo-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.popup-overlay.is-visible .popup-content {
    transform: translateY(0);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--cor-texto-secundario);
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.close-button::before {
    content: '×'; /* Caractere 'X' para fechar */
}

.close-button:hover {
    color: var(--cor-texto-principal);
}

.popup-title {
    font-family: var(--fonte-titulo);
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--cor-texto-principal);
}

.popup-description, .popup-footer {
    font-size: 1rem;
    color: var(--cor-texto-secundario);
    margin-bottom: 20px;
}

.pix-info {
    background-color: var(--cor-fundo);
    border: 1px solid var(--cor-borda);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    word-break: break-all; /* Quebra texto longo do PIX */
}

#pix-key {
    font-family: monospace; /* Fonte monoespaçada para a chave PIX */
    font-size: 1.1rem;
    color: var(--cor-texto-principal);
    flex-grow: 1;
    text-align: left;
    margin-right: 10px;
    user-select: all; /* Permite seleção fácil */

        /* 1. Impede que o texto quebre em várias linhas */
        white-space: nowrap;
  
        /* 2. Esconde o texto que ultrapassa o limite do elemento */
        overflow: hidden;
      
        /* 3. Adiciona "..." no final do texto cortado */
        text-overflow: ellipsis;
      
        /* 4. Define uma largura máxima (aprox. 20 caracteres) */
        /* 'ch' é uma unidade de medida baseada na largura do caractere '0' */
        max-width: 30ch; 
      
        /* Bônus: Garante que o elemento se alinhe bem com textos ou ícones ao lado */
        display: inline-block;
        vertical-align: middle; 
}

.copy-button {
    background-color: var(--cor-texto-principal);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}


.copy-button:hover {
    background-color: #333;
}

.copy-button img {
    width: 18px;
    height: 18px;
    display: block; /* Remove espaço extra abaixo da imagem */
    filter: invert(1); /* Deixa o ícone branco */
}

.copy-button #ok-check {
    filter: initial !important; 
}

.whatsapp-button {
    background-color: var(--cor-whatsapp-button);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.whatsapp-button:hover {
    background-color: #1DA851;
}

.whatsapp-button img {
    width: 20px;
    height: 20px;
    display: block;
    filter: invert(1); /* Deixa o ícone branco */
}


/* --- Acessibilidade e Responsividade --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--cor-link);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 768px) {

    .content-section p {
        text-align: justify !important;
    }

    .apoie-container {
        margin: 20px auto;
        padding: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .donation-options {
        flex-direction: column;
        align-items: center;
    }

    .apoie-button {
        width: 90%;
        max-width: 300px;
    }

    .popup-content {
        padding: 20px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    #pix-key {
        font-size: 0.9rem;
    }

    .copy-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .apoie-container {
        padding: 15px;
    }

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

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

    .profile-image {
        width: 120px;
        height: 120px;
    }
}