/**
 * Estilos personalizados para Santa Biblia Online
 */

/* Variables globales */
:root {
    --main-font: 'Open Sans', sans-serif;
    --bible-font: 'Lora', serif;
    --primary-color: #18b3ff;
    --secondary-color: #475569;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --verse-hover-bg: rgba(37, 99, 235, 0.05);
    --verse-highlight-bg: rgba(37, 99, 235, 0.1);
}

/* Estilos generales */
body {
    font-family: var(--main-font);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Temas claro y oscuro */
[data-bs-theme="dark"] {
    --verse-hover-bg: rgba(255, 255, 255, 0.05);
    --verse-highlight-bg: rgba(255, 255, 255, 0.1);
}

.btn_color_primary, .btn_primary_new, .btn-outline-primary{
    border:1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover{
    background:var(--primary-color) !important;
    color:white !important;
}

/* Botón "Volver arriba" */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Estilos para la lectura de la Biblia */
.verse-container {
    font-family: var(--bible-font);
    line-height: 1.8;
    font-size: 1.1rem;
}

.verse {
    position: relative;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
    border-radius: 0.25rem;
}

.verse:hover {
    background-color: var(--verse-hover-bg);
}

.verse-highlighted {
    background-color: var(--verse-highlight-bg);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.verse-number {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.5rem;
    top: -0.3em;
}

.verse-text {
    display: inline;
}

.verse-actions {
    display: none;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
}

.verse:hover .verse-actions {
    display: block;
}

/* Hero section */
.hero {
    background-color: var(--light-gray);
    padding: 3rem 0;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero .card {
    border-radius: 1rem;
    overflow: hidden;
}

.verse-text {
    font-style: italic;
}

/* Secciones de características */
.features .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.features .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.features .bi {
    margin-bottom: 1rem;
}

/* Estilos para la página de búsqueda */
.search-results .card {
    transition: transform 0.2s ease;
}

.search-results .card:hover {
    transform: translateY(-3px);
}

.highlight {
    background-color: rgba(255, 255, 0, 0.3);
    padding: 0 0.2rem;
    border-radius: 0.2rem;
}

/* Estilos para el formulario de contacto */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .verse-actions {
        display: block;
        position: relative;
        right: auto;
        top: auto;
        margin-top: 0.5rem;
        text-align: right;
    }
    
    .hero {
        padding: 2rem 0;
    }
}

/* Modal de compartir versículo */
#shareVerseText {
    font-family: var(--bible-font);
    font-style: italic;
    line-height: 1.8;
}

#shareVerseRef {
    font-weight: 600;
}

/* Botón de cambio de tema */
#theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-bs-theme="dark"] #theme-toggle {
    color: #fff;
}

/* Variables */
:root {
    --accent-color: #dfe3ee;
    --dark-color: #2c3e50;
    --light-color: #f7f9fc;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Libre Baskerville', serif;
    --text-color: #333;
}

/* Estilos generales */
body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Sobrescribiendo estilos de Bootstrap */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Header y navegación */
.navbar-brand {
    font-family: var(--font-secondary);
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 767.98px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: absolute;
    }
}

.sidebar .nav-link {
    font-weight: 500;
    color: var(--text-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: var(--accent-color);
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Tarjeta de versículo */
.verse-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.verse-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.verse-card .card-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.verse-card .card-body blockquote {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
}

.verse-card .blockquote-footer {
    color: var(--secondary-color);
}

/* Navegación de capítulos */
.chapters-nav {
    overflow-x: auto;
    padding-bottom: 10px;
}

.pagination {
    flex-wrap: wrap;
}

.pagination .page-link {
    border-radius: 5px;
    margin: 0 2px;
    color: var(--text-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sección de artículos */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: var(--dark-color) !important;
    color: white;
    margin-top: auto;
}

.footer h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.footer a {
    transition: color 0.2s;
}

.footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Animaciones y efectos */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Estilos responsivos adicionales */
@media (max-width: 576px) {
    .verse-card .card-body blockquote {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Estilos para la página de búsqueda */
.search-result {
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-result:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.highlight {
    background-color: var(--warning-color);
    padding: 2px 0;
}

/* Estilos para la página de artículos */
.article-preview {
    transition: all 0.3s ease;
}

.article-preview:hover {
    transform: translateY(-5px);
}

.article-header {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 30px;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.article-header .container {
    position: relative;
    z-index: 1;
}

/* Estilos para la página de admin */
.admin-sidebar {
    background-color: var(--dark-color);
    color: white;
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.admin-sidebar .nav-link:hover {
    color: white;
}

.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
} 