/* =========================================================
   LOVEWORLD KINGDOM
   ORAÇÃO DO DIA — POPUP
   ========================================================= */

.daily-prayer {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 15000;

    width: min(390px, calc(100vw - 32px));

    background:
        linear-gradient(
            145deg,
            rgba(28, 8, 3, 0.98),
            rgba(12, 3, 1, 0.98)
        );

    border: 1px solid rgba(201, 162, 77, 0.45);
    border-radius: 20px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(201, 162, 77, 0.08);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(25px) scale(0.96);

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.daily-prayer.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Linha dourada superior */

.daily-prayer::before {
    content: "";
    display: block;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold-light),
            transparent
        );
}

/* Cabeçalho */

.daily-prayer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 18px 10px;
}

.daily-prayer-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-prayer-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(201, 162, 77, 0.12);
    border: 1px solid rgba(201, 162, 77, 0.25);

    color: var(--gold-light);
    font-size: 17px;
}

.daily-prayer-kicker {
    display: block;

    color: var(--gold-light);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 3px;
}

.daily-prayer-title {
    margin: 0;

    color: #fff;

    font-family: "Barlow Condensed", sans-serif;

    font-size: 18px;
    line-height: 1.25;
}

.daily-prayer-close {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;

    background: rgba(255,255,255,.06);

    color: rgba(255,255,255,.8);

    font-size: 21px;
    line-height: 1;

    cursor: pointer;

    transition: var(--transition);
}

.daily-prayer-close:hover {
    background: rgba(201,162,77,.16);
    border-color: rgba(201,162,77,.35);
    color: var(--gold-light);
}

/* Conteúdo */

.daily-prayer-body {
    padding: 10px 18px 18px;
}

.daily-prayer-text {
    margin: 0;

    color: rgba(255,255,255,.84);

    font-family: "Barlow Condensed", sans-serif;

    font-size: 14px;
    line-height: 1.75;

    white-space: pre-line;
}

.daily-prayer-date {
    display: block;

    margin-top: 13px;

    color: rgba(255,255,255,.45);

    font-size: 11px;
}

/* Áudio */

.daily-prayer-audio {
    width: 100%;

    margin-top: 14px;

    border-radius: 10px;
}

/* Estado de carregamento */

.daily-prayer-loading {
    padding: 20px;

    color: rgba(255,255,255,.6);

    text-align: center;

    font-size: 13px;
}

/* Badge inferior */

.daily-prayer-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-top: 1px solid rgba(255,255,255,.07);

    color: rgba(255,255,255,.42);

    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Botão flutuante quando popup está fechado */

.daily-prayer-trigger {
    position: fixed;
    right: 22px;
    bottom: 22px;

    z-index: 14999;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(201,162,77,.55);
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #2b1005,
            #100301
        );

    color: var(--gold-light);

    font-size: 21px;

    cursor: pointer;

    box-shadow:
        0 12px 35px rgba(0,0,0,.4),
        0 0 25px rgba(201,162,77,.12);

    transition: var(--transition);
}

.daily-prayer-trigger:hover {
    transform: translateY(-3px);
    border-color: var(--gold-light);
}

.daily-prayer-trigger.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.8);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .daily-prayer {
        right: 10px;
        bottom: 10px;

        width: calc(100vw - 20px);

        border-radius: 17px;
    }

    .daily-prayer-header {
        padding: 15px 14px 8px;
    }

    .daily-prayer-body {
        padding: 8px 14px 15px;
    }

    .daily-prayer-title {
        font-size: 16px;
    }

    .daily-prayer-text {
        font-size: 13px;
        line-height: 1.65;
    }

    .daily-prayer-trigger {
        right: 15px;
        bottom: 15px;

        width: 52px;
        height: 52px;

        font-size: 19px;
    }
}