/*======================================================*/
/* La Escritura                                      */
/* Archivo.....: study-window.css                       */
/* Versión.....: 1.0.0                                  */
/*======================================================*/

/*======================================================*/
/* Medidas generales                                    */
/*======================================================*/

:root
{
    --header-height: 70px;

    --footer-main-height: 62px;

    --footer-navigation-height: 40px;

    --footer-book-height: 30px;

    --footer-gap:10px;
}

#menu-button
{
    color:#FFFFFF;

    font-size:36px;

    line-height:1;
}

/*======================================*/
/* Vista de subtítulos                  */
/*======================================*/

.subtitle-view
{
    --footer-navigation-height:0px;
}

.study-window
{
    position: fixed;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    display: flex;

    justify-content: center;

    align-items: center;

    background: rgba(0, 0, 0, .45);

    z-index: 9999;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .30s ease,
        visibility .30s ease;
}

.study-window.is-open
{
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.study-window-panel
{
    width:90%;

    max-width:900px;

    height:80vh;

    background:#ffffff;

    border-radius:12px;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    box-shadow:0 18px 50px rgba(0,0,0,.22);

    transform:translateY(25px) scale(.98);

    opacity:0;

    transition:
        transform .35s ease,
        opacity .35s ease;
        
}

/*======================================================*/
/* Overlay                                              */
/*======================================================*/

.study-window-overlay
{
    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.55);

    backdrop-filter: blur(2px);
}

/*======================================================*/
/* Ventana                                              */
/*======================================================*/

.study-window-dialog
{
    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    width: 90%;

    max-width: 900px;

    max-height: 85vh;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 15px 40px rgba(0,0,0,.35);
}

.study-window.is-open .study-window-panel
{
    transform:translateY(0) scale(1);

    opacity:1;
}

.study-window-header
{
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding:18px 26px;

    background:#f8f5ef;

    border-bottom: 1px solid #e8dfd1;

    font-family:'TTFirsNeue-Medium', Arial, sans-serif;

font-size:1.45rem;

font-weight:600;
}

.study-window-title
{
    margin:0;

    font-family:'TTFirsNeue-Medium',Arial,sans-serif;

    font-size:1.45rem;

    color:#4b3d26;

    letter-spacing:.3px;
}

.study-window-content
{
    flex: 1;

    padding:28px 34px;

    overflow-y: auto;
}


/* Mostrar el contenido de los menús independientes */
#study-window-content > .study-menu-accordion:not(:has(> .study-menu-toggle)) > .study-menu-content {
    display: block;
}


.study-window-footer
{
    padding:14px 24px;

    background:#f8f5ef;

    border-top:1px solid #e8dfd1;

    font-family:'TTFirsNeue-Medium', Arial, sans-serif;

    font-size:.95rem;

    color:#6f614b;

    text-align:center;
}

#study-window-close
{
    width:38px;

    height:38px;

    border:none;

    border-radius:50%;

    background:#ffffff;

    color:#7d6746;

    font-size:1.2rem;

    cursor:pointer;

    transition:.25s;

    box-shadow:0 2px 6px rgba(0,0,0,.08);
}

#study-window-close:hover
{
    background:#efe6d4;

    transform:rotate(90deg);
}

.study-window-content::-webkit-scrollbar
{
    width:8px;
}

.study-window-content::-webkit-scrollbar-thumb
{
    background:#d4c3a3;

    border-radius:10px;
}


/* =====================================================
   Botones de administración de Biblia
   ===================================================== */

.admin-bible-actions {
    display: inline-flex;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.admin-bible-action {
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.admin-bible-action-green {
    background-color: #28a745;
}

.admin-bible-action-red {
    background-color: #dc3545;
}

/*======================================================*/
/* Responsive                                           */
/*======================================================*/

@media (max-width:768px)
{
    .study-window-dialog
    {
        width: 100%;

        height: 100%;

        max-width: none;

        max-height: none;

        border-radius: 0;
    }

}
/*=====================================================*/
/* Adorno del Panel de Estudio                         */
/*=====================================================*/

.study-panel-decoration
{
    text-align:center;

    margin:35px 0 10px;
}

.study-panel-decoration img
{
    width:260px;

    max-width:75%;

    height:auto;

    display:inline-block;
}

.study-analysis p
{
    margin-bottom:18px;
}

.chapter-audio {

    margin: 1rem 0 2rem;

}

.chapter-audio-title
{
    margin-bottom:8px;
}

.chapter-audio .prayer-player-play
{
    color:#000000;
}

.chapter-audio .prayer-player-progress-value
{
    background:#000000;
}

.chapter-audio .prayer-player-progress-value::after
{
    background:#000000;
}

.chapter-audio audio {

    width: 100%;
    max-width: 420px;

}

#chapter-info{
    position:fixed;
    bottom:90px;
    left:0;
    right:0;
    height:35px;
    z-index:1000;
}

#chapter-navigation{
    position:fixed;
    bottom:50px;
    left:0;
    right:0;
    height:40px;
    z-index:1000;
}

#app-header{
    position:fixed;
    top:0;
    left:0;
    right:0;

    height:var(--header-height);

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 15px;

    background-image:
        linear-gradient(#0D1B2A,#0D1B2A);

    border-bottom:1px solid #2b2d2e;

    z-index:9999;
}

#footer-book{
    position:fixed;

    left:0;
    right:0;

    bottom:calc(
    var(--footer-main-height)
    +
    var(--footer-navigation-height)
);

height:var(--footer-book-height);

    display:flex;
    justify-content:center;
    align-items:center;
    color:#FFFFFF;

    background-image:
        linear-gradient(
            #6B0F1A,
            #C27C6D
        );

    border-top:1px solid #C27C6D;

    z-index:9999;
}

#footer-book.footer-book-down
{
    background-image:
        linear-gradient(
            #6B0F1A,
            #C27C6D
        );


    bottom:calc(
        var(--footer-main-height)
        +
        var(--footer-gap)
    );
}

#footer-navigation{
    position:fixed;

    left:0;
    right:0;

    bottom:var(--footer-main-height);

height:var(--footer-navigation-height);

    display:flex;
    justify-content:space-around;
    align-items:center;

    background:#E6D39F;

    border-top:1px solid #E6D39F;

    z-index:9999;
}

/*=====================================================*/
/* Enlaces de la barra inferior                        */
/*=====================================================*/

#footer-navigation > div
{
    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

    height:100%;
}

/*=====================================================*/
/* Barra fija inferior                                 */
/*=====================================================*/

#footer-navigation a,
#footer-navigation a:visited,
#footer-navigation a:active
{

    padding-bottom:8px;

    display:flex;

    justify-content:center;

    align-items:center;

    width:100%;

    height:100%;

    line-height:1;

    color:#000000;

    text-decoration:none;

    font-size:1.02rem;

    font-weight:500;

    transition:
        color .20s ease,
        transform .20s ease;
}

#footer-navigation a:hover
{
    color:#b88a2a;

    transform:scale(1.05);
}

#footer-main
{
    position:fixed;

    left:0;
    right:0;
    bottom:0;

    height:var(--footer-main-height);


    display:flex;

    justify-content:center;

    align-items:center;

    gap:28px;

    padding-bottom:10px;

    background:#C48D2E;

    border-top:1px solid #D6B456;

    z-index:9999;
}

#footer-main a
{
    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;
}

#footer-main img
{
    width:38px;

    height:38px;

    display:block;

    transition:
        transform .15s ease;
}

#footer-main a:active img
{
    transform:scale(.90);
}

/*======================================================*/
/* Imagen de subtítulo                                  */
/*======================================================*/

.subtitle-image
{
    width: 100%;

    margin: 15px 0 20px;
}

.subtitle-image img
{
    display: block;

    width: 100%;

    height: auto;

    max-width: 1200px;

    margin: 0 auto;

    border-radius: 8px;
}

.subtitle-view .app-content
{
    padding-bottom:calc(
        var(--footer-main-height)
        +
        var(--footer-book-height)
        + 10px
    );
}

.header-logo img{
    display:block;
    height:70px;
    width:auto;
    max-width:100%;
}

.app-layout{
    width:100%;
    max-width:1200px;
    margin:0 auto;
}

.blessing-footer
{
    text-align:center;

    padding:70px 20px;

    background:#ffffff;
}

.blessing-footer-content
{
    max-width:1200px;

    margin:0 auto;

    padding:0px 0px;

    text-align:center;

    color:#000000;
}

#blessing-footer img{

    max-width:100%;

    height:auto;

}

html,
body
{
    overflow-x:hidden;
}
/*=====================================================*/
/* Bendición                                           */
/*=====================================================*/

.blessing-image
{
    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:30px 0 20px;
}

.blessing-image img
{
    width:min(700px,85vw);

    height:auto;

    display:block;
}

/*=====================================================*/
/* Acordeón Categorías                                 */
/*=====================================================*/

.study-category
{
    border-bottom:1px solid #e8e2d2;
}

.study-subtitle-category
{
    display:flex;

    justify-content:space-between;

    align-items:center;

    text-decoration:none;

    color:#111;

    padding:14px 0;

    cursor:pointer;
}

.study-category-title
{
    flex:1;

    font-family:"TTFirsNeue-Medium",sans-serif;

    font-size:1.08rem;
}

.study-category-arrow
{
    color:#b88a2a;

    transition:transform .25s;
}

.study-category-content
{
    display:none;

    padding:0 0 14px 22px;
}

/*=====================================================*/
/* Espacio superior de la aplicación                   */
/*=====================================================*/

#app-top-space
{
    height:100px;
}

/*===============================================*/
/* PIE 2 : REPRODUCTOR                           */
/*===============================================*/

#footer-prayer-player{

    position:fixed;

    left:0;

    right:0;

    bottom:var(--footer-main-height);

    min-height:var(--footer-navigation-height);

    display:flex;

    justify-content:center;

    align-items:center;

    background:#ffffff;

    border-top:1px solid #d9d9d9;

    z-index:999;

}

.prayer-player
{
    width:400px;
    height:auto;

    display:flex;
    align-items:center;

    box-sizing:border-box;

    padding:0 10px;

    gap:8px;

    transform:translateY(-5px);
}

.prayer-player-play,
.prayer-player-volume
{
    width:30px;
    height:30px;

    padding:0;
    margin:0;

    border:0;
    background:none;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    font-size:2.0rem;

    color:#ffffff;
}

.prayer-player-progress
{
    flex:1;
}

.prayer-player-progress-bar
{
    width:100%;
    height:5px;

    background:#d9d9d9;

    border-radius:2px;
}

.prayer-player-progress-value
{
    width:0;
    height:100%;

    background:#777777;

    border-radius:2px;

    position:relative;
}

.prayer-player-progress-value::after
{
    content:"";

    position:absolute;

    right:-5px;
    top:50%;

    width:10px;
    height:10px;

    background:#777777;

    border-radius:50%;

    transform:translateY(-50%);
}

/*======================================================*/
/* Subtítulo - adaptación a otras dimensiones           */
/*======================================================*/

@media (max-width:1200px)
{

    .app-layout{
    width:90%;
    max-width:1200px;
    margin:0 auto;
}

    .home-daily-verse + .blessing-footer
    {
        margin-top:30px;
    }

    .subtitle-view .app-content
    {
        padding-left:12px;

        padding-right:12px;

        padding-top:30px;

        padding-bottom:30px;

        box-sizing:border-box;
    }

    .subtitle-view h2.chapter-title
    {
        margin-top:0;
        margin-bottom:0;
    }

    .subtitle-image
    {
        margin-top:0 !important;

        margin-left:-12px;

        margin-right:-12px;

        width:calc(100% + 24px);
    }

    .subtitle-image img
    {
        width:100%;

        height:auto;

        display:block;

        margin-top:0;
    }



    .blessing-footer
{
    padding:2px;
    box-sizing:border-box;
}

.blessing-image
{
    padding:2px;
    box-sizing:border-box;
}

.blessing-image img
{

    box-sizing:border-box;
}

.blessing-footer
{
    margin-bottom:
        calc(
            var(--footer-main-height)
            +
            var(--footer-navigation-height)
            +
            var(--footer-book-height)
            + 10px
        );
}

.app-layout:not(.subtitle-view) .app-content
{
    padding-top:10px;

    padding-left:12px;

    padding-right:12px;

    padding-bottom:30px;

    box-sizing:border-box;
}

.header-logo img{
    display:block;
    height:auto;
    width:290px;
    max-width:100%;
}



}

/*======================================================*/
/* Ventana de Referencias - otras dimensiones           */
/*======================================================*/

@media (max-width:1200px)
{
    .study-window-panel
    {
        width:calc(100% - 24px);

        max-width:none;

        box-sizing:border-box;
    }

    .study-window-content
    {
        padding:16px 12px;
    }

    .study-window-header
    {
        padding:12px 16px;
    }

    .study-window-footer
    {
        padding:10px 12px;
    }
#study-window-close
{
    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:#ffffff;

    color:#7d6746;

    font-size:1.55rem;

    cursor:pointer;

    box-shadow:0 2px 6px rgba(0,0,0,.08);

    transition:
        background .25s ease,
        transform .25s ease;
}

.accordion-window-close:hover
{
    background:#efe6d4;

    transform:rotate(90deg);
}

#footer-prayer-player
{
    height:60px;
    min-height:60px;
    box-sizing:border-box;
    background:transparent;
}

.prayer-player
{
    width:100%;
    height:100%;

    display:flex;
    align-items:center;

    box-sizing:border-box;

    padding:0 10px;

    gap:8px;

    transform:translateY(-3px);
}

.prayer-player-play,
.prayer-player-volume
{
    width:40px;
    height:40px;

    padding:0;
    margin:0;

    border:0;
    background:none;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    font-size:2.0rem;

    color:#ffffff;
}

.prayer-player-progress
{
    flex:1;
}

.prayer-player-progress-bar
{
    width:100%;
    height:5px;

    background:#d9d9d9;

    border-radius:2px;
}

.prayer-player-progress-value
{
    width:0;
    height:100%;

    background:#777777;

    border-radius:2px;
}

/*======================================================*/
/* Triángulos anterior y siguiente                     */
/*======================================================*/
#footer-navigation a:hover {
font-size:0;
    transform:scale(1.05);
}

#footer-navigation .chapter-nav-button {
    font-size: 0;
}

#footer-navigation .chapter-nav-button::before {
    content: "";

    display: block;

    width: 0;
    height: 0;

    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;

    transition: border-color .20s ease;
}

/* ANTERIOR */
#footer-navigation .chapter-nav-previous::before {
    border-right-width: 17px;
    border-right-style: solid;
    border-right-color: #000000;
}

/* SIGUIENTE */
#footer-navigation .chapter-nav-next::before {
    border-left-width: 17px;
    border-left-style: solid;
    border-left-color: #000000;
}

/* HOVER ANTERIOR */
#footer-navigation .chapter-nav-previous:hover::before {
    border-right-color: #b88a2a;
}

/* HOVER SIGUIENTE */
#footer-navigation .chapter-nav-next:hover::before {
    border-left-color: #b88a2a;
}

#footer-book
{
font-size:1.2rem;

    color:#ffffff;

}

}
