/* =========================================================
   FYITK DAILY WINDOW
   ========================================================= */

.daily-window {
    position: fixed;

    top: 110px;
    right: 55px;

    width: min(420px, calc(100vw - 40px));
    max-height: calc(100vh - 150px);

    z-index: 9999;

    background: #111111;

    border: 1px solid #8b7135;
    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(191, 155, 68, 0.08);

    overflow: hidden;

    animation: dailyWindowOpen 0.45s ease-out;
}


/* =========================================================
   TITLE BAR
   ========================================================= */

.daily-window-bar {
    display: flex;

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

    min-height: 48px;

    padding: 0 14px 0 18px;

    background:
        linear-gradient(
            180deg,
            #181818 0%,
            #0e0e0e 100%
        );

    border-bottom: 1px solid #6e592c;

    cursor: move;
    user-select: none;
    touch-action: none;
}

.daily-window.is-dragging {
    user-select: none;
}

.daily-window-brand {
    display: flex;

    align-items: center;

    gap: 10px;

    font-family: Arial, Helvetica, sans-serif;
}


.daily-window-mark {
    color: #c6a45b;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}


.daily-window-label {
    color: #aaaaaa;

    font-size: 0.7rem;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.daily-window-close {
    appearance: none;

    width: 34px;
    height: 34px;

    padding: 0;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 50%;

    color: #999999;

    font-size: 1.45rem;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}


.daily-window-close:hover {
    color: #d0af63;

    border-color: #695425;

    background: rgba(255, 255, 255, 0.025);
}


/* =========================================================
   PARCHMENT READING AREA
   ========================================================= */

.daily-window-content {
    max-height: calc(100vh - 200px);

    overflow-y: auto;

    padding: 26px 30px 24px;

    background:
        linear-gradient(
            145deg,
            #f1ead7 0%,
            #e6dcc4 52%,
            #eee5d1 100%
        );

    color: #29251d;
}


/* Date */

.daily-window-date {
    margin-bottom: 8px;

    color: #80662e;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.66rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}


/* Invitation */

.daily-window-invitation {
    margin: 0;

    color: #5c5445;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.93rem;
    font-style: italic;

    text-align: center;
}


.daily-window-rule {
    width: 65px;
    height: 1px;

    margin: 22px auto 26px;

    background: #a88a48;
}


/* Section headings */

.daily-window-type {
    margin-bottom: 10px;

    color: #80662e;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* Scripture */

.daily-window blockquote.daily-window-scripture {
    margin: 0;

    padding: 0;

    background: transparent;
    background-image: none;

    border: 0;
    border-left: 0;

    border-radius: 0;

    color: #252119 !important;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-style: normal;
    font-weight: 400;

    line-height: 1.65;

    box-shadow: none;

    quotes: none;
}

.daily-window .daily-window-reference {
    color: #665a43 !important;
}

.daily-window-reference {
    margin-top: 13px;

    color: #665a43;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    font-style: italic;

    text-align: right;
}


/* Divider */

.daily-window-divider {
    height: 1px;

    margin: 21px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(122, 96, 43, 0.55),
            transparent
        );
}


/* Meditation */

.daily-window-meditation {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 1rem;
    line-height: 1.7;
}


.daily-window-meditation p {
    margin: 0 0 16px;
}


.daily-window-meditation p:last-child {
    margin-bottom: 0;
}


/* Investigative question */

.daily-window-investigate {
    margin-top: 20px;

    padding: 18px 20px;

    background: rgba(104, 78, 30, 0.07);

    border-left: 3px solid #9c7c39;
}


.daily-window-investigate p {
    margin: 0;

    color: #30291e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-style: italic;

    line-height: 1.55;
}


/* =========================================================
   FOOTER
   ========================================================= */

.daily-window-footer {
    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid rgba(111, 86, 41, 0.3);
}


.daily-window-motto {
    margin-bottom: 18px;

    color: #6e582b;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    font-style: italic;

    letter-spacing: 0.02em;
    text-align: center;
}


.daily-window-actions {
    display: flex;

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

    gap: 12px;
}


.daily-window-explore,
.daily-window-dismiss {
    display: inline-flex;

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

    min-height: 38px;

    padding: 8px 13px;

    border-radius: 4px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}


.daily-window-explore {
    background: #262017;

    border: 1px solid #262017;

    color: #d2b36b;
}


.daily-window-dismiss {
    appearance: none;

    background: transparent;

    border: 1px solid #917541;

    color: #655128;
}


/* =========================================================
   OPENING ANIMATION
   ========================================================= */

@keyframes dailyWindowOpen {

    from {
        opacity: 0;

        transform: translateY(14px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   MOBILE / iPHONE
   ========================================================= */

@media (max-width: 700px) {

    .daily-window {
        top: 20px;
        right: 16px;
        left: 16px;

        width: auto;

        max-height: calc(100dvh - 40px);

        border-radius: 7px;
    }


    .daily-window-bar {
        min-height: 50px;

        cursor: default;
    }


    .daily-window-content {
        max-height: calc(100dvh - 92px);

        padding: 28px 24px 25px;
    }


    .daily-window-scripture {
        font-size: 1.15rem;
    }


    .daily-window-actions {
        flex-direction: column;
    }


    .daily-window-explore,
    .daily-window-dismiss {
        width: 100%;
    }

}