/* inicio */
body {
    background-color: #f3f0f0;
    width: 90%;
    margin: auto;
}

h2 {
    font-size: 17px;
}

h3 {
    font-size: 16px;
}

p, li {
    padding-bottom: 7px;
}

.pagina-inicial {
    width: 95%;
    margin: auto;
}
/* fim inicio */

/* Cabecalho */
.iconePesquisa {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 44px;
}

.iconePesquisaNome .buttonImg,
.iconePesquisa .buttonImg {
    border-radius: 3px;
    border: none;
    padding: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.iconePesquisaNome .inputText,
.iconePesquisa .inputText {
    border-radius: 3px;
    border: 1px solid #ddd;
    padding: 4.5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.iconePesquisaNome .inputText:focus,
.iconePesquisa .inputText:focus {
    border-color: #be9a7d;
    box-shadow: 0 0 5px rgba(190, 154, 125, 0.3);
}   
/* Fim cabecalho */

/* select */
select {
    color: red;
    transition: all 0.3s ease;
    border-radius: 3px;
    border: 1px solid #ddd;
    padding: 5px;
}

select:hover {
    border-color: #be9a7d;
    box-shadow: 0 0 5px rgba(190, 154, 125, 0.2);
}

select:focus {
    border-color: #be9a7d;
    box-shadow: 0 0 8px rgba(190, 154, 125, 0.3);
}
/* fim select  */

/* tabela */
.divTable {
    margin-bottom: 25px;
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    margin: auto;
}

table caption {
    /* text-align: left; */
    color: #232526;
    font-weight: bold;
    padding-bottom: 7px;
}

.detailsPesquisaLivro.desktop {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
    width: 100%;
}

.detailsPesquisaLivro.desktop details {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: white;
    border: 1px solid #e2e8f0;
    width: 100%;
    overflow: hidden; /* Adicionado para conter elementos filhos */
}

.detailsPesquisaLivro.desktop details[open] {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.detailsPesquisaLivro.desktop summary {
    padding: 1rem 1.5rem;
    font-size: 1.rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.5rem;
    box-sizing: border-box; /* Garante que padding não aumente o tamanho */
}

.detailsPesquisaLivro.desktop summary::-webkit-details-marker {
    display: none;
}

.detailsPesquisaLivro.desktop summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
    position: relative; /* Garante que fique dentro do summary */
    top: 0; /* Alinha verticalmente */
}

/* Ajuste para o segundo details */
.detailsPesquisaLivro.desktop details:nth-child(2) summary {
    color: #e53e3e;
}


.mr{
    margin-right: 7px;
}

.detailsPesquisaLivro.desktop details[open] summary::after {
    content: '−';
}

.detailsPesquisaLivro.desktop summary:hover {
    color: #4299e1;
}

.detailsPesquisaLivro.desktop ol {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.detailsPesquisaLivro.desktop ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    border-left: 3px solid #4299e1;
}

.detailsPesquisaLivro.desktop .textOpacity {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.detailsPesquisaLivro.desktop .textOpacity:hover {
    opacity: 1;
}

.detailsPesquisaLivro.desktop .textRedNo {
    color: #e53e3e;
}

.detailsPesquisaLivro.desktop .bold {
    font-weight: 700;
}

.detailsPesquisaLivro.desktop .p-3 {
    padding: 0 1rem 1rem 1rem;
}

.iconePesquisaNome {
    padding: 0 1.5rem 1.5rem;
}

.formPesquisaNome {
    display: flex;
    flex-wrap: wrap;
    max-width: 500px;
}

.inputText {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inputText:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.buttonImg {
    background-color: #4299e1;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.buttonImg:hover {
    background-color: #3182ce;
}

.buttonImg img {
    filter: brightness(0) invert(1);
}

/* Animação para o ícone de pesquisa */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.buttonImg:hover img {
    animation: pulse 0.5s ease;
}

table a,
details a {
    text-decoration: none;
    color: #232526;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

table a:hover,
details a:hover {
    color: #c9253f;
    text-decoration: underline;
}

table a:focus,
details a:focus {
    outline: 2px solid #be9a7d;
    outline-offset: 2px;
}

td, th {
    border: 1px solid #dddddd;
    text-align: center;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #dddddd;
}
/* fim tabela */

/* details */   
details:last-child {
    margin-bottom: 21px;
}

.detailsPesquisaLivro.desktop {
    margin-bottom: 21px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.divDetails.mobile {
    display: none;
}

.detailsPesquisaLivro.mobile {
    display: none;
}
/* fim details */

/* helper */
.displayNone {
    display: none;
}

.displayBlock {
    display: block;
}

.textOpacity {
    color: #232526;
    opacity: .8;
}

.textBlue,
.text-blue {
    color: blue;
}
.textRed,
.text-red {
    color: red;
}

.fs-14 {
    font-size: 14px;
}

.fs-16 {
    font-size: 16px;
}

.mb-1 {
    margin-bottom: 7px;
}

.mb-2 {
    margin-bottom: 14px;
}

.mb-3 {
    margin-bottom: 21px;
}

.pb-1 {
    padding-bottom: 7px;
}

.pb-2 {
    padding-bottom: 14px;
}

.pb-3 {
    padding-bottom: 21px;
}
/* fim helper */
@media (max-width: 960px) {
    .formPesquisaNome,
    .formPesquisa {
        display: flex;
        align-items: center;
        margin-top: 21px;
    }
}

@media (min-width:523px) {
    .formPesquisaNome {
        margin-top: -21px;
        padding-bottom: 7px;
    }            
}

@media (max-width:522px) {
    .iconePesquisa {
        border-bottom: none !important;
    }

    .formPesquisaNome {
        margin-top: -21px;
    }

    .selectLivro.desktop {
        display: none;
    }

    .detailsPesquisaLivro.desktop {
        display: none;
    }

    .detailsPesquisaLivro.mobile {
        display: block;
    }

    .divTable.desktop {
        display: none;
    }
    
    .divDetails.mobile {
        display: block;
    }

    .divDetailsFlex.mobile {
        display: flex;
        gap: 14px;
    }

    h1 {
        font-size: 18px;
        text-align: center;
        color: #9e856c;
        text-shadow: 1px 1px #f3f0f0;
        padding: 25px
    }

    select {
        padding: 3px;
        color: #232526;
    }

    .textOpacity {
        color: #524334;
        /* text-shadow: 1px 1px #f3f0f0; */
        font-weight: normal;
        /* opacity: .7; */
    }
}

/* Estilos Versículo do Dia */
.secao-versiculo-dia {
    margin: 30px 0;
    padding: 0;
}

.versiculo-container {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-left: 5px solid #be9a7d;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.secao-versiculo-dia h2 {
    color: #232526;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.versiculo-conteudo {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.versiculo-texto {
    font-size: 16px;
    line-height: 1.6;
    color: #232526;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.carregando {
    text-align: center;
    color: #999;
    font-style: italic;
}

.erro {
    color: #c9253f;
    text-align: center;
}

.versiculo-referencia {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.referencia {
    font-weight: bold;
    color: #be9a7d;
    margin: 0;
    flex: 1;
}

.btn-proximo {
    background-color: #c9253f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-proximo:hover {
    background-color: #a01d31;
}

.btn-proximo:active {
    transform: scale(0.98);
}

/* Responsivo */
@media (max-width: 768px) {
    .versiculo-container {
        padding: 20px;
    }

    .versiculo-texto {
        font-size: 16px;
    }

    .versiculo-referencia {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-proximo {
        width: 100%;
        padding: 12px 15px;
    }
}

/* Autocomplete Styles */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.focused {
    background-color: #f0f0f0;
    color: #c9253f;
}

.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #be9a7d;
    border-radius: 3px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a07d66;
}

.botoes-versiculo {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-copiar {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-copiar:hover {
    background-color: #45a049;
}

.btn-copiar:active {
    background-color: #3d8b40;
}