/* ============================================
   PORTAS SERÃO ABERTAS - Complete Styles v2
   ============================================ */

:root {
    --bg-deep: #06060e;
    --bg-dark: #0a0a16;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --gold-light: #f5d680;
    --gold: #d4a543;
    --gold-dark: #b8892e;
    --gold-glow: rgba(212, 165, 67, 0.4);
    --text-white: #f8f6f0;
    --text-light: #d4d0c8;
    --text-muted: #8a8690;
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

/* Hide scrollbar on all elements */
html, body, .scrollable, .screen-content, .screen {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.scrollable::-webkit-scrollbar,
.screen-content::-webkit-scrollbar,
.screen::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-white);
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Particles & Rays ---- */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.particle {
    position: absolute; width: 3px; height: 3px;
    background: var(--gold-light); border-radius: 50%; opacity: 0;
    animation: particleFloat 8s infinite ease-in-out;
    box-shadow: 0 0 6px var(--gold-glow);
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.7; } 90% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}
.light-rays {
    position: fixed; top: -50%; left: 50%; transform: translateX(-50%);
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg at 50% 0%, transparent 0deg, rgba(212,165,67,0.04) 15deg, transparent 30deg, transparent 60deg, rgba(212,165,67,0.03) 75deg, transparent 90deg, transparent 120deg, rgba(212,165,67,0.02) 135deg, transparent 150deg, transparent 180deg, rgba(212,165,67,0.04) 195deg, transparent 210deg, transparent 240deg, rgba(212,165,67,0.03) 255deg, transparent 270deg, transparent 300deg, rgba(212,165,67,0.02) 315deg, transparent 330deg, transparent 360deg);
    animation: rayRotate 30s linear infinite; z-index: 0; pointer-events: none;
}
@keyframes rayRotate { to { transform: translateX(-50%) rotate(360deg); } }

/* ---- App & Screens ---- */
.app-container { position: relative; z-index: 1; width: 100%; height: 100vh; overflow: hidden; }
.screen {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    opacity: 0; pointer-events: none; transition: opacity 0.8s var(--ease); padding: 20px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.screen.active { opacity: 1; pointer-events: auto; }
.screen-content { max-width: 560px; width: 100%; text-align: center; position: relative; margin: auto 0; }
.screen-content.scrollable { padding-bottom: 2rem; }

/* ---- Jesus Avatar ---- */
.jesus-avatar-large {
    width: 160px; height: 160px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden;
    border: 2px solid rgba(212,165,67,0.3);
    box-shadow: 0 0 40px rgba(212,165,67,0.15), 0 0 80px rgba(212,165,67,0.06);
    animation: avatarGlow 4s ease-in-out infinite;
}
.jesus-avatar-large img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@keyframes avatarGlow {
    0%,100% { box-shadow: 0 0 30px rgba(212,165,67,0.15); }
    50% { box-shadow: 0 0 50px rgba(212,165,67,0.25), 0 0 100px rgba(212,165,67,0.08); }
}

/* ---- Chat Messages (Jesus profile bubble) ---- */
.chat-message { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1.2rem; text-align: left; }
.chat-avatar {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    border: 1.5px solid rgba(212,165,67,0.3);
    box-shadow: 0 0 12px rgba(212,165,67,0.1);
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.chat-bubble {
    background: rgba(212,165,67,0.06); border: 1px solid rgba(212,165,67,0.12);
    border-radius: 4px 18px 18px 18px; padding: 0.9rem 1.2rem; flex: 1;
}
.chat-bubble p {
    font-size: clamp(0.9rem, 2.5vw, 1.02rem); color: var(--text-light);
    line-height: 1.65; font-weight: 300;
}
.chat-bubble p strong { color: var(--gold-light); font-weight: 600; }
.chat-bubble .mt-sm { margin-top: 0.7rem; }
.chat-bubble .verse-inline { color: var(--gold-dark); font-size: 0.8rem; font-weight: 500; margin-top: 0.3rem; }

/* ---- Typography ---- */
.title-main {
    font-family: var(--font-display); font-size: clamp(1.7rem,5vw,2.8rem);
    font-weight: 700; line-height: 1.3; margin-bottom: 1.2rem; letter-spacing: 0.02em;
}
.title-unlock {
    font-family: var(--font-display); font-size: clamp(1.1rem,3vw,1.5rem);
    font-weight: 600; color: var(--gold-light); margin-bottom: 1rem;
}
.title-unlock-big {
    font-family: var(--font-display); font-size: clamp(1.3rem,4vw,2rem);
    font-weight: 700; color: var(--gold); margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--gold-glow); line-height: 1.3;
}
.gold-text { color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }
.subtitle {
    font-size: clamp(0.9rem,2.5vw,1.05rem); color: var(--text-muted);
    margin-bottom: 2rem; font-weight: 300; letter-spacing: 0.04em;
}
.message-text {
    font-size: clamp(0.95rem,2.5vw,1.1rem); color: var(--text-light);
    margin-bottom: 1.5rem; line-height: 1.7; font-weight: 300;
}
.message-text strong { color: var(--text-white); font-weight: 600; }
.divine-glow {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,165,67,0.08) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: -1;
}
.divine-glow.pulse { animation: glowPulse 4s ease-in-out infinite; }
@keyframes glowPulse {
    0%,100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

/* ---- Input ---- */
.input-container { margin-bottom: 1.5rem; max-width: 360px; margin-left: auto; margin-right: auto; }
.divine-input {
    width: 100%; padding: 1rem; background: var(--bg-glass);
    border: 1px solid rgba(212,165,67,0.2); border-radius: 12px;
    color: var(--text-white); font-family: var(--font-body); font-size: 1.05rem;
    text-align: center; outline: none; transition: all 0.4s var(--ease);
}
.divine-input::placeholder { color: var(--text-muted); font-weight: 300; }
.divine-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212,165,67,0.12), inset 0 0 20px rgba(212,165,67,0.03);
}

/* ---- Buttons (ALL GOLDEN) ---- */
.btn-divine {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 0.95rem 2.2rem;
    background: linear-gradient(135deg, rgba(212,165,67,0.2), rgba(184,137,46,0.35));
    border: 1px solid rgba(212,165,67,0.4); border-radius: 60px;
    color: var(--gold-light); font-family: var(--font-body); font-size: 0.8rem;
    font-weight: 600; letter-spacing: 0.14em; cursor: pointer; overflow: hidden;
    transition: all 0.4s var(--ease); min-height: 52px;
}
.btn-divine:hover {
    transform: translateY(-2px); border-color: var(--gold); color: var(--text-white);
    box-shadow: 0 8px 30px var(--gold-glow), 0 0 60px rgba(212,165,67,0.12);
    background: linear-gradient(135deg, rgba(212,165,67,0.3), rgba(184,137,46,0.45));
}
.btn-divine:active { transform: translateY(0); }
.btn-divine:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-divine:disabled:hover { box-shadow: none; transform: none; }
.btn-divine.golden {
    background: linear-gradient(135deg, rgba(212,165,67,0.25), rgba(184,137,46,0.45));
    border-color: rgba(212,165,67,0.5); color: var(--text-white);
}
.btn-divine.golden:hover {
    box-shadow: 0 8px 40px var(--gold-glow), 0 0 80px rgba(212,165,67,0.15);
}
.btn-divine.large { padding: 1.1rem 2.8rem; font-size: 0.85rem; }
.btn-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(212,165,67,0.12) 0%, transparent 70%);
    pointer-events: none; animation: btnGlow 3s ease-in-out infinite;
}
@keyframes btnGlow {
    0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
}

/* ---- Doors ---- */
.doors-animation {
    position: relative; width: 140px; height: 180px; margin: 0 auto 1.5rem; perspective: 800px;
}
.door {
    position: absolute; top: 0; width: 50%; height: 100%;
    background: linear-gradient(180deg, #1a1530, #0d0a1a);
    border: 2px solid rgba(212,165,67,0.3); transform-style: preserve-3d;
}
.door-left { left: 0; transform-origin: left; border-radius: 8px 0 0 8px; }
.door-right { right: 0; transform-origin: right; border-radius: 0 8px 8px 0; }
.screen.active .door-left { animation: doorOpenL 2s 0.5s var(--ease) forwards; }
.screen.active .door-right { animation: doorOpenR 2s 0.5s var(--ease) forwards; }
@keyframes doorOpenL { to { transform: rotateY(-110deg); } }
@keyframes doorOpenR { to { transform: rotateY(110deg); } }
.door-light {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 60%; height: 80%;
    background: radial-gradient(ellipse, rgba(245,214,128,0.6), rgba(212,165,67,0.2) 40%, transparent 70%);
    border-radius: 50%; opacity: 0; animation: doorLight 1.5s 1.5s ease-out forwards;
}
@keyframes doorLight { to { opacity: 1; } }

/* ---- Unlock ---- */
.unlock-animation {
    position: relative; width: 90px; height: 90px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
}
.unlock-animation.big { width: 120px; height: 120px; }
.unlock-ring {
    position: absolute; width: 100%; height: 100%;
    border: 2px solid var(--gold); border-radius: 50%; opacity: 0;
    animation: ringExpand 2s ease-out infinite;
}
.unlock-ring.delay { animation-delay: 0.5s; }
.unlock-ring.delay2 { animation-delay: 1s; }
@keyframes ringExpand {
    0% { transform: scale(0.3); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}
.unlock-icon { font-size: 2.2rem; z-index: 1; animation: unlockPop 0.6s var(--bounce) forwards; }
.unlock-check {
    font-size: 2.8rem; color: var(--gold); z-index: 1;
    animation: unlockPop 0.6s 0.3s var(--bounce) both;
    text-shadow: 0 0 20px var(--gold-glow);
}
@keyframes unlockPop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.unlock-label {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em;
    color: var(--gold-dark); margin-bottom: 0.5rem; text-transform: uppercase;
}

/* ---- Quiz ---- */
.quiz-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.progress-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 3px; transition: width 0.6s var(--ease); width: 0%;
    box-shadow: 0 0 8px rgba(212,165,67,0.3);
}
.progress-text { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.quiz-container { transition: all 0.4s var(--ease); }
.quiz-container.transitioning { opacity: 0; transform: translateY(15px); }

/* Quiz text options */
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-top: 1rem; }
.quiz-option {
    position: relative; padding: 0.9rem 1.3rem; background: var(--bg-glass);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
    color: var(--text-light); font-size: 0.92rem; font-weight: 400;
    text-align: left; cursor: pointer; transition: all 0.3s var(--ease); line-height: 1.5;
}
.quiz-option:hover {
    border-color: rgba(212,165,67,0.3); transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.quiz-option.selected {
    border-color: var(--gold); background: rgba(212,165,67,0.1); color: var(--text-white);
    transform: scale(0.98); box-shadow: 0 0 15px rgba(212,165,67,0.1);
}
.quiz-option.selected::after {
    content: '✓'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--gold); font-weight: 700;
}

/* Quiz image grid (2x2) */
.quiz-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1rem; }
.quiz-image-option {
    position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
    border: 2px solid rgba(255,255,255,0.06); transition: all 0.3s var(--ease);
    aspect-ratio: 1; background: var(--bg-glass);
}
.quiz-image-option img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.quiz-image-option:hover { border-color: rgba(212,165,67,0.4); transform: scale(1.02); }
.quiz-image-option:hover img { transform: scale(1.05); }
.quiz-image-option .img-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 2rem 0.7rem 0.7rem; font-size: 0.75rem; font-weight: 600;
    color: var(--text-white); text-align: center; letter-spacing: 0.03em;
}
.quiz-image-option.selected {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212,165,67,0.2), inset 0 0 30px rgba(212,165,67,0.05);
}
.quiz-image-option.selected::after {
    content: '✓'; position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; background: var(--gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: #000; z-index: 2;
}

/* ---- Reveal Image ---- */
.reveal-image-container {
    width: 280px; height: 280px; margin: 0 auto 1.5rem; border-radius: 18px;
    overflow: hidden; border: 2px solid rgba(212,165,67,0.3);
    box-shadow: 0 0 40px rgba(212,165,67,0.12), 0 10px 40px rgba(0,0,0,0.3);
    animation: revealPop 0.8s 0.2s var(--bounce) both;
}
.reveal-image-container img { width: 100%; height: 100%; object-fit: cover; }
@keyframes revealPop { 0% { transform: scale(0.5) rotate(-3deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

/* ---- Loading Screen ---- */
.loading-container { margin-top: 1.5rem; }
.loading-spinner {
    width: 50px; height: 50px; margin: 0 auto 1.5rem;
    border: 3px solid rgba(212,165,67,0.15); border-top-color: var(--gold);
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
    font-family: var(--font-accent); font-size: 1.1rem; font-style: italic;
    color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.5;
}
.loading-bar {
    width: 80%; max-width: 300px; height: 4px; margin: 0 auto 1rem;
    background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden;
}
.loading-fill {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 4px; transition: width 0.5s var(--ease);
}
.loading-sub { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; }

/* ---- Results Grid ---- */
.results-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.5rem 0;
}
.result-card {
    border-radius: 12px; overflow: hidden; border: 1px solid rgba(212,165,67,0.2);
    background: rgba(212,165,67,0.05); animation: cardPop 0.5s var(--bounce) both;
}
.result-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.result-card .result-label {
    padding: 0.5rem; font-size: 0.7rem; font-weight: 600; color: var(--gold-light);
    text-align: center; letter-spacing: 0.05em;
}

/* ---- Story Sections ---- */
.story-section { margin-bottom: 2rem; text-align: left; }
.story-section p {
    font-size: 0.95rem; color: var(--text-light); line-height: 1.75; margin-bottom: 0.8rem; font-weight: 300;
}
.story-section p strong { color: var(--text-white); font-weight: 600; }
.story-section p em { color: var(--gold-light); font-style: italic; }
.story-section .story-highlight {
    background: rgba(212,165,67,0.06); border-left: 3px solid var(--gold);
    padding: 1rem 1.2rem; margin: 1rem 0; border-radius: 0 10px 10px 0;
}
.story-section .story-emoji { font-size: 1.1rem; margin-right: 4px; }
.story-verse {
    text-align: center; padding: 1.5rem; margin: 1.5rem 0;
    background: rgba(212,165,67,0.04); border-radius: 14px;
    border: 1px solid rgba(212,165,67,0.1);
}
.story-verse p { font-family: var(--font-accent); font-style: italic; color: var(--text-muted); text-align: center; }
.story-verse .ref { font-family: var(--font-body); font-size: 0.8rem; color: var(--gold-dark); font-style: normal; }
.story-divider { width: 60px; height: 1px; background: rgba(212,165,67,0.2); margin: 2rem auto; }

/* ---- Final CTA ---- */
.final-section { text-align: center; }
.final-section p { font-size: 0.95rem; color: var(--text-light); line-height: 1.75; margin-bottom: 0.8rem; }
.final-section p strong { color: var(--text-white); }
.final-section .gold-strong { color: var(--gold-light); font-weight: 700; }
.urgency-badge {
    display: inline-block; padding: 0.5rem 1.2rem; margin: 1rem 0;
    background: rgba(200,50,50,0.15); border: 1px solid rgba(200,50,50,0.3);
    border-radius: 8px; font-size: 0.8rem; color: #f5a0a0; font-weight: 600;
}

/* ---- Animations ---- */
.fade-up {
    opacity: 0; transform: translateY(25px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.screen.active .fade-up { opacity: 1; transform: translateY(0); }
.delay-05 { transition-delay: 0.25s !important; }
.delay-1 { transition-delay: 0.5s !important; }
.delay-2 { transition-delay: 0.9s !important; }
.delay-3 { transition-delay: 1.3s !important; }

.sparkle {
    position: fixed; pointer-events: none; z-index: 100;
    animation: sparkleFade 1s ease-out forwards;
}
@keyframes sparkleFade {
    0% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translateY(-100px) scale(0) rotate(180deg); }
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .screen { padding: 14px; }
    .btn-divine { padding: 0.85rem 1.5rem; font-size: 0.72rem; }
    .btn-divine.large { padding: 0.95rem 2rem; }
    .jesus-avatar-large { width: 120px; height: 120px; }
    .reveal-image-container { width: 220px; height: 220px; }
    .chat-avatar { width: 36px; height: 36px; }
    .chat-bubble { padding: 0.7rem 1rem; }
    .quiz-image-option .img-label { font-size: 0.65rem; padding: 1.5rem 0.5rem 0.5rem; }
}
