/* ==========================================================================
   Limpezas
   Cópia de `site-antigo/site-UL/src/pages/energyCleasing/energyCleasing.css` e
   `cardEnergyCleasing.css`, juntos numa folha só — eram dois arquivos porque
   eram dois componentes React, e aqui é uma página.

   Esta folha, a de Orações e a de Defesas são quase a mesma: no site antigo
   uma foi feita a partir da outra. As diferenças reais desta são três, e 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/espiral.css");

/* =========================================
   ENERGY CLEASING PAGE
========================================= */

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

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

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

/* ── PAINEL ESQUERDO ── */
.energy-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) {
    .energy-panel-left {
        height: 100%;
        width: 50%;
        padding: 3rem;
    }
}

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

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

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

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

/* Os botões que trocam a categoria. Os números do original eram para
   monitor: 9px de corpo no celular e alvo de toque de menos de 25px, contra
   os 44px que se recomenda para o dedo. No telefone isso não é discreto, é
   invisível. Mesma correção da página de Orações. */
.energy-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) {
    .energy-tab {
        min-height: 0;
        padding: 0.375rem 1rem;
        letter-spacing: 0.15em;
    }
}

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

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

/* No monitor voltam os valores do original. */
@media (min-width: 768px) {
    .energy-tab--inactive { border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); }
}

.energy-tab--inactive:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

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

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

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

.energy-title {
    margin-bottom: 0.5rem;
    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) {
    .energy-title {
        margin-bottom: 1.5rem;
    }
}

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

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

.energy-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) {
    .energy-progress-track {
        display: block;
    }
}

.energy-progress-bar {
    height: 100%;
    background: white;
    box-shadow: 0 0 8px #fff;
}

/* Scroll Indicator */
.energy-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) {
    .energy-scroll-indicator {
        bottom: 3rem;
        left: 3rem;
    }
}

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

@media (min-width: 1280px) {
    .energy-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. */
.energy-scroll-bob {
    display: flex;
    align-items: center;
}

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

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

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

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

/* ── PAINEL DIREITO: CARDS ── */
.energy-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) {
    .energy-panel-right {
        height: 100%;
        width: 50%;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
}

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

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

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

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

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

/* =========================================
   CARD ENERGY CLEASING
========================================= */

.card-energy {
    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-energy {
        border-radius: 2.5rem;
        padding: 2.5rem;
    }
}

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

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

.card-energy__glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* difere de Orações: o halo é menor e mais discreto */
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(55, 48, 163, 0.15), transparent 50%);
    opacity: 0.55;
    mix-blend-mode: screen;
}

/* Text Body */
.card-energy__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-energy__line {
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
}

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

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

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

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

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

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

.card-energy__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;
}
