/* --- Wrapper Holográfico --- */
.holografico-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 5px; 
    background: linear-gradient(var(--scroll-angle, 0deg), #ff7e5f, #feb47b, #86a8e7, #91eae4, #ff7e5f);
    background-size: 300% 300%;
    box-shadow: 0 15px 45px rgba(0,0,0,0.6);
    transition: background-position 0.1s, height 0.4s ease; /* Transição suave de altura */
    height: auto; /* Permite que o container cresça conforme o texto */
    min-height: 180px; 
}

.holografico-wrapper::before {
    content: '';
    position: absolute;
    inset: 4px;
    background-color: #0d0d0d;
    border-radius: 17px;
    z-index: 1;
}

/* --- Padding do Conteúdo --- */
.hero-content2 {
    position: relative; 
    z-index: 2;
    padding: 15px 20px; /* Aumentei o padding lateral e vertical para o texto "respirar" */
}

#canvas-fundo-luz {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 17px;
    z-index: 1;
    pointer-events: none;
}

/* --- Texto Dinâmico --- */
#frase-dinamica {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    width: 100%;
    display: block; /* Mudado para block para respeitar o fluxo de altura */
    cursor: pointer;
    animation: respirarPalavra 4s infinite alternate ease-in-out;
    text-shadow: 
        calc(var(--mouse-x, 0px) * -1) calc(var(--mouse-y, 0px) * -1) 15px rgba(247, 120, 16, 0.8);
    view-transition-name: frase-biblica;
}

@keyframes respirarPalavra {
    0% { font-variation-settings: "wght" 400; }
    100% { font-variation-settings: "wght" 550; }
}

/* --- Botão de Ouvir Áudio (Discreto, Moderno e Glassmorphism) --- */
.btn-ouvir-palavra {
    position: absolute;
    bottom: 15px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-ouvir-palavra:hover {
    background: rgba(247, 120, 16, 0.5);
    border-color: rgba(247, 120, 16, 0.8);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(247, 120, 16, 0.4);
}

.btn-ouvir-palavra .material-icons {
    font-size: 22px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* Efeito de pulsação luminosa quando a narração está ligada */
.btn-ouvir-palavra.tocando {
    background: rgba(247, 120, 16, 0.8);
    border-color: #ffdd99;
    color: #fff;
    box-shadow: 0 0 20px rgba(247, 120, 16, 0.8);
    animation: pulsarAudio 1.5s infinite alternate ease-in-out;
}

@keyframes pulsarAudio {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); box-shadow: 0 0 30px rgba(247, 120, 16, 1); }
}

/* --- Ajuste para Celular (Mobile) --- */
@media (max-width: 600px) {
    .btn-ouvir-palavra {
        width: 20px; /* Botão menor no celular */
        height: 20px;
        bottom: 10px;
        right: 15px;
    }

    .btn-ouvir-palavra .material-icons {
        font-size: 16px; /* Ícone menor para acompanhar o botão */
    }
}

/* --- Botão Iniciar Rotação (Discreto) --- */
.btn-rotacao-palavra {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px;
}

.btn-rotacao-palavra:hover {
    color: #f77810;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .btn-rotacao-palavra {
        top: 8px;
        right: 15px;
        font-size: 18px;
    }
}