/*--------------------------------------------------------------
# Telugu Bible Linker Styles
--------------------------------------------------------------*/
a.bible-verse-link {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #0066cc;
    cursor: pointer;
    color: #0066cc;
    transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
}
a.bible-verse-link:hover,
a.bible-verse-link:focus {
    color: #004C99;
    text-decoration-color: #004C99;
    text-decoration-style: solid;
}
#tbl-verse-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 50px;
    padding-bottom: 50px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
.tbl-modal-content {
    /* background-color and color are set by inline styles from PHP settings */
    margin: 5% auto;
    padding: 25px 30px;
    border: 1px solid #cccccc;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    box-sizing: border-box;
    animation: tbl-modal-appear 0.3s ease-out;
}
@keyframes tbl-modal-appear {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.tbl-modal-close {
    color: #888888;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s ease-in-out;
}
.tbl-modal-close:hover,
.tbl-modal-close:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}
.tbl-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dddddd;
    font-size: 1.4em;
    font-weight: 600;
    /* color is set by inline styles */
}
.tbl-modal-body {
    padding-top: 10px;
    line-height: 1.75;
    /* font-size and color are set by inline styles */
    max-height: 65vh;
    overflow-y: auto;
    text-align: justify;
}
.tbl-modal-body strong {
    font-weight: 600;
    margin-right: 5px;
}
.tbl-modal-body.loading {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tbl-modal-body.loading::after {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: tbl-spin 0.8s linear infinite;
}
@keyframes tbl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media screen and (max-width: 768px) {
    .tbl-modal-content { width: 95%; margin: 20px auto; padding: 20px; }
    .tbl-modal-title { font-size: 1.2em; }
    .tbl-modal-body { max-height: 70vh; /* font-size set by inline style */ }
    .tbl-modal-close { top: 10px; right: 15px; font-size: 28px; }
}
@media screen and (max-width: 480px) {
    .tbl-modal-title { font-size: 1.1em; margin-bottom: 15px; padding-bottom: 10px; }
    /* .tbl-modal-body font-size set by inline style */
}