/* Oracculous - Estilos Customizados & Efeitos RPG */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800;900&family=Orbitron:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  /* Marca e Lettering Exclusivo da Logo */
  --font-logo: 'Cinzel', serif;

  /* Sistema Tipográfico Oficial do App Oracculous (Ascension System) */
  --font-title: 'Orbitron', sans-serif;
  --font-sub: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Aliases para Preservar Retrocompatibilidade */
  --font-tech: var(--font-title);
  --font-mystic: var(--font-title);
  --font-sans: var(--font-body);
  
  /* Paleta Oficial do App Oracculous */
  --app-bg: #100E1B;
  --app-panel: rgba(20, 15, 38, 0.75);
  --app-stat: rgba(28, 20, 54, 0.65);
  --app-border: #37304F;
  --primary-purple: #9B6FD9;
  --purple-light: #B98FE0;
  --gold-accent: #E8B44D;
  --arcane-cyan: #5AA9E6;
  --success-green: #6FD9A0;
  --accent-pink: #E8709B;
  --dark-bg: #07050e;
}

/* ==========================================
   CLASSES TIPOGRÁFICAS PADRONIZADAS
   ========================================== */

/* Lettering da Marca Oracculous */
.font-logo {
  font-family: var(--font-logo);
  letter-spacing: 0.12em;
}

/* Títulos do Sistema (App Headings, Classes, Ranks) */
.font-title,
.font-tech,
.font-mystic {
  font-family: var(--font-title);
  letter-spacing: 0.035em;
}

/* Subtítulos, Chamadas, Interfaces e Menus */
.font-sub,
.font-interface {
  font-family: var(--font-sub);
  letter-spacing: 0.025em;
}

/* Indicadores de Sistema: Números, Níveis, XP, Ranks, Ouro */
.font-mono-tech,
.font-mono,
.font-system {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* Eyebrows e Tags Técnicas do Sistema */
.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Leitura e Textos Longos */
.font-body {
  font-family: var(--font-body);
}

/* Normalização de Títulos do Sistema (Orbitron) */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  letter-spacing: 0.03em;
}

h1 {
  line-height: 1.15;
}

h2 {
  line-height: 1.22;
}

h3, h4 {
  line-height: 1.3;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: #e2e8f0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.15), transparent 45%),
    radial-gradient(circle at 10% 40%, rgba(0, 229, 255, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 183, 0, 0.06), transparent 35%);
}

main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

button {
  font-family: var(--font-sub);
}

/* Brilho e Textos Gradientes */
.text-gradient-mystic {
  background: linear-gradient(135deg, #ffffff 10%, #d8b4fe 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #a5f3fc 0%, #06b6d4 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bordas iluminadas e Glassmorphism */
.glass-panel {
  background: rgba(18, 14, 33, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.18);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(138, 43, 226, 0.25);
}

.oracle-aura {
  position: relative;
}

.oracle-aura::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), rgba(6, 182, 212, 0.2), transparent 70%);
  filter: blur(25px);
  z-index: -1;
  animation: pulse-glow 5s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.animate-float {
  animation: float-slow 6s ease-in-out infinite;
}

/* Barra de progresso RPG */
.rpg-bar-fill {
  background: linear-gradient(90deg, #9333ea, #3b82f6, #06b6d4);
  position: relative;
  overflow: hidden;
}

.rpg-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

/* Partículas místicas de fundo */
#canvas-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Botão Google Play estilizado */
.btn-google-play {
  background: linear-gradient(135deg, #18132b, #120e22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.btn-google-play:hover {
  background: linear-gradient(135deg, #221a3e, #18132e);
  border-color: #a855f7;
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}

/* Links de Navegação & Estado Ativo (Scrollspy) */
.nav-link {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  color: #94a3b8;
  padding: 0.25rem 0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-link:hover {
  color: #f1f5f9;
}

.nav-link.active {
  color: #e9d5ff;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c084fc, #818cf8);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.8);
}

/* Mobile Nav Links */
.mobile-nav-link {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
}

.mobile-nav-link:hover {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
}

.mobile-nav-link.active {
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  border-left: 3px solid #c084fc;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.4);
}

/* ==========================================
   A VOZ DO ORÁCULO (INTERLÚDIOS NARRATIVOS)
   ========================================== */
.oracle-voice-banner {
  background: radial-gradient(ellipse at center, rgba(30, 20, 58, 0.7) 0%, rgba(10, 7, 22, 0.8) 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  position: relative;
  overflow: hidden;
}

.oracle-voice-banner p {
  font-family: var(--font-sub);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.oracle-voice-banner span.oracle-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.oracle-voice-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 80px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}

/* ==========================================
   LINHA DE EVOLUÇÃO DAS MOLDURAS (NÍVEL 1 A 100)
   ========================================== */
.tier-ferro {
  border-color: #64748b;
  box-shadow: 0 4px 15px rgba(100, 116, 139, 0.2);
}
.tier-cristal {
  border-color: #38bdf8;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}
.tier-ouro {
  border-color: #fbbf24;
  box-shadow: 0 4px 25px rgba(251, 191, 36, 0.35);
}
.tier-mestre {
  border-color: #c084fc;
  box-shadow: 0 4px 25px rgba(192, 132, 252, 0.4);
}
.tier-ascendido {
  border: 2px solid;
  border-image: linear-gradient(135deg, #fef08a, #c084fc, #38bdf8) 1;
  box-shadow: 0 0 35px rgba(192, 132, 252, 0.5), inset 0 0 15px rgba(254, 240, 138, 0.2);
}

/* Efeito pulsante de lista de espera no topo */
.pulse-dot {
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* ==========================================
   ANIMAÇÕES DE ENTRADA & INTERATIVIDADE
   (MOBILE & DESKTOP)
   ========================================== */

/* Animação suave ao rolar a página (Scroll Reveal) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Holographic Scanline na tela do celular */
.phone-screen-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.09) 50%, transparent 100%);
  height: 35%;
  animation: scanlineSweep 5s linear infinite;
  z-index: 25;
}

@keyframes scanlineSweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(350%); }
}

/* XP Flutuante animado no Mockup */
.xp-float-particle {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: #E8B44D;
  text-shadow: 0 0 10px rgba(232, 180, 77, 0.85);
  z-index: 50;
  animation: xpFloatUp 1.4s ease-out forwards;
}

@keyframes xpFloatUp {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.85);
  }
  25% {
    opacity: 1;
    transform: translate(0, -10px) scale(1.2);
  }
  80% {
    opacity: 0.9;
    transform: translate(0, -28px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(0, -42px) scale(0.9);
  }
}

/* Efeito chama de sequência viva */
.flame-pulse {
  animation: flameGlow 2.2s ease-in-out infinite alternate;
}

@keyframes flameGlow {
  0% {
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 7px rgba(245, 158, 11, 0.9));
    transform: scale(1.1);
  }
}

/* Efeito de toque responsivo no mobile */
.glass-panel {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.glass-panel:active {
  transform: scale(0.985);
  border-color: rgba(168, 85, 247, 0.45);
}

/* Entrada suave do menu mobile */
#mobile-menu:not(.hidden) {
  animation: mobileMenuDrop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobileMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulsação de aura no Ascendido */
@keyframes borderGlowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.4), inset 0 0 10px rgba(254, 240, 138, 0.15);
  }
  50% {
    box-shadow: 0 0 45px rgba(192, 132, 252, 0.75), 0 0 20px rgba(254, 240, 138, 0.35), inset 0 0 18px rgba(254, 240, 138, 0.25);
  }
}

.tier-ascendido {
  animation: borderGlowPulse 4s ease-in-out infinite;
}

/* Ícone de missão interativa */
.mockup-mission-interactive {
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.mockup-mission-interactive:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.6);
}

.mockup-mission-interactive:active {
  transform: scale(0.98);
}

