/* Estilização geral */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Container principal */
.container {
    width: 95%;
    max-width: 800px;
    background: white;
    padding: 30px;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    color: #3498db;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

/* Formulário */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.1em;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background-color: white;
}

select:focus, input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Botões */
button {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #3498db;
    color: white;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.random-btn {
    background-color: #27ae60;
    font-size: 1.3em;
    padding: 20px;
}

.random-btn:hover {
    background-color: #219a52;
}

/* Botão de compartilhar WhatsApp */
button.share-button {
    background-color: #25D366;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button.share-button:hover {
    background-color: #128C7E;
}

/* Container de botões */
.button-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.button-container button {
    margin: 5px;
}

/* Botões de navegação */
.navigation-buttons {
    display: flex;
    gap: 20px;
    flex: 1;
    max-width: 600px;
    justify-content: center;
    margin: 0 auto;
}

.nav-button {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #6c757d;
    min-width: 180px;
    max-width: 250px;
    padding: 15px 25px;
}

/* Remove os estilos anteriores de margin que não são mais necessários */
.nav-button.prev-button,
.nav-button.next-button {
    margin: 0;
}

.nav-button:hover {
    background-color: #5a6268;
}

.nav-button i {
    font-size: 14px;
}

/* Fonte da Bíblia */
.bible-source {
    color: #666;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 20px;
    text-align: right;
    font-style: italic;
}

/* Seção de Doações */
.donation-section {
    border: 2px solid #27ae60;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.donation-section:hover {
    transform: translateY(-5px);
}

.donation-section h2 i {
    color: #27ae60;
}

.pix-key {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pix-label {
    font-size: 1.1em;
    color: #2c3e50;
}

.pix-value {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: white;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.pix-value span {
    font-size: 1.4em;
    color: #2c3e50;
    font-family: monospace;
    text-align: center;
}

.copy-button {
    background-color: #27ae60;
    border: none;
    color: white;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.copy-button:hover {
    background-color: #219a52;
    transform: translateY(-2px);
}

.copy-success {
    color: #27ae60;
    font-size: 0.9em;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

/* Responsividade */
@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .form-group {
        flex: 1;
    }

    button {
        max-width: 400px;
        margin: 15px auto;
    }
}

@media (max-width: 767px) {
    .container {
        width: 92%;
        padding: 20px;
        margin: 10px auto;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

    button {
        padding: 12px;
        font-size: 1.1em;
    }

    .random-btn {
        padding: 15px;
        font-size: 1.2em;
    }

    .pix-value {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }

    .copy-button {
        width: 100%;
        justify-content: center;
    }

    .navigation-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .nav-button {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
    }
}

/* Página inicial */
.intro-text {
    font-size: 1.2em;
    color: #666;
    margin: 20px 0 40px;
}

.main-options {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.option-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
}

.random-section {
    border: 2px solid #27ae60;
}

.search-section {
    border: 2px solid #3498db;
}

/* Página de resultados */
.results-container {
    max-width: 900px;
}

/* Página de erro */
.error-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #e74c3c;
    margin-top: 30px;
}

.error-icon {
    font-size: 4em;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-icon .fa-clock {
    color: #f39c12;
}

.error-card h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.retry-info {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1.1em;
}

.retry-info i {
    margin-right: 8px;
}

.error-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-buttons button {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.error-buttons .secondary-button {
    background-color: #6c757d;
}

.error-buttons .secondary-button:hover {
    background-color: #5a6268;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #eee;
}

/* Media Queries */
@media (max-width: 767px) {
    .main-options {
        gap: 20px;
    }

    .option-card {
        padding: 20px;
    }

    .error-card {
        padding: 30px 20px;
    }

    .error-icon {
        font-size: 3em;
    }

    .error-card h2 {
        font-size: 1.5em;
    }

    .error-message {
        font-size: 1.1em;
    }

    .error-buttons {
        flex-direction: column;
    }

    .error-buttons button {
        width: 100%;
        max-width: 100%;
    }
}

/* Página de resultados - Cabeçalho */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.back-button {
    background-color: #6c757d;
    max-width: 200px;
}

.verse-header {
    text-align: center;
    margin-bottom: 30px;
}

.verse-header h2 {
    color: #2c3e50;
    font-size: 2em;
}

/* Página de resultados - Cards de conteúdo */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #3498db;
}

.verse-text-card {
    border-left-color: #27ae60;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card-header i {
    font-size: 1.5em;
    color: #3498db;
}

.verse-text-card .card-header i {
    color: #27ae60;
}

.card-header h3 {
    margin: 0;
    font-size: 1.4em;
}

.verse-text {
    font-size: 1.4em;
    line-height: 1.6;
    color: #2c3e50;
    margin: 20px 0;
    padding: 0 20px;
    border-left: 3px solid #27ae60;
}

/* Página de resultados - Lista de referências */
.references-list {
    list-style: none;
    padding: 0;
}

.references-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid #3498db;
}

.references-list strong {
    color: #2c3e50;
    font-size: 1.1em;
}

.references-list p {
    margin: 8px 0;
}

.relevance {
    color: #666;
    font-size: 0.9em;
}

/* Media Queries - Página de resultados */
@media (max-width: 767px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .back-button {
        max-width: 100%;
    }

    .verse-header h2 {
        font-size: 1.6em;
    }

    .content-card {
        padding: 20px;
    }

    .verse-text {
        font-size: 1.2em;
        padding: 0 15px;
    }

    .navigation-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-button {
        width: 100%;
        max-width: 100%;
    }
}
