/**
 * layout.css — Estructura general de contenedores y encabezados
 * Biblia Conexiones PWA
 *
 * Administra las dimensiones estáticas y adaptativas de los contenedores:
 * #header_container, #bottom_container, #main_container, #reading-area-container,
 * así como los títulos/subtítulos responsivos según los rangos de pantalla.
 */

/* Dimensiones fijas de cabecera y barra inferior */
#header_container {
    height: 65px;
}

#bottom_container {
    height: 60px;
    padding-top: 0;
    margin-top: 2px;
    z-index: 1080;
}

#main_container {
    position: relative;
    min-height: 400px;
}

#reading-area-container {
    height: calc(100% - 55px);
}

/* Tipografía de títulos y subtítulos del header */
.title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.subtitle {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Selector de testamento (Antiguo/Nuevo Testamento) */
.testamento {
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--grey-30);
    color: var(--primary);
    padding: 0.26rem 0.5rem 0.25rem 0.5rem;
}

[data-bs-theme="dark"] .testamento {
    background-color: var(--grey-70);
    color: var(--grey-10);
}

/* Selectores de libros y capítulos */
.book-btn, .chapter-btn {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
}

/* Ajustes de tarjetas */
.card-header {
    background-color: #DDDDC8 !important;
    padding: 0.5rem 0.5rem 0.25rem 0.5rem !important;
}

.card-title {
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: var(--primary) !important;
}

/* Adaptación responsive de cabeceras por rango de pantalla */
@media (min-width: 320px) and (max-width: 359px) {
    .title {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    #reading-area-container {
        height: calc(100% - 28px);
    }
}

@media (min-width: 360px) and (max-width: 389px) {
    .title {
        font-size: 1.3rem;
        line-height: 1.2rem;
    }

    .subtitle {
        font-size: 0.9rem;
        line-height: 0.9rem;
    }

    #reading-area-container {
        height: calc(100% - 28px);
    }
}

@media (min-width: 390px) {
    .title {
        font-size: 1.4rem;
        line-height: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1rem;
    }

    #reading-area-container {
        height: calc(100% - 55px);
    }
}

@media (max-width: 600px) {
    #show_menulat {
        cursor: pointer;
    }
}
