/**
 * reader.css — Estilos para el motor de lectura bíblica y visualización de texto
 * Biblia Conexiones PWA
 *
 * Administra la tipografía del área de lectura (#reading-area, #connections-area),
 * encabezados de versículos, Selah, estilos de enlaces interactivos,
 * resalta de conexiones, resaltados de colores y términos de búsqueda.
 */

#reading-area,
#connections-area {
    font-size: 18px;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    font-feature-settings: "liga", "kern";
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    color: var(--grey-70);
    margin-bottom: 0.8em;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#reading-area p {
  padding: 1px 1px 1px 5px;
  margin: 4px 0;
  border-left: 5px solid transparent;
  background-color: transparent;
  transition: all 0.3s ease;
}

@media (min-width: 360px) {
    #reading-area,
    #connections-area {
        font-size: 19px;
    }
}

[data-bs-theme="dark"] #reading-area,
[data-bs-theme="dark"] #connections-area {
    color: var(--grey-40);
}

/* Subtítulos de sección y marcaspoéticas (Selah/ABC) */
.subt {
    font-size: 0.95rem;
    font-weight: 400;
    color: #797368;
    margin-left: 1rem;
}

.abc {
    font-style: italic;
    color: var(--primary);
    margin-left: 1rem;
}

/* Números y citas de versículo */
.verse-num {
    font-size: 0.85em;
    color: var(--grey-50);
    opacity: 0.7;
    font-weight: bold;
    margin-right: 0.3rem;
}

.verse-quote {
    color: var(--grey-50);
    opacity: 0.7;
    font-weight: bold;
    margin-right: 0.3rem;
}

/* Versículos interactivos (sin y con conexiones) */
.verse-link {
    color: var(--grey-70);
    cursor: pointer;
    position: relative;
}

.verse-conex {
    color: var(--grey-90);
    cursor: pointer;
    position: relative;
}

.verse-emoji,
.emoji-option {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

[data-bs-theme="dark"] .verse-link {
    color: var(--grey-40);
}

[data-bs-theme="dark"] .verse-conex {
    color: var(--grey-20);
}

/* Área de estudio y botones de temas */
#study-area {
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    font-feature-settings: "liga", "kern";
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    margin-bottom: 0.8em;
}

.theme-title {
    color: var(--dark);
    background-color: white;
}

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

.theme-btn {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #DDDDC8;
    color: var(--text-color);
    border-radius: 3px;
}

.theme-btn:hover {
    border: 1px solid var(--dark);
}

/* Estado del texto en versículos (estándar vs resaltado por temas) */
.standard {
    color: var(--grey-60);
    border: 0;
}

[data-bs-theme="dark"] .standard {
    color: var(--grey-20);
}

.standard:hover,
.standard:focus {
    color: var(--grey-80);
}

[data-bs-theme="dark"] .standard:hover,
[data-bs-theme="dark"] .standard:focus {
    color: var(--grey-10);
}

.resalted {
    color: var(--primary);
    cursor: pointer;
}

[data-bs-theme="dark"] .resalted {
    color: var(--primary-dark);
}

.resalted:hover,
.resalted:focus {
    color: var(--primary-hover);
}

[data-bs-theme="dark"] .resalted:hover,
[data-bs-theme="dark"] .resalted:focus {
    color: var(--primary-dark-hover);
}

/* Resaltado de coincidencias en búsquedas */
mark.search-highlight {
    background-color: #ffe066;
    color: #1a1a1a;
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 600;
}

[data-bs-theme="dark"] mark.search-highlight {
    background-color: #f59e0b;
    color: #1a1a1a;
}
