* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2c3e50;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2.5rem;
    text-align: center;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.versao {
    font-style: italic;
    color: #bdc3c7;
    font-size: 1.1rem;
}

/* CONTROLES */
.controles {
    background: #f8f9fa;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.selecionadores {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.grupo-input {
    display: flex;
    flex-direction: column;
}

.grupo-input label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

select {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* CONTEÚDO */
.conteudo {
    padding: 2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.placeholder {
    text-align: center;
    color: #6c757d;
    padding: 3rem;
    font-size: 1.1rem;
}

/* LOADING */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #6c757d;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* TEXTO BÍBLICO */
.texto-biblia {
    flex: 1;
}

#titulo-capitulo {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.versiculos {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.versiculo {
    margin-bottom: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-left: 4px solid transparent;
}

.versiculo:hover {
    background: #e3f2fd;
    border-left-color: #667eea;
    transform: translateX(5px);
}

.numero-versiculo {
    font-weight: bold;
    color: #667eea;
    margin-right: 8px;
    font-size: 0.9em;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 12px;
}

/* NAVEGAÇÃO */
.navegacao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

#info-capitulo {
    font-weight: 600;
    color: #2c3e50;
}

.navegacao button {
    padding: 10px 20px;
    font-size: 14px;
}

/* ERROS */
.erro-api {
    background: #ffebee;
    color: #c62828;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #c62828;
}

.erro-api h3 {
    margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    background: #2c3e50;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* RESPONSIVO */
@media (max-width: 968px) {
    .selecionadores {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .selecionadores {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 2rem 1.5rem;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .conteudo {
        padding: 1.5rem;
    }
    
    .navegacao {
        flex-direction: column;
        gap: 1rem;
    }
    
    .versiculos {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    select, button {
        padding: 12px;
    }
}

/* SCROLLBAR */
.versiculos::-webkit-scrollbar {
    width: 8px;
}

.versiculos::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.versiculos::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.versiculos::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}