/* ==========================================================================
   Orações
   Cópia de `site-antigo/site-UL/src/pages/prayers/prayer.css` e
   `cardprayer.css`, juntos numa folha só — eram dois arquivos porque eram dois
   componentes React, e aqui é uma página.

   Esta folha e a de Defesas são quase a mesma: no site antigo uma foi feita a
   partir da outra, e as diferenças reais são cinco, todas de cor no card
   (azul-índigo aqui, prata lá), mais a face do título e o `pointer-events` do
   indicador. Estão assinaladas onde aparecem.
   ========================================================================== */

@import url("/src/pages/comum/base.css");
@import url("/src/pages/comum/nav.css");
@import url("/src/pages/comum/fundo.css");
@import url("/src/pages/comum/cobras.css");

/* =========================================
   PRAYERS PAGE
========================================= */

.prayer-section {
    position: relative;
    background: transparent;
    color: #f2f2f2;
    height: 100vh;
}

.prayer-sticky {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 768px) {
    .prayer-sticky {
        flex-direction: row;
    }
}

/* ── PAINEL ESQUERDO ── */
.prayer-panel-left {
    position: relative;
    z-index: 20;
    display: flex;
    height: 25%;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(2px);
    transition: all 0.5s;
}

@media (min-width: 768px) {
    .prayer-panel-left {
        height: 100%;
        width: 50%;
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .prayer-panel-left {
        padding: 3rem 5rem;
    }
}

@media (min-width: 1280px) {
    .prayer-panel-left {
        padding: 3rem 6rem;
    }
}

/* Category Tabs */
.prayer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .prayer-tabs {
        margin-bottom: 2.5rem;
    }
}

/* Os três botões que trocam o tipo de oração.

   Os números do original eram para monitor: 9px de corpo no celular, borda
   branca a 10% e texto a 40%. Num telefone isso não é discreto, é invisível —
   e 9px com 0.375rem de padding dá um alvo de toque de menos de 25px, contra
   os 44px que se recomenda para o dedo. Quem não enxerga o botão não descobre
   que a página tem três categorias.

   Aqui o corpo sobe para 11px no celular, o alvo de toque vai a 40px de
   altura, e a inativa sai de 40% para 62% — apagada em relação à ativa, que é
   o que a distinção pede, mas legível sozinha. No monitor os números seguem
   os do original. */
.prayer-tab {
    border-radius: 9999px;
    border: 1px solid;
    min-height: 2.5rem;              /* 40px de alvo de toque */
    padding: 0.5rem 1.05rem;
    font-family: monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
}

@media (min-width: 768px) {
    .prayer-tab {
        min-height: 0;
        padding: 0.375rem 1rem;
        letter-spacing: 0.15em;
    }
}

.prayer-tab--active {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.14);
    color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.prayer-tab--inactive {
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 768px) {
    .prayer-tab--active { border-color: rgba(255, 255, 255, 0.3); background-color: rgba(255, 255, 255, 0.1); }
    .prayer-tab--inactive { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); }
}

.prayer-tab--inactive:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
}

/* Title area */
.prayer-title-area {
    position: relative;
    height: fit-content;
    min-height: 60px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .prayer-title-area {
        min-height: 300px;
    }
}

.prayer-motion-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prayer-title {
    margin-bottom: 0.5rem;
    font-family: var(--font-headline, sans-serif);
    font-weight: 700;
    color: transparent;
    background-image: linear-gradient(90deg, #F8F9FA 0%, #DDE0E3 50%, #9BA1A6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .prayer-title {
        margin-bottom: 1.5rem;
    }
}

.prayer-description {
    display: none;
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #a3a3a3;
    font-weight: 300;
}

@media (min-width: 768px) {
    .prayer-description {
        display: block;
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
}

.prayer-progress-track {
    display: none;
    margin-top: 1rem;
    height: 2px;
    width: 100%;
    max-width: 20rem;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .prayer-progress-track {
        display: block;
    }
}

.prayer-progress-bar {
    height: 100%;
    background: white;
    box-shadow: 0 0 8px #fff;
    transition: width 0.5s ease;
}

/* Scroll Indicator */
.prayer-scroll-indicator {
    pointer-events: none;
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
    .prayer-scroll-indicator {
        bottom: 3rem;
        left: 3rem;
    }
}

@media (min-width: 1024px) {
    .prayer-scroll-indicator {
        left: 5rem;
    }
}

@media (min-width: 1280px) {
    .prayer-scroll-indicator {
        left: 6rem;
    }
}

/* O invólucro que sobe e desce. No original era um <motion.div> sem classe,
   criado só para receber a animação; aqui precisa de nome para o GSAP achar. */
.prayer-scroll-bob {
    display: flex;
    align-items: center;
}

.prayer-scroll-icon {
    width: 1rem;
    height: 1rem;
}

@media (min-width: 768px) {
    .prayer-scroll-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.prayer-scroll-text {
    font-family: monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

@media (min-width: 768px) {
    .prayer-scroll-text {
        font-size: 10px;
    }
}

/* ── PAINEL DIREITO: CARDS ── */
.prayer-panel-right {
    position: relative;
    height: 75%;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .prayer-panel-right {
        height: 100%;
        width: 50%;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.prayer-cards-viewport {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .prayer-cards-viewport {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .prayer-cards-viewport {
        padding: 3rem;
    }
}

.prayer-card-slot {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10;
}

@media (min-width: 768px) {
    .prayer-card-slot {
        padding: 3rem;
    }
}

/* =========================================
   CARD PRAYER
========================================= */

.card-prayer {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 550px;
    flex-direction: column;
    border-radius: 2rem;
    /* difere de Defesas: indigo em vez de prata */
    border: 1px solid rgba(49, 46, 129, 0.4);
    background-color: #0a0a14;
    padding: 2rem 1.5rem;
    box-shadow: 0 0 80px -20px rgba(40, 20, 80, 0.5);
    backdrop-filter: blur(48px);
    pointer-events: auto;
    max-height: 80svh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .card-prayer {
        border-radius: 2.5rem;
        padding: 2.5rem;
    }
}

/* Soft background glow */
.card-prayer__glow-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 2rem;
}

@media (min-width: 768px) {
    .card-prayer__glow-wrapper {
        border-radius: 2.5rem;
    }
}

.card-prayer__glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at top, rgba(55, 48, 163, 0.2), transparent 60%);
    opacity: 0.8;
    mix-blend-mode: screen;
}

/* Text Body */
.card-prayer__body {
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.25rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.card-prayer__line {
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
}

@media (min-width: 768px) {
    .card-prayer__line {
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .card-prayer__line {
        line-height: 1.625;
    }
}

/* Bottom Watermark */
.card-prayer__watermark {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.card-prayer__watermark-line {
    height: 1px;
    flex: 1;
}

.card-prayer__watermark-line--left {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05));
}

.card-prayer__watermark-line--right {
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.05));
}

.card-prayer__watermark-text {
    font-family: sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(147, 197, 253, 0.6);
    text-transform: uppercase;
}
