/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #000; /* Fundo preto total */
    overflow-x: hidden;
}

/* --- Container do Menu --- */
.sidebar-container {
    position: fixed;
    top: 0;
    left: -250px; /* Esconde a parte escura inicialmente */
    height: 100vh;
    display: flex;
    transition: left 0.4s ease;
    z-index: 1000;
    /* TRUQUE: pointer-events: none faz com que o container "vazio" 
       não bloqueie cliques na página. */
    pointer-events: none; 
}

/* Quando o menu está ativo (aberto) */
.sidebar-container.active {
    left: 0;
    /* Reativa os cliques quando o menu abre para poder clicar nos links */
    pointer-events: auto; 
}

/* --- Parte Escura do Menu (Conteúdo) --- */
.menu-content {
    width: 250px;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: #fff;
    height: 100vh;
    /* Garante que o menu cinza seja sempre clicável */
    pointer-events: auto; 
}

/* Estilo do Logo (IMAGEM) */
.logo-area {
    margin-bottom: 30px;
    text-align: center;
}

.logo-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Links de Navegação */
.nav-links {
    list-style: none;
    flex-grow: 1;
    padding-top: 20px;
}

.nav-links li {
    margin-bottom: 5px; /* Reduzi um pouco a margem externa pois agora tem padding interno */
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    display: block;
    
    /* ADIÇÕES PARA O EFEITO VISUAL: */
    padding: 6px 15px; /* Espaço interno para criar o formato do botão */
    border-radius: 8px; /* Bordas arredondadas igual ao exemplo */
    transition: all 0.2s ease; /* Suaviza a cor e o fundo */
}

.nav-links a:hover {
    color: #b1b1b1; /* Mantém seu texto amarelo */
    
    /* O EFEITO DE FUNDO: */
    background-color: rgba(255, 255, 255, 0.1); /* Branco com 10% de opacidade (transparente) */
}
/* Links de Login/Cadastro */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-links a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #b1b1b1;
}

/* --- Faixa Marrom (Toggle/Botão) --- */
.toggle-strip {
    width: 40px;
    background-color: #8B4513; /* Marrom no Desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    cursor: pointer;
    height: 100vh; /* Ocupa altura total no desktop */
    
    /* O botão precisa ser clicável (sobrescreve o pointer-events: none do pai) */
    pointer-events: auto; 
}

.menu-icon {
    font-size: 40px !important;
    color: #000;
}

/* --- Conteúdo Principal --- */
.main-content {
    margin-left: 60px;
    min-height: 100vh;
    transition: margin-left 0.4s ease;
}

/* =========================================
   RESPONSIVIDADE (CELULAR / TABLET)
   ========================================= */
@media (max-width: 768px) {
    
    /* CORREÇÃO AQUI: */
    .sidebar-container {
        /* Impede que os itens (o botão) estiquem até o fim da tela */
        align-items: flex-start; 
    }

    .toggle-strip {
        background-color: transparent !important; /* Força a transparência */
        width: auto;
        height: auto; /* Altura automática (apenas o tamanho do ícone) */
        padding: 15px;
        border: none; /* Garante que não tenha bordas */
    }

    .menu-icon {
        color: #8B4513; /* Amarelo */
        font-size: 35px !important;
        /* Sombra para garantir que ele apareça sobre qualquer fundo */
        filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.8)); 
    }

    /* Conteúdo ocupa a tela toda */
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
}
/* --- Estilos Gerais Adicionais --- */
.container {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

h1, h2, h3 {
    color: #e0e0e0;
    margin-bottom: 20px;
}

/* --- Formulários Modernos --- */
.form-box {
    background: linear-gradient(145deg, #1f1f1f, #141414);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    max-width: 500px;
    margin: 0 auto 50px auto;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: #8B4513;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* --- Captcha Estilizado --- */
.captcha-box {
    background-color: #2a2a2a;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    border-left: 4px solid #8B4513;
}

.captcha-question {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

/* --- Botões --- */
.btn-submit, .btn-action {
    background: linear-gradient(90deg, #8B4513, #A0522D);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-submit:hover, .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}

.btn-full { width: 100%; }

/* --- Cards de Festividades --- */
.festividade-card {
    background: linear-gradient(160deg, #222 0%, #111 100%);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
}

.festividade-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-bottom: 4px solid #8B4513;
}

.festividade-content {
    padding: 25px;
}

.festividade-date {
    background-color: #8B4513;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.festividade-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.festividade-desc {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

/* --- Área de Comentários --- */
.comments-section {
    background-color: #0f0f0f;
    padding: 20px;
    border-top: 1px solid #333;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #8B4513;
}

.comment-body {
    flex: 1;
}

.comment-user {
    color: #8B4513;
    font-weight: bold;
    font-size: 14px;
}

.comment-text {
    color: #ddd;
    font-size: 14px;
    margin-top: 4px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.comment-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #444;
    padding: 10px;
    color: #fff;
    border-radius: 20px;
}

/* --- Status de Login --- */
.user-status {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}
.user-avatar-mini {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}

/* --- Estilos para Respostas de Comentários --- */

/* Recuo para as respostas */
.replies-container {
    margin-left: 30px; /* Reduzi um pouco para caber mais níveis */
    border-left: 2px solid #333;
    padding-left: 10px;
    margin-top: 10px;
    /* Se quiser limitar a profundidade visualmente, descomente abaixo: */
    /* overflow-x: auto; */ 
}
@media (max-width: 600px) {
    .replies-container {
        margin-left: 15px; 
        padding-left: 8px;
    }
}

/* Link/Botão de Responder */
.btn-reply {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    margin-top: 5px;
    text-decoration: underline;
    padding: 0;
}
.btn-reply:hover {
    color: #8B4513;
}

/* Formulário de resposta (inicialmente oculto) */
.reply-form-container {
    display: none; /* Escondido por padrão */
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* Ajuste no formulário de resposta para ficar menor */
.reply-input {
    width: 100%;
    background: #000;
    border: 1px solid #444;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
}

/* =========================================
   CORREÇÃO DE RESPONSIVIDADE (MOBILE)
   ========================================= */

/* Dispositivos móveis (celulares) */
@media (max-width: 600px) {
    
    /* CORREÇÃO ERRO 1: Formulário de Data e Hora */
    /* Transforma a linha que segura data/hora em coluna */
    .row-responsive {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Garante que os inputs ocupem 100% da largura */
    .row-responsive .form-group {
        width: 100%;
        margin-right: 0;
    }

    /* CORREÇÃO ERRO 2: Botão de Comentário cortado */
    /* Empilha o campo de texto e o botão de enviar */
    .comment-form {
        flex-direction: column;
        align-items: stretch; /* Estica os itens */
    }

    .comment-input {
        width: 100%;
        margin-bottom: 10px; /* Espaço entre input e botão */
    }

    .comment-form .btn-submit {
        width: 100%; /* Botão ocupa toda a largura */
        padding: 10px;
    }
    
    /* Ajuste extra para o card não vazar */
    .festividade-card {
        width: 100%;
        max-width: 100vw; /* Garante que não passe da largura da visão */
        box-sizing: border-box;
    }
}

/* --- Status Online --- */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc; /* Offline (cinza) */
    border-radius: 50%;
    margin-left: 5px;
    border: 1px solid #000;
}

.status-online {
    background-color: #00ff00; /* Verde neon */
    box-shadow: 0 0 5px #00ff00;
}

/* O nome do usuário vira um botão clicável */
.user-link {
    cursor: pointer;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}
.user-link:hover {
    color: #8B4513;
    text-decoration: underline;
}

/* --- Janela de Chat Flutuante --- */
.chat-window {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 320px;
    height: 400px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-top: 4px solid #8B4513;
    border-radius: 10px 10px 0 0;
    display: none; /* Escondido por padrão */
    flex-direction: column;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
    z-index: 2000;
    font-family: Arial, sans-serif;
}

.chat-header {
    padding: 10px;
    background: linear-gradient(90deg, #222, #111);
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #333;
    background-color: #111;
    display: flex;
    gap: 5px;
}

/* Balões de Mensagem */
.msg-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.msg-me {
    align-self: flex-end;
    background-color: #8B4513;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.msg-other {
    align-self: flex-start;
    background-color: #333;
    color: #ddd;
    border-bottom-left-radius: 2px;
}

.msg-time {
    font-size: 9px;
    opacity: 0.6;
    display: block;
    text-align: right;
    margin-top: 3px;
}

.close-chat {
    color: #888;
    cursor: pointer;
    font-weight: bold;
}
.close-chat:hover { color: #fff; }

/* Mobile: Chat ocupa tela toda */
@media (max-width: 600px) {
    .chat-window {
        width: 100%;
        height: 100vh;
        right: 0;
        border-radius: 0;
    }
}

/* --- SINO DE NOTIFICAÇÃO --- */
.notification-wrapper {
    position: relative;
    cursor: pointer;
    margin-right: 15px; /* Espaço entre o sino e a foto */
    display: flex;
    align-items: center;
}

.notification-icon {
    color: #fff;
    font-size: 28px !important; /* Tamanho do sino */
    transition: color 0.3s;
}

.notification-icon:hover {
    color: #ffd700; /* Dourado ao passar o mouse */
}

/* Bolinha vermelha com número */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    border: 2px solid #1a1a1a; /* Borda para separar do fundo */
    display: none; /* Escondido se for 0 */
}

/* Ajuste no container do usuário para alinhar sino e foto */
.user-status {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza tudo */
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* =========================================
   CORREÇÃO DE ERROS VISUAIS (RESPONSIVIDADE)
   ========================================= */

/* Ajuste para inputs não cortarem (Erro 1) */
.form-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* Garante que padding não estoure a largura */
    padding: 20px;
}

/* Ajuste para botões não vazarem do card (Erro 2) */
.festividade-card {
    position: relative;
    overflow: hidden; /* Corta o que passar */
    width: 100%;
}

/* Em telas pequenas (Celular) */
@media (max-width: 600px) {
    /* Corrige Data e Hora lado a lado no celular */
    .row-responsive {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .row-responsive .form-group {
        width: 100%;
    }

    /* Corrige botão saindo da tela */
    .btn-submit, .btn-action {
        width: 100%; /* Botão ocupa largura total */
        box-sizing: border-box;
        text-align: center;
    }
    
    /* Garante que o input de comentário não empurre o botão pra fora */
    .comment-form {
        flex-direction: column;
        width: 100%;
    }
    
    .comment-input {
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
}

/* --- Dropdown de Notificações (Lista de Conversas) --- */
.notification-dropdown {
    position: absolute;
    top: 100%; /* Logo abaixo do sino */
    left: 0;
    width: 220px;
    background-color: #1a1a1a;
    border: 1px solid #8B4513;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.9);
    display: none; /* Escondido inicialmente */
    flex-direction: column;
    z-index: 3000;
    overflow: hidden;
}

.notif-item {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #fff;
}

.notif-item:hover {
    background-color: #333;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #8B4513;
}

.notif-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.notif-count {
    font-size: 10px;
    color: #8B4513;
    font-weight: bold;
}

/* --- Formulários de Login e Cadastro --- */
.form-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #000; /* Garante fundo preto */
}

.form-box {
    background: linear-gradient(145deg, #1f1f1f, #141414);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 1px solid #333;
    
    /* AQUI ESTÁ A CORREÇÃO DO TAMANHO */
    width: 100%;
    max-width: 400px; /* Trava a largura máxima */
    
    color: #fff;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
}

.form-control:focus {
    border-color: #8B4513;
}

.btn-full {
    width: 100%;
    background: linear-gradient(90deg, #8B4513, #A0522D);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    transition: transform 0.2s;
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}
/* --- Estilização do Botão de Upload de Arquivo --- */

/* Ajusta o texto "Nenhum arquivo escolhido" para ficar claro */
input[type="file"] {
    color: #bbb; 
    cursor: pointer;
}

/* Estiliza o botão propriamente dito (Padrão Moderno) */
input[type="file"]::file-selector-button {
    background-color: #1a1a1a;    /* Fundo escuro */
    color: #fff;                  /* Texto branco */
    border: 1px solid #8B4513;    /* Borda Laranja */
    padding: 8px 16px;            /* Espaçamento interno */
    margin-right: 15px;           /* Espaço entre o botão e o texto */
    border-radius: 5px;           /* Bordas arredondadas */
    cursor: pointer;              /* Mãozinha ao passar o mouse */
    font-weight: bold;
    transition: all 0.3s ease;    /* Animação suave */
}

/* Efeito ao passar o mouse sobre o botão */
input[type="file"]::file-selector-button:hover {
    background-color: #8B4513;    /* Fundo vira Laranja */
    color: #fff;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5); /* Brilho leve */
}

/* Suporte para navegadores baseados em WebKit (Chrome, Edge, Safari antigos) */
input[type="file"]::-webkit-file-upload-button {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #8B4513;
    padding: 8px 16px;
    margin-right: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #8B4513;
    color: #fff;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}
/* --- Hero Section (Texto de Destaque da Home) --- */
.hero-box {
    background: linear-gradient(135deg, #1f1f1f 0%, #111 100%);
    border-left: 6px solid #8B4513; /* Linha laranja vertical */
    padding: 40px;
    border-radius: 0 15px 15px 0; /* Arredondado apenas na direita */
    margin-bottom: 50px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Efeito decorativo (aspas gigantes transparentes) */
.hero-box::before {
    content: 'LP';
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 150px;
    font-weight: bold;
    color: rgba(139, 69, 19, 0.05); /* Marca d'água sutil */
    font-family: serif;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1; /* Fica acima da marca d'água */
}

.hero-box2 {
    background: linear-gradient(135deg, #1f1f1f 0%, #111 100%);
    border-left: 6px solid #8B4513; /* Linha laranja vertical */
    padding: 40px;
    border-radius: 0 15px 15px 0; /* Arredondado apenas na direita */
    margin-bottom: 50px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Efeito decorativo (aspas gigantes transparentes) */
.hero-box2::before {
    content: 'JESUS';
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 150px;
    font-weight: bold;
    color: rgba(139, 69, 19, 0.05); /* Marca d'água sutil */
    font-family: serif;
    z-index: 0;
    pointer-events: none;
}

.hero-content2 {
    position: relative;
    z-index: 1; /* Fica acima da marca d'água */
}


.hero-title {
    color: #8B4513;
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text {
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8; /* Espaçamento para leitura agradável */
    text-align: justify;
}

.hero-text strong {
    color: #fff;
    font-weight: bold;
}

/* Link de chamada para ação */
.hero-link {
    display: inline-block;
    margin-top: 20px;
    color: #8B4513;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #8B4513;
    transition: color 0.3s;
}

.hero-link:hover {
    color: #ffaa00;
    border-color: #ffaa00;
}

/* Responsividade para o Hero */
@media (max-width: 600px) {
    .hero-box {
        padding: 25px;
        border-radius: 10px;
        border-left: 4px solid #8B4513;
    }
    .hero-text {
        font-size: 15px;
        text-align: left;
    }
}

/* --- Modal de Termos --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #8B4513;
    max-width: 600px;
    color: #fff;
    position: relative;
    text-align: left;
}
.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #8B4513;
}
.termos-lista li { margin-bottom: 10px; line-height: 1.5; color: #ccc; }

/* --- Admin Panel --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #111;
}
.admin-table th, .admin-table td {
    border: 1px solid #333;
    padding: 12px;
    text-align: left;
    color: #ddd;
}
.admin-table th { background: #8B4513; color: #fff; }
.btn-approve { background: #2ecc71; color: white; padding: 5px 10px; text-decoration: none; border-radius: 4px; font-size: 12px; }
.btn-reject { background: #e74c3c; color: white; padding: 5px 10px; text-decoration: none; border-radius: 4px; font-size: 12px; }

/* --- Galeria de Fotos --- */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.album-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
}
.album-card:hover { transform: translateY(-5px); border-color: #8B4513; }
.album-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.album-info { padding: 15px; }
.album-title { color: #fff; font-size: 18px; margin-bottom: 5px; }
.album-meta { font-size: 12px; color: #666; }

/* --- Página Interna do Álbum --- */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s;
}
.photo-item img:hover { opacity: 0.8; }

/* --- Comentários nos Álbuns --- */
.album-card {
    display: flex;
    flex-direction: column;
    /* Removemos altura fixa se houver, para o card crescer com os comentários */
    height: auto; 
    background: #111;
    border: 1px solid #333;
    margin-bottom: 20px; /* Espaço extra abaixo se a grid quebrar */
}

.album-comments-wrapper {
    background-color: #0f0f0f;
    border-top: 1px solid #333;
    padding: 15px;
    margin-top: auto; /* Empurra para o fundo */
}

.album-comments-list {
    max-height: 150px; /* Altura máxima da lista de comentários */
    overflow-y: auto;  /* Barra de rolagem se passar da altura */
    margin-bottom: 10px;
    padding-right: 5px;
}

/* Estilização da barra de rolagem fina para ficar moderno */
.album-comments-list::-webkit-scrollbar {
    width: 5px;
}
.album-comments-list::-webkit-scrollbar-track {
    background: #111;
}
.album-comments-list::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 3px;
}

/* --- Estilo para Cards de Fotos com Comentários --- */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Aumentei um pouco para caber o chat */
    gap: 20px;
}

.photo-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-img-container {
    width: 100%;
    height: 250px; /* Altura fixa para a imagem */
    overflow: hidden;
    background-color: #000;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostra a foto inteira sem cortar */
    transition: transform 0.3s;
}

.photo-img:hover {
    transform: scale(1.05);
}

/* Área de Comentários da Foto (Igual ao do Álbum) */
.photo-comments-wrapper {
    background-color: #0f0f0f;
    border-top: 1px solid #333;
    padding: 10px;
    flex: 1; /* Ocupa o resto do espaço */
    display: flex;
    flex-direction: column;
}

.photo-comments-list {
    height: 120px; /* Altura fixa para a lista */
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
    border-bottom: 1px solid #222;
}

/* Scrollbar estilizada */
.photo-comments-list::-webkit-scrollbar { width: 4px; }
.photo-comments-list::-webkit-scrollbar-track { background: #000; }
.photo-comments-list::-webkit-scrollbar-thumb { background: #8B4513; border-radius: 2px; }

.comment-mini-item {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.3;
}
.comment-mini-user { color: #8B4513; font-weight: bold; margin-right: 5px; }
.comment-mini-text { color: #ccc; }

/* --- Seção de Vídeo da Home --- */
.video-section {
    background: linear-gradient(160deg, #1a1a1a, #000);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho laranja suave atrás do vídeo */
.video-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.3); /* Glow Laranja */
    border: 2px solid #8B4513;
    overflow: hidden;
    background: #000;
}

video.home-video {
    width: 100%;
    height: auto;
    display: block;
    
}

/* Área de comentários do vídeo */
.video-comments-container {
    max-width: 800px;
    margin: 20px auto 0 auto;
    text-align: left;
    background-color: #0f0f0f;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #222;
    
}

.video-comments-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px;
    
}

/* Scrollbar estilizada */
.video-comments-list::-webkit-scrollbar { width: 5px; }
.video-comments-list::-webkit-scrollbar-track { background: #111; }
.video-comments-list::-webkit-scrollbar-thumb { background: #8B4513; border-radius: 3px; }

.v-comment-item {
    border-bottom: 1px solid #222;
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    gap: 10px;
}
.v-comment-avatar {
    width: 30px; height: 30px; 
    border-radius: 50%; 
    border: 1px solid #8B4513;
}

/* --- Estilos para Expandir/Encolher Comentários --- */

/* Cabeçalho clicável (Título + Seta) */
.video-comments-header {
    display: flex;
    justify-content: space-between; /* Texto na esquerda, seta na direita */
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.video-comments-header:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Leve destaque ao passar o mouse */
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
}

/* Ícone da Seta */
.arrow-icon {
    color: #8B4513; /* Cor Laranja */
    font-size: 24px;
    transition: transform 0.4s ease; /* Animação de rotação */
}

/* Classe para girar a seta quando aberto */
.arrow-icon.rotate {
    transform: rotate(180deg); /* Vira para cima */
}

/* Lista de Comentários (Estado Base) */
.video-comments-list {
    overflow: hidden; /* Esconde o que passar da altura */
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin 0.5s;
}

/* Estado Encolhido (Padrão) */
.video-comments-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

/* Estado Expandido */
.video-comments-list.expanded {
    max-height: 300px; /* Altura máxima quando aberto */
    opacity: 1;
    margin-bottom: 15px;
    overflow-y: auto; /* Barra de rolagem se tiver muitos comentários */
}

/* --- Aviso Estilizado (Modal Moderno) --- */
.custom-alert-overlay {
    display: none; /* Oculto por padrão */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fundo escuro transparente */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Efeito de desfoque moderno */
}

.custom-alert-box {
    background: linear-gradient(145deg, #1f1f1f, #141414);
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid #8B4513; /* Borda Laranja */
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.3); /* Glow Laranja */
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico */
    position: relative;
}

.custom-alert-icon {
    font-size: 60px !important;
    color: #8B4513;
    margin-bottom: 20px;
}

.custom-alert-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-alert-message {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.custom-alert-btn {
    background: linear-gradient(90deg, #8B4513, #A0522D);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px; /* Botão arredondado */
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    width: 100%;
}

.custom-alert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
    background: linear-gradient(90deg, #A0522D, #8B4513);
}

.close-alert-link {
    display: block;
    margin-top: 15px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.close-alert-link:hover { color: #fff; }

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Barra de Estatísticas (Index) --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.03); /* Fundo muito sutil */
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.stat-item i {
    color: #8B4513; /* Ícone Laranja */
    font-size: 18px;
}

.stat-number {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

/* Link especial para o contador de usuários */
a.stat-link {
    text-decoration: none;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
a.stat-link:hover .stat-number {
    color: #8B4513;
    text-decoration: underline;
}

/* --- Página de Usuários (usuarios.php) --- */
.search-box-container {
    margin-bottom: 30px;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: #111;
    border: 1px solid #333;
    border-radius: 25px;
    color: #fff;
    outline: none;
    transition: border 0.3s;
}

.search-input:focus {
    border-color: #8B4513;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8B4513;
    cursor: pointer;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.user-profile-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, border 0.2s;
}

.user-profile-card:hover {
    transform: translateY(-5px);
    border-color: #8B4513;
}

.user-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #8B4513;
    margin-bottom: 15px;
}

.user-card-name {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.user-card-role {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsividade da barra de stats */
@media (max-width: 600px) {
    .stats-bar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* --- Área de Logout e Configurações (Rodapé do Menu) --- */
.logout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espaço entre 'Sair' e a Engrenagem */
    width: 100%;
}

.settings-link-bottom {
    color: #ccc;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.settings-link-bottom .material-icons {
    font-size: 24px;
}

.settings-link-bottom:hover {
    color: #8B4513;
    transform: rotate(90deg); /* Gira ao passar o mouse */
}

/* Ajuste para centralizar o sino sozinho novamente */
.notification-wrapper {
    margin: 0 auto 10px auto; /* Centraliza e dá espaço abaixo */
}

/* --- Sistema de Estrelas (Rating) --- */
.rating-container {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
}

.star-icon {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Estrela Vazia (Cinza) */
.star-empty {
    color: #444; 
}

/* Estrela Cheia (Gradiente Laranja Moderno) */
/* Truque para gradiente em texto/ícone */
.star-filled {
    background: linear-gradient(180deg, #ffaa00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.star-icon:hover {
    transform: scale(1.2);
}

/* Na página de usuários (apenas leitura) */
.user-card-rating {
    margin-top: 5px;
    margin-bottom: 10px;
}
.read-only-star {
    font-size: 14px;
    cursor: default;
}

/* --- Sistema Genérico de Expandir/Encolher (Para Festividades) --- */

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.toggle-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 4px;
}

/* Reutiliza a classe .arrow-icon e .rotate que já criamos para o vídeo */
/* Se não tiver criado antes, garante aqui: */
.arrow-icon {
    font-size: 24px;
    color: #8B4513;
    transition: transform 0.3s ease;
}
.arrow-icon.rotate {
    transform: rotate(180deg);
}

/* Lista Expansível */
.toggle-list {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin 0.5s;
}

.toggle-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.toggle-list.expanded {
    max-height: 1000px; /* Altura grande o suficiente para listas longas */
    opacity: 1;
    margin-bottom: 15px;
}

/* --- Botão de Perigo (Excluir Conta) --- */
.btn-danger {
    width: 100%;
    background: linear-gradient(90deg, #c0392b, #e74c3c); /* Vermelho */
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px; /* Separar bem do botão de salvar */
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    background: linear-gradient(90deg, #a93226, #c0392b);
}

/* --- Página Explorar (Hub) --- */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsivo */
    gap: 25px;
    padding: 20px 0;
}

.explore-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Efeito Hover (Ao passar o mouse) */
.explore-card:hover {
    transform: translateY(-10px); /* Sobe um pouco */
    border-color: #8B4513;
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
}

.explore-icon-bg {
    width: 80px;
    height: 80px;
    background: rgba(139, 69, 19, 0.1); /* Fundo laranja transparente */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.explore-card:hover .explore-icon-bg {
    background: #8B4513; /* Fica laranja sólido no hover */
}

.explore-card i {
    font-size: 36px;
    color: #8B4513;
    transition: color 0.3s;
}

.explore-card:hover i {
    color: #fff; /* Ícone fica branco no hover */
}

.explore-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.explore-desc {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

.explore-arrow {
    margin-top: 20px;
    color: #8B4513;
    font-weight: bold;
    font-size: 14px;
    opacity: 0; /* Invisível inicialmente */
    transform: translateY(10px);
    transition: all 0.3s;
}

.explore-card:hover .explore-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* --- Página de Contato --- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: #111;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-label {
    display: block;
    color: #8B4513;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 15px;
}

.contact-input, .contact-textarea {
    width: 100%;
    padding: 12px;
    background-color: #0d0d0d;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.contact-input:focus, .contact-textarea:focus {
    border-color: #8B4513;
}

.contact-textarea {
    resize: vertical;
    min-height: 150px;
}

/* --- Captcha Moderno e Estilizado --- */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
}

.captcha-display {
    background: linear-gradient(45deg, #222, #333);
    color: #fff;
    font-family: 'Courier New', monospace; /* Fonte monoespaçada estilo código */
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 5px;
    padding: 10px 20px;
    border-radius: 5px;
    border-left: 4px solid #8B4513;
    user-select: none; /* Impede seleção do texto */
    text-decoration: line-through; /* Risco de segurança */
    opacity: 0.8;
}

.btn-refresh-captcha {
    background: none;
    border: none;
    color: #8B4513;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.3s;
}
.btn-refresh-captcha:hover { transform: rotate(180deg); }

/* --- Admin - Lista de Mensagens --- */
.message-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    position: relative;
}
.msg-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #888;
}
.msg-subject { color: #8B4513; font-weight: bold; font-size: 16px; display: block; margin-bottom: 5px; }
.msg-body { color: #ccc; line-height: 1.5; font-size: 14px; white-space: pre-wrap; }

/* --- Botão Excluir Mensagem (Admin) --- */
.btn-delete-msg {
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    cursor: pointer;
}

.btn-delete-msg:hover {
    color: #e74c3c; /* Vermelho */
    transform: scale(1.1);
}

/* --- Responsividade da Página de Contato --- */

/* Input do Captcha (Classe nova para substituir o style inline) */
.captcha-box-input {
    width: 150px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .contact-container {
        padding: 20px 15px; /* Reduz padding lateral para ganhar espaço */
        width: 100%;
    }

    /* Muda o Captcha para coluna (empilhado) no celular */
    .captcha-wrapper {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .captcha-display {
        width: 100%; /* O código ocupa toda a largura */
        text-align: center;
    }

    /* O botão de refresh fica no meio */
    .btn-refresh-captcha {
        transform: rotate(90deg); /* Gira a seta para baixo visualmente */
        padding: 5px;
    }

    /* O input ocupa toda a largura no celular */
    .captcha-box-input {
        width: 100% !important; 
    }
}

/* --- Botão de Like (Mãozinha) --- */
.like-btn-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
    background: rgba(0,0,0,0.6);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #333;
    margin-top: 5px;
}

.like-btn-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
}

.like-btn-wrapper:active {
    transform: scale(0.9);
}

.like-icon {
    font-size: 18px;
    color: #888; /* Cor padrão (não curtiu) */
    transition: color 0.3s, transform 0.3s;
}

.like-count {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

/* Estado: Curtido (Laranja/Dourado) */
.like-btn-wrapper.liked {
    border-color: #8B4513;
}

.like-btn-wrapper.liked .like-icon {
    color: #ffaa00; /* Laranja Neon */
    animation: thumb-pop 0.4s ease;
}

.like-btn-wrapper.liked .like-count {
    color: #ffaa00;
}

@keyframes thumb-pop {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.4) rotate(-15deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* --- Botão Excluir Usuário (Página Admin Específica) --- */
.btn-delete-user {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    background: #111;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
}

.btn-delete-user:hover {
    color: #fff;
    background: #c0392b; /* Vermelho Perigo */
    border-color: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.5);
}

/* --- Botão Baixar Foto --- */
.btn-download-photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    border: 1px solid #333;
    color: #ccc;
    width: 36px; /* Tamanho igual à altura do botão de like */
    height: 36px;
    border-radius: 50%; /* Redondo */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 5px;
}

.btn-download-photo:hover {
    background: #8B4513; /* Laranja */
    color: #fff;
    border-color: #8B4513;
    transform: scale(1.1) rotate(360deg); /* Efeito de giro suave */
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.6);
}

.btn-download-photo .material-icons {
    font-size: 20px;
}

/* --- Sistema de Oração --- */
.prayer-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.prayer-text {
    font-size: 16px;
    color: #fff;
    font-style: italic;
    margin: 15px 0;
    line-height: 1.5;
}

/* Barra de Progresso */
.prayer-progress-container {
    height: 12px;
    background-color: #d35400; /* Laranja (fundo/vazio) */
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}

.prayer-progress-bar {
    height: 100%;
    background-color: #00ff15; /* Verde (enchimento) */
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #2ecc71;
}

/* Botão Amém */
.btn-amem {
    background: transparent;
    border: 1px solid #8B4513;
    color: #8B4513;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-amem:hover {
    background: #8B4513;
    color: #fff;
}

.btn-amem.prayed {
    background: #8B4513; /* Se já clicou, fica preenchido */
    color: #fff;
}

/* Mensagem Deus Ouviu */
.god-heard-msg {
    display: none; /* Oculto por padrão */
    text-align: center;
    color: #40cc2e;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #2ecc71; }
    to { text-shadow: 0 0 20px #2ecc71, 0 0 10px #fff; }
}

.prayer-status-full .god-heard-msg {
    display: block; /* Mostra se completou */
}
/* --- Área Palavra do Pastor (Index) --- */
.pastor-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #8B4513;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.2);
}

.pastor-photo-frame {
    flex-shrink: 0;
    width: 120px;
    text-align: center;
}

.pastor-img {
    width: 100px;
    height: 133px; /* Proporção 3x4 */
    object-fit: cover;
    border: 3px solid #8B4513;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.pastor-name {
    color: #8B4513;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
    text-transform: uppercase;
}

.pastor-content {
    flex-grow: 1;
}

.pastor-title {
    color: #fff;
    font-family: 'Georgia', serif; /* Fonte mais clássica */
    font-size: 22px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.pastor-text {
    color: #ccc;
    line-height: 1.6;
    font-style: italic;
    font-size: 15px;
    white-space: pre-wrap;
}

/* Responsividade Pastor */
@media (max-width: 600px) {
    .pastor-section { flex-direction: column; align-items: center; text-align: center; }
    .pastor-text { text-align: left; }
}

/* --- Modal de Aviso Estilizado --- */
.custom-modal-overlay {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 2000; /* Fica acima de tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo escuro */
    backdrop-filter: blur(4px); /* Desfoque moderno */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-modal-box {
    background: linear-gradient(145deg, #1a1a1a, #000);
    border: 1px solid #8B4513;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.active .custom-modal-box {
    transform: scale(1); /* Efeito de zoom ao abrir */
}

.modal-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.modal-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.modal-desc {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-modal-close {
    background: #8B4513;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modal-close:hover {
    background: #a0522d;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.6);
}

/* --- Sistema Emoção Diária --- */
.emotion-section {
    background: #151515;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- Seletor de Emojis (Atualizado com Nomes) --- */
.emoji-picker {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.emoji-option {
    display: none; /* Esconde o radio button */
}

.emoji-label {
    display: flex;
    flex-direction: column; /* Empilha Emoji e Texto */
    align-items: center;
    justify-content: center;
    width: 70px; /* Largura fixa para alinhar */
    height: 70px;
    cursor: pointer;
    transition: all 0.2s;
    background: #222;
    border-radius: 10px;
    border: 2px solid transparent;
    user-select: none;
    padding: 5px;
}

.emoji-icon {
    font-size: 24px;
    margin-bottom: 2px;
    transition: transform 0.2s;
}

.emoji-name {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    font-weight: bold;
}

.emoji-label:hover {
    background: #333;
    transform: translateY(-3px);
}

.emoji-label:hover .emoji-icon {
    transform: scale(1.2);
}

/* Quando selecionado */
.emoji-option:checked + .emoji-label {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.15);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.emoji-option:checked + .emoji-label .emoji-name {
    color: #ffaa00;
}


/* Card da Emoção Postada */
.emotion-card {
    background: #1f1f1f;
    border-left: 4px solid #ffaa00; /* Detalhe lateral */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    position: relative;
}

.emotion-emoji-display {
    font-size: 28px;
    margin-right: 10px;
    vertical-align: middle;
}

.emotion-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.emotion-text {
    color: #ddd;
    font-size: 15px;
    font-style: italic;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 5px;
    display: inline-block;
}

/* Botões de Ação */
.emotion-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.action-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.action-btn:hover { color: #fff; }
.action-btn.liked { color: #ffaa00; }

/* Comentários da Emoção (Toggle) */
.emotion-comments-wrapper {
    display: none; /* Oculto */
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
}
.emotion-comments-wrapper.open { display: block; }

/* --- Correção Responsividade Palavra do Pastor --- */
.pastor-inner-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .pastor-inner-row {
        flex-direction: column; /* Empilha: Foto em cima, Texto embaixo */
        align-items: center;    /* Centraliza tudo */
        text-align: center;
    }

    .pastor-photo-frame {
        margin-bottom: 15px; /* Espaço entre a foto e o título */
    }
    
    .pastor-content {
        width: 100%; /* O texto ocupa a largura total */
    }

    .pastor-title {
        justify-content: center; /* Centraliza o ícone e título */
        display: flex;
        align-items: center;
    }
    
    /* Centraliza o botão Amém no celular */
    .pastor-amem-container {
        text-align: center !important; 
        margin-top: 20px !important;
    }
    .hero-box2::before {
    content: '';
    
}
}
/* --- Botão Flutuante Grupo (Home) --- */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #8B4513; /* Verde Zap */
    color: #fff;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.3s;
    border: 2px solid #fff;
}

.floating-chat-btn:hover {
    transform: scale(1.05);
    background: #966201;
}

.chat-label {
    font-weight: bold;
    font-size: 14px;
}

/* --- Página de Bate Papo (Estilo WhatsApp Dark) --- */
.chat-screen {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Tela cheia */
    background: #0d0d0d;
}

.chat-header-bar {
    background: #1f1f1f;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 80px 20px 100px 20px; /* Espaço para header e footer */
    background-image: url('https://i.imgur.com/8Q8q3qE.png'); /* Fundo sutil opcional */
    background-size: cover;
    background-blend-mode: soft-light;
    background-color: #000;
}

/* Balões de Mensagem */
.msg-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg-me {
    background: #005c4b; /* Verde escuro */
    color: #fff;
    margin-left: auto; /* Alinha à direita */
    border-top-right-radius: 0;
}

.msg-other {
    background: #202c33; /* Cinza escuro */
    color: #fff;
    margin-right: auto; /* Alinha à esquerda */
    border-top-left-radius: 0;
}

.msg-sender-name {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #ccc;
    display: block;
}

.msg-me .msg-sender-name { display: none; } /* Não mostra meu nome pra mim */
.msg-other .msg-sender-name { color: #ffaa00; }

.msg-reply-preview {
    background: rgba(0,0,0,0.2);
    border-left: 4px solid #8B4513;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 11px;
    color: #ccc;
    cursor: pointer;
}

.msg-time {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-align: right;
    margin-top: 5px;
}

/* Área de Input Fixa */
.chat-footer-input {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #1f1f1f;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #333;
}

.chat-input-box {
    flex: 1;
    background: #2a3942;
    border: none;
    border-radius: 20px;
    padding: 12px 15px;
    color: #fff;
    outline: none;
}

.reply-bar-active {
    position: fixed;
    bottom: 60px; /* Acima do input */
    width: 100%;
    background: #1f1f1f;
    padding: 10px;
    border-top: 1px solid #8B4513;
    display: none; /* Oculto por padrão */
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

/* Youtube Embed */
.chat-video-frame {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin-top: 5px;
}
/* --- Logo em Texto (CSS Puro) --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffaa00; /* Dourado */
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
    letter-spacing: 1px;
    line-height: 1.2;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text span {
    font-size: 10px;
    color: #ccc;
    text-shadow: none;
    font-family: sans-serif;
    font-weight: normal;
    letter-spacing: 2px;
}

/* Ajuste no Header do Chat para a nova logo */
.chat-header-bar .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Garante que o input de arquivo esteja oculto mas funcional */
#imgUpload {
    display: none;
}





/* --- Ajustes Chat (Avatar + Estrelas) --- */
.msg-row {
    display: flex;
    align-items: flex-end; /* Alinha avatar com o fundo da msg */
    margin-bottom: 15px;
    width: 100%;
}

.msg-row.me {
    justify-content: flex-end; /* Minhas msgs à direita */
}

.msg-row.other {
    justify-content: flex-start; /* Outros à esquerda */
}

.msg-avatar-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 1px solid #333;
    flex-shrink: 0;
}

/* O balão agora fica dentro da row */
.msg-bubble {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 10px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.msg-row.me .msg-bubble {
    background: #005c4b;
    color: #fff;
    border-top-right-radius: 0;
    margin-left: 0; /* Reset */
}

.msg-row.other .msg-bubble {
    background: #202c33;
    color: #fff;
    border-top-left-radius: 0;
    margin-right: 0; /* Reset */
}

/* Cabeçalho da Msg (Nome + Estrelas) */
.msg-header-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.msg-sender-name {
    font-size: 12px;
    font-weight: bold;
    color: #ffaa00; /* Dourado para destaque */
}

/* Esconde nome/avatar nas minhas mensagens se quiser limpar, 
   mas geralmente avatar não vai na minha msg, só nas dos outros */

   /* --- Botão Responder na Mensagem --- */
.msg-actions {
    position: absolute;
    top: 5px;
    right: 10px;
    display: none; /* Aparece no hover */
    gap: 10px;
    background: rgba(0,0,0,0.5);
    padding: 2px 5px;
    border-radius: 5px;
}

.msg-bubble:hover .msg-actions {
    display: flex;
}

.action-icon {
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.action-icon:hover {
    color: #ffaa00;
}

/* --- Preview da Resposta (Clicável) --- */
.msg-reply-preview {
    background: rgba(0,0,0,0.2);
    border-left: 4px solid #ffaa00; /* Laranja da marca */
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #ccc;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.msg-reply-preview:hover {
    background: rgba(255, 170, 0, 0.1);
}

/* Ícone de Menção (@) */
.mention-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e74c3c; /* Vermelho destaque */
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Animação de Destaque (Flash) */
@keyframes flash-highlight {
    0% { background-color: rgba(255, 170, 0, 0.5); }
    100% { background-color: transparent; }
}

.highlight-msg {
    animation: flash-highlight 1.5s ease-out;
}

/* --- Badge de Notificação no Botão Flutuante --- */
.chat-notification-badge {
    position: absolute;
    top: -10px;
    right: -5px;
    background: #e74c3c; /* Vermelho */
    color: #fff;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 2px solid #000; /* Borda para destacar do fundo */
    animation: bounce-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

