/* ========================================
   BIBLE PAGE - STYLES ADDITIONNELS
   Extracted from inline styles for optimization
   ======================================== */

/* Flex container pour bible-header1 */
.flex-container {
    display: flex;
}

/* Style pour le numéro de chapitre en cercle */
.chapter-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    color: #ffffff;
    background: rgba(102, 126, 234, 0.4);
    border: 3px solid rgba(102, 126, 234, 0.7);
}

.btn-testament {
    transition: all 0.2s ease !important;
}

.btn-testament:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: #6580B6 !important;
}

.btn-testament.active {
    background: #6580B6 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#btn-prev-chapter:hover,
#btn-next-chapter:hover {
    background: #6580B6 !important;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Bible Header - conteneur principal */
.bible-header {
    position: relative;
}

/* Overlay de sélection initiale */
.mode-selection-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-selection-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.mode-card-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles IH-Item (depuis survol.php) */
.ih-item {
    position: relative;
    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

.ih-item,
.ih-item * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.ih-item a {
    color: #333;
    text-decoration: none;
}

.ih-item a:hover {
    text-decoration: none;
}

.ih-item img {
    width: 100%;
    height: 100%;
}

.ih-item.circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
}

.ih-item.circle .img {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    z-index: 2;
}

.ih-item.circle .img:before {
    position: absolute;
    display: block;
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.3);
    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

.ih-item.circle .img img {
    border-radius: 50%;
}

.ih-item.circle .info {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    border-radius: 50%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 1;
}

.ih-item.circle.effect3.colored .info {
    background: rgba(26, 74, 114, 0.9);
}

.ih-item.circle.effect3.colored a:hover .info {
    background: rgba(26, 74, 114, 0.5);
}

.ih-item.circle.effect3 .info {
    background: #333333;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

.ih-item.circle.effect3 .info h3 {
    color: #fff;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 2px;
    font-size: 22px;
    margin: 0 30px;
    padding: 55px 0 0 0;
    height: 110px;
    text-shadow: 0 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ih-item.circle.effect3 .info p {
    color: #bbb;
    padding: 10px 5px;
    font-style: italic;
    margin: 0 30px;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.ih-item.circle.effect3.left_to_right .img {
    -webkit-transform: scale(1) translateX(0);
    -moz-transform: scale(1) translateX(0);
    -ms-transform: scale(1) translateX(0);
    -o-transform: scale(1) translateX(0);
    transform: scale(1) translateX(0);
}

.ih-item.circle.effect3.left_to_right .info {
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    -o-transform: translateX(-100%);
    transform: translateX(-100%);
}

.ih-item.circle.effect3.left_to_right a:hover .img {
    -webkit-transform: scale(0.5) translateX(100%);
    -moz-transform: scale(0.5) translateX(100%);
    -ms-transform: scale(0.5) translateX(100%);
    -o-transform: scale(0.5) translateX(100%);
    transform: scale(0.5) translateX(100%);
}

.ih-item.circle.effect3.left_to_right a:hover .info {
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
}

.ih-item.circle.effect3.right_to_left .img {
    -webkit-transform: scale(1) translateX(0);
    -moz-transform: scale(1) translateX(0);
    -ms-transform: scale(1) translateX(0);
    -o-transform: scale(1) translateX(0);
    transform: scale(1) translateX(0);
}

.ih-item.circle.effect3.right_to_left .info {
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    transform: translateX(100%);
}

.ih-item.circle.effect3.right_to_left a:hover .img {
    -webkit-transform: scale(0.5) translateX(-100%);
    -moz-transform: scale(0.5) translateX(-100%);
    -ms-transform: scale(0.5) translateX(-100%);
    -o-transform: scale(0.5) translateX(-100%);
    transform: scale(0.5) translateX(-100%);
}

.ih-item.circle.effect3.right_to_left a:hover .info {
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
}

/* Centrer le contenu du header2 (lecteur audio) */
#bible-header2 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 10px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.selected-verses-preview {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.verses-list {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ========== VERSIONS CAROUSEL STYLES ========== */
.versions-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.versions-container .version-card {
    position: absolute;
    height: 240px;
    width: 160px;
    background-color: #EFEFEF;
    border: 6px solid #ffffff;
    border-bottom: 50px solid #ffffff;
    left: 50%;
    top: 50px;
    translate: -50% 0%;
    border-radius: 12%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
    transform-origin: bottom center;
    scale: 1;
    transition-duration: 250ms;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.versions-container .version-card:hover {
    scale: 1.50;
    box-shadow: rgba(102, 126, 234, 0.3) 0px 4px 20px;
    background-color: #F5F5FF;
}

.versions-container .version-card-name {
    font-weight: bold;
    font-size: 11px;
    text-align: center;
    width: 100%;
    padding: 3px 4px;
    color: #6580B6;
}

.versions-container .version-card-abbr {
    font-weight: bold;
    font-size: 28px;
    text-align: center;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.versions-container .version-card-lang {
    font-size: 10px;
    color: #999;
    text-align: center;
    width: 100%;
    margin-top: auto;
    padding-bottom: 3px;
}

/* ========== HIGHLIGHT STYLES ========== */
#highlight-modal {
    display: none !important;
    justify-content: center;
    align-items: center;
}

#highlight-modal.show {
    display: flex !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les highlights des versets */
.verse-text.highlight-yellow,
.verse-item.highlight-yellow {
    background: rgba(255, 235, 59, 0.5) !important;
    padding: 2px 4px;
    border-radius: 3px;
}

.verse-text.highlight-pink,
.verse-item.highlight-pink {
    background: rgba(244, 67, 54, 0.4) !important;
    padding: 2px 4px;
    border-radius: 3px;
}

.verse-text.highlight-green,
.verse-item.highlight-green {
    background: rgba(76, 175, 80, 0.3) !important;
    padding: 2px 4px;
    border-radius: 3px;
}

.verse-text.highlight-blue,
.verse-item.highlight-blue {
    background: rgba(33, 150, 243, 0.3) !important;
    padding: 2px 4px;
    border-radius: 3px;
}

.verse-text.highlight-purple,
.verse-item.highlight-purple {
    background: rgba(156, 39, 176, 0.3) !important;
    padding: 2px 4px;
    border-radius: 3px;
}
