:root {
    --bg: #FDFCF9;
    --card: #FFFFFF;
    --accent: #4A6741;
    --text-main: #1A1A1A;
    --text-muted: #6C757D;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Navbar Estilo Glass */
.nav-glass {
    background: rgba(253, 252, 249, 0.8);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Home Layout */
.section-view {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Deck de Cartas Imersivo */
.touch-area {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
    /* Necessário para HammerJS */
}

.swipe-card {
    position: absolute;
    width: 320px;
    height: 450px;
    background: var(--card);
    border-radius: 40px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    cursor: grab;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Estados dos Cards */
.card-active {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    z-index: 30;
    opacity: 1;
}

.card-next {
    transform: translate3d(30px, 20px, 0) scale(0.9) rotate(4deg);
    z-index: 20;
    opacity: 0.5;
    pointer-events: none;
}

.card-far {
    transform: translate3d(60px, 40px, 0) scale(0.8) rotate(8deg);
    z-index: 10;
    opacity: 0.2;
    pointer-events: none;
}

.card-out {
    transform: translate3d(-150%, 40px, 0) rotate(-20deg) !important;
    opacity: 0 !important;
}

.illustration-box {
    background: #F1F3F0;
    border-radius: 32px;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

/* Timeline Study View */
#study-view {
    background: #fff;
    z-index: 200;
    position: relative;
}

.timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
    margin-bottom: 100px;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

#scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    z-index: 300;
    width: 0%;
    transition: width 0.2s;
}

.hidden {
    display: none !important;
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-banner.show { transform: translateY(0); }

@media (min-width: 768px) {
    .cookie-banner { flex-direction: row; align-items: center; max-width: 600px; left: auto; }
}

/* Suporte a Imagem nos Cards */
.illustration-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Cores por Categoria */
.cat-historia { --cat-color: #4A6741; --cat-bg: #F1F3F0; }
.cat-profecia { --cat-color: #6A5ACD; --cat-bg: #F0F0FA; }
.cat-sabedoria { --cat-color: #4682B4; --cat-bg: #F0F4F8; }
.cat-evangelho { --cat-color: #D2691E; --cat-bg: #FAF3F0; }

/* Aplicação Dinâmica */
.swipe-card .cat-tag {
    color: var(--cat-color);
    background: var(--cat-bg);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#scroll-indicator.dynamic-color {
    background: var(--current-cat-color) !important;
}

.illustration-box.dynamic-bg {
    background: var(--cat-bg) !important;
}

/* Container de Leitura Refinado */
.reading-content {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
}

/* Citação em Destaque (Pull Quote) */
.pull-quote {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--current-cat-color);
    border-left: 4px solid var(--current-cat-color);
    padding-left: 24px;
    margin: 48px 0;
    letter-spacing: -0.02em;
}

/* Box de Curiosidade (Insight Card) */
.insight-card {
    background: var(--cat-bg);
    border-radius: 24px;
    padding: 32px;
    margin: 40px 0;
    border: 1px solid rgba(0,0,0,0.03);
}

.insight-card h4 {
    color: var(--current-cat-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

/* Texto Principal */
.main-text {
    margin-bottom: 24px;
    font-weight: 400;
}

/* Badge de Versículo */
.verse-badge {
    display: inline-block;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-right: 4px;
}

/* Banner de Cookies - Configuração Base */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: white;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    
    /* Estado Inicial: Escondido abaixo da tela */
    transform: translateY(200%); 
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Estado Ativo: Quando o JS adiciona a classe .show */
.cookie-banner.show {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        max-width: 600px;
        left: 50%;
        margin-left: -300px; /* Centraliza */
    }
}

#home-footer {
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
}