/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cor-primaria: #208e49; /* Vermelho principal */
    --cor-acao: #208e49; /* Vermelho para botões */
    --cor-secundaria: #000000; /* Preto para credibilidade */
    --cor-destaque: #208e49; /* Vermelho para destaque */
    --cor-texto: #333333; /* Preto suave para texto */
    --cor-fundo-claro: #ffffff; /* Fundo branco */
    --cor-borda: #e0e0e0; /* Cor de borda para comentários */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--cor-texto);
    font-weight: 400;
    background-color: #fff;
}

/* Seção Hero */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem 1rem;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.video-container {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    aspect-ratio: 9/16;
    position: relative;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    max-width: 800px;
    text-align: center;
    margin: 0 auto 10px;
}

.btn-doar {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--cor-acao);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto;
    text-align: center;
    animation: pulse 1.5s infinite;
}

.btn-doar:hover {
    background-color: #b80000;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Animação pulsante */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(184, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(184, 0, 0, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(184, 0, 0, 0.5);
    }
}


/* Seções */
section {
    padding: 3.5rem 1rem;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--cor-primaria);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Seção História */
.historia {
    background-color: #fff;
}

.historia-content {
    max-width: 800px;
    margin: 0 auto;
}

.historia-imagem {
    max-width: 500px;
    margin: 0 auto 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.historia-imagem img {
    width: 100%;
    height: auto;
    display: block;
}

.historia-texto {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
}

.historia .btn-doar {
    display: block;
    margin: 1.5rem auto;
    max-width: 250px;
    text-align: center;
}

/* Seção Urgência */
.urgencia {
    background-color: #f8f8f8;
}

.urgencia-content {
    max-width: 800px;
    margin: 0 auto;
}

.urgencia-texto h2 {
    color: var(--cor-destaque);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.urgencia-imagem {
    max-width: 450px;
    margin: 0 auto 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
}

.urgencia-imagem img {
    width: 100%;
    height: auto;
    display: block;
}

.urgencia-texto p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

/* Seção Realidade */
.realidade {
    background-color: #fff;
    padding-bottom: 1.5rem;
}

.realidade-content {
    max-width: 800px;
    margin: 0 auto;
}

.realidade-imagem {
    max-width: 450px;
    margin: 0 auto 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
}

.realidade-imagem img {
    width: 100%;
    height: auto;
    display: block;
}

.realidade-texto {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
}

.realidade-texto p {
    margin-bottom: 1.2rem;
}

.realidade-texto p:last-child {
    margin-bottom: 0.5rem;
}

/* Seção Doar */
.doar {
    background-color: #fff; /* Fundo branco */
    padding-top: 1rem;
    color: #262626; /* Texto escuro */
    animation: pulse-section 2s infinite;
}

.doar-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Animação pulsante suave para a seção */
@keyframes pulse-section {
    0% {
        box-shadow: 0 0 10px rgba(38, 38, 38, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(38, 38, 38, 0.3);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 10px rgba(38, 38, 38, 0.2);
        transform: scale(1);
    }
}


/* Botões de ação */
.botoes-acao {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px auto 30px;
    max-width: 600px;
    padding: 0 16px;
}

.btn-principal, .btn-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-principal {
    background-color: var(--cor-acao);
    color: white;
}

.btn-principal:hover {
    background-color: #d83b57;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-instagram i {
    margin-right: 8px;
    font-size: 16px;
}

/* Aviso de segurança */
.aviso-seguranca {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 0 16px;
}

.aviso-conteudo {
    display: flex;
    align-items: center;
    background-color: #fef9e7; /* Amarelo claro */
    border: 1px solid #f9e79f;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
}

.aviso-conteudo i {
    font-size: 18px;
    color: #f39c12;
    margin-right: 12px;
    flex-shrink: 0;
}

.aviso-conteudo p {
    font-size: 13px;
    color: #7f8c8d; /* Tom de cinza escuro */
    line-height: 1.5;
    margin: 0;
}

.aviso-conteudo a {
    color: #3897f0; /* Azul do Instagram */
    font-weight: 600;
    text-decoration: none;
}

.aviso-conteudo a:hover {
    text-decoration: underline;
}

.doar-texto {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--cor-acao);
    font-weight: 600;
}

/* Estilo dos comentários - Instagram Style */
.comentarios {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff; /* Fundo branco */
    padding: 0;
}

.comentario {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 16px;
    margin-bottom: 0;
    text-align: left;
    border-bottom: 1px solid #efefef; /* Linha mais clara */
    color: #262626; /* Texto escuro */
}

.comentario-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.comentario-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.comentario-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comentario-info {
    flex: 1;
}

.comentario-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0;
    color: #262626; /* Nome em preto */
}

.comentario-texto {
    font-size: 13px;
    line-height: 1.3;
    color: #262626; /* Texto em preto */
    margin-bottom: 0;
    margin-left: 0; /* Alinhado com o nome de usuário */
}

.comentario-acoes {
    position: absolute;
    right: 16px;
    top: 10px;
}

.comentario-acoes .curtir {
    padding: 4px 0;
    cursor: pointer;
}

.comentario-acoes i {
    font-size: 12px;
    color: #262626;
}

.comentario-meta {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #8e8e8e;
    gap: 8px;
    margin-top: 4px;
}

.comentario-meta span {
    cursor: pointer;
}

.mais-opcoes {
    margin-left: auto;
}

/* Estilo para o botão de Ver/Ocultar respostas */
.comentario-respostas-toggle {
    margin-top: 4px;
    font-size: 12px;
    color: #8e8e8e;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding-bottom: 2px;
}

.toggle-btn {
    font-weight: 400;
}

/* Respostas aos comentários */
.comentario-respostas-conteudo {
    margin-top: 2px;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.comentario-respostas-conteudo.visible {
    max-height: 1000px; /* Valor alto o suficiente para acomodar as respostas */
    transition: max-height 0.5s ease-in;
}

.comentario {
    position: relative; /* Para posicionar o coração */
}

.comentario-resposta {
    margin-top: 8px;
    border-left: 1px solid #dbdbdb;
    padding-left: 8px;
}

.comentario-resposta .comentario-header {
    margin-bottom: 2px;
}

.comentario-resposta .comentario-avatar {
    width: 20px;
    height: 20px;
}

.comentario-resposta .comentario-texto {
    margin-left: 28px;
    font-size: 13px;
}

/* Animação de carregamento */
.loader {
    width: 12px;
    height: 12px;
    border: 2px solid #8e8e8e;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none; /* Inicialmente oculto */
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-left: 6px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.opcoes-doacao {
    margin-top: 3rem;
}

.opcoes-doacao h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--cor-primaria);
    font-weight: 600;
}

.doar-opcoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.opcao {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid var(--cor-primaria);
}

.opcao:hover {
    transform: translateY(-10px);
}

.opcao i {
    font-size: 3rem;
    color: var(--cor-primaria);
    margin-bottom: 1rem;
}

.opcao h3 {
    color: var(--cor-secundaria);
    margin-bottom: 1rem;
    font-weight: 600;
}

.opcao p {
    color: var(--cor-texto);
    line-height: 1.6;
    font-weight: 400;
}

/* Footer */
footer {
    background-color: var(--cor-secundaria);
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

    .video-container {
        max-width: 280px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn-doar {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .botoes-acao {
        flex-direction: column;
        gap: 12px;
    }

    /* Ajustes para a barra de progresso em mobile */
    .valores-container {
        flex-direction: column;
        gap: 1rem;
    }

    .valor-arrecadado .valor-numero,
    .valor-meta .valor-numero {
        font-size: 1.5rem;
    }

    .barra-progresso {
        height: 35px;
    }

    .porcentagem {
        font-size: 1rem;
    }

    /* Ajustes para os comentários em mobile */
    .comentario {
        padding: 8px 0;
    }

    .comentario-header {
        margin-bottom: 4px;
    }

    .comentario-texto {
        font-size: 12px;
    }

    .comentario-meta {
        font-size: 10px;
    }

    .comentario-respostas-toggle {
        font-size: 11px;
    }

    .comentario-resposta {
        padding-left: 6px;
    }

    .comentario-resposta .comentario-texto {
        font-size: 12px;
        margin-left: 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .video-container {
        max-width: 240px;
    }

    .progresso h2 {
        font-size: 1.5rem;
    }

    .valor-arrecadado .valor-numero,
    .valor-meta .valor-numero {
        font-size: 1.3rem;
    }

    .barra-progresso {
        height: 30px;
    }

    .porcentagem {
        font-size: 0.9rem;
    }
}

/* Seção Progresso */
.progresso {
    background-color: var(--cor-fundo-claro);
    padding: 3.5rem 1rem;
}

.progresso-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.progresso h2 {
    color: var(--cor-primaria);
    margin-bottom: 2rem;
}

.valores-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.valor-arrecadado, .valor-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.valor-label {
    font-size: 1rem;
    color: var(--cor-texto);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.valor-arrecadado .valor-numero {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cor-destaque);
}

.valor-meta .valor-numero {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cor-primaria);
}

.barra-progresso-container {
    margin-bottom: 1.5rem;
}

.barra-progresso {
    height: 40px;
    background-color: #e0e6ed;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.barra-progresso-fill {
    width: 0%;
    height: 100%;
    background-color: var(--cor-primaria);
    border-radius: 50px;
    position: relative;
    transition: width 1.2s ease-in-out;
    overflow: hidden;
}

.porcentagem {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.agradecimento {
    font-size: 1.1rem;
    color: var(--cor-texto);
    line-height: 1.6;
    margin-top: 1rem;
}

/* Modal de Doação */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.modal h2 {
    color: var(--cor-primaria);
    text-align: center;
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
    padding-right: 30px; /* Espaço para o botão de fechar em todos os dispositivos */
    padding-left: 30px; /* Equilíbrio para centralização */
    line-height: 1.2; /* Controle de altura da linha */
}

.modal-subtitulo {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1rem;
}

.valores-doacao {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}

.valor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.5rem;
    background-color: #f3f4f6;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.valor-btn:hover, .valor-btn:focus {
    background-color: var(--cor-primaria);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.valor-btn.destacado {
    background-color: var(--cor-destaque);
    transform: scale(1.05);
    position: relative;
}

.valor-btn.destacado:after {
    content: "Popular";
    position: absolute;
    top: -10px;
    font-size: 10px;
    background-color: var(--cor-destaque);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding-top: 1.2rem;
    text-align: center;
}

.modal-footer p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.metodos-pagamento {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.metodos-pagamento i {
    font-size: 1.5rem;
    color: #777;
    display: none; /* Esconde todos os ícones */
}

.metodos-pagamento .fa-pix {
    display: inline-block; /* Mostra apenas o ícone do Pix */
}

@media (max-width: 480px) {
    .valores-doacao {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .valor-btn {
        padding: 0.7rem 0.3rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 20% auto;
    }
    
    .modal h2 {
        font-size: 1.4rem; /* Tamanho ajustado */
        padding-right: 40px; 
        padding-left: 40px;
        text-align: center;
        margin-top: 10px;
        line-height: 1.3; /* Aumentado para melhor espaçamento entre linhas */
        max-width: 100%;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    .modal-subtitulo {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Media query para tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .modal h2 {
        font-size: 1.5rem; /* Ajustado para melhor visualização */
        padding-right: 40px;
        padding-left: 40px;
        line-height: 1.2;
    }
    
    .modal-content {
        margin: 15% auto;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 374px) {
    .modal h2 {
        font-size: 1.2rem; /* Menor para telas pequenas */
        padding-right: 35px;
        padding-left: 35px;
        line-height: 1.3;
        margin-top: 5px; /* Menos espaço superior */
    }
    
    .modal-subtitulo {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        margin-top: 0.5rem; /* Menos espaço superior */
    }
    
    .close-modal {
        top: 8px;
        right: 10px;
        font-size: 22px;
    }
    
    .modal-content {
        padding: 1.2rem;
    }
}

.btn-doar-segundo {
    display: block;
    margin: 0 auto;
    text-align: center;
}

#btn-doar-urgencia {
    display: block;
    margin: 1.5rem auto 0;
    max-width: 250px; /* Aumentando a largura máxima */
    white-space: nowrap; /* Impedir quebra de linha */
}

/* Timer de contagem regressiva */
.timer-container {
    margin: 1rem 0;
    padding: 0.5rem 0;
    background: transparent;
    color: #fff;
    text-align: center;
    box-shadow: none;
    position: relative;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.timer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-titulo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    color: #fff;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-item span:first-child {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    background: var(--cor-acao);
    border-radius: 6px;
    padding: 0.4rem;
    min-width: 55px;
    display: inline-block;
}

.countdown-label {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.timer-mensagem {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0.5rem 0;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .timer-container {
        padding: 1.2rem;
    }
    
    .countdown {
        gap: 0.6rem;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-item span:first-child {
        font-size: 1.8rem;
        min-width: 45px;
    }
    
    .timer-titulo {
        font-size: 1rem;
    }
}

.progresso .btn-doar {
    display: block;
    margin: 1.5rem auto;
    max-width: 250px;
    text-align: center;
} 