/* ARQUIVO: css/style.css - VERSÃO PREMIUM FINAL */

/* --- 1. FONTES E VARIÁVEIS --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400&display=swap');

:root {
    --bg-dark: #0F3F4D;
    --bg-light: #0F3F4D;
    --card-base: #2c2c30;
    --accent-gold: #86f2ff;
    --accent-gold-dim: #8a6d3b;
    --smoke-color: rgba(197, 160, 89, 0.6);
    --text-color: #f0f0f0;
    --nav-height: 35px;
}

/* --- 2. CONFIGURAÇÕES GERAIS (BODY) --- */
body {
    margin: 0;
    padding: 0;
    padding-top: 60px;
    background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-dark) 100%);
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    position: relative; /* Para as partículas absolutas */
}

/* --- PARTÍCULAS MÁGICAS (NOVO) --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Fica atrás de tudo */
    pointer-events: none; /* Não atrapalha o clique */
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0.3;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* --- TIPOGRAFIA --- */
h1, h2 {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
    text-align: center;
    margin: 5px 0 1px 0;
    z-index: 10;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

p {
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
}

/* --- 3. BARRA DE NAVEGAÇÃO --- */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: #006699;
    border-bottom: 1px solid var(--accent-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.brand-logo { display: flex; align-items: center; height: 100%; }
.brand-logo img { max-height: 36px; width: auto; display: block; }

.menu-toggle { width: 25px; height: 18px; position: relative; cursor: pointer; z-index: 100000; }
.menu-toggle span { display: block; width: 100%; height: 2px; background-color: var(--accent-gold); border-radius: 2px; position: absolute; left: 0; transition: all 0.3s ease-in-out; }
.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 8px; }
.menu-toggle span:nth-child(3) { top: 16px; }
.menu-toggle.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.nav-menu {
    position: fixed; top: var(--nav-height); right: -100%; width: auto; height: calc(100vh - var(--nav-height));
    background: #111; border-left: 1px solid var(--accent-gold); transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding: 30px 20px; display: flex; flex-direction: column; gap: 20px; z-index: 99998; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}
.nav-menu.active { right: 0; }
.nav-menu a { color: #fff; text-decoration: none; border-bottom: 1px solid #333; padding-bottom: 10px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

/* --- 4. MOLDURA DO JOGO (GAME FRAME) --- */
.game-frame {
    border: 4px double var(--accent-gold);
    border-radius: 15px;
    background: rgba(5,24,31,0.82);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1), inset 0 0 60px rgba(0,0,0,0.8);
    max-width: 1000px;
    width: 90%;
    margin-top: 45px;
    margin-bottom: 20px;
    height: auto !important;
    min-height: 400px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 10px 25px 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* BOTÃO EMBARALHAR (NOVO) */
.btn-shuffle {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 8px 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}
.btn-shuffle:hover {
    background: var(--accent-gold);
    color: #111;
    box-shadow: 0 0 15px var(--accent-gold);
}
 
.tarot-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 298px;
    perspective: 1000px;
    position: relative;
    z-index: 100;
    row-gap: 4px;
}

.subtitle-hero {
    color: #fff;  
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}
/* --- 5. CARTAS --- */
.card-container {
    width: 60px; height: 105px; margin: 0 0 4px -26px; position: relative; cursor: pointer; z-index: 1;
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-container:nth-child(8n + 1) { margin-left: 0; }
.card-container:nth-child(17) { margin-left: 34px; }
.card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.6); }

.card-front {
    background-image: url('../assets/card-back.webp'); background-size: cover; background-position: center; background-color: var(--card-base);
    border: 2px solid #86f2ff;
}
.card-back {
    background-color: #000; background-size: cover; background-position: center; transform: rotateY(180deg);
    border: 1px solid var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold);
}

.card-container:not(.selected):hover { z-index: 100 !important; }
.card-container:not(.selected):hover .card-inner { transform: translateY(-15px) scale(1.1); box-shadow: 0 0 20px var(--smoke-color); }
 
.card-container.selected { position: fixed; top: 25%; left: 50%; margin: 0; z-index: 999999 !important; transform: translate(-50%, -50%) scale(4) !important; }
.card-container.selected .card-inner { transform: rotateY(180deg); box-shadow: 0 0 60px rgba(197, 160, 89, 0.9); }
.fade-out { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }

/* --- 6. RESULTADO --- */
.result-box {
    background: rgba(20, 20, 22, 0.9); padding: 5px; border-radius: 10px; border: 1px solid var(--accent-gold);
    width: 100%; max-width: 600px; box-sizing: border-box; text-align: center; backdrop-filter: blur(5px);
    margin: 0 auto; opacity: 0; animation: fadeIn 1.5s ease-out forwards;
}
.result-box h2 { font-size: 1.3rem; border-bottom: 1px solid rgba(197, 160, 89, 0.3); padding-bottom: 15px; }

.frame-resultado {
    margin-top: 20px;  !important;
    min-height: 500px;  
}

.card-reveal-img {
    max-width: 100%; width: 200px; height: auto; border-radius: 10px; border: 2px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(197,160,89, 0.4); margin-bottom: 20px;margin-top: 10px;
    opacity: 0; animation: revealFlip 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; animation-delay: 0.3s;
}
.interpretation { font-size: 1.05rem; line-height: 1.6; color: #ddd; text-align: justify; margin-bottom: 30px; }

.btn-again {
    display: inline-block; color: var(--accent-gold); text-decoration: none; border: 1px solid var(--accent-gold);
    padding: 12px 30px; border-radius: 50px; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; transition: all 0.3s ease;
}
.btn-again:hover { background: var(--accent-gold); color: #000; box-shadow: 0 0 20px var(--accent-gold); }

/* BOTÃO WHATSAPP (NOVO) */
.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(45deg, #25D366, #128C7E); color: white;
    padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold;
    margin-top: 15px; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); transition: transform 0.3s ease;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5); }

/* --- 7. PRELOAD E ANIMAÇÕES --- */
.preload-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.preload-content {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(134, 242, 255, 0.75);
    border-radius: 14px;
    padding: 12px 10px 20px;
    box-sizing: border-box;
}

.preload-banner-slot {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin: 24px auto 0;
}

.crystal-ball {
    width: 120px; height: 120px; margin: 50px auto; position: relative;
    border-radius: 18px;
    transform: rotate(45deg);
    background: linear-gradient(145deg, #0F3F4D 10%, rgba(5,24,31,0.82) 55%, #0F3F4D 100%);
    border: 1px solid rgba(134, 242, 255, 0.55);
    box-shadow: 0 0 18px rgba(134, 242, 255, 0.45), inset 0 0 18px rgba(134, 242, 255, 0.22);
    animation: mysticPulse 2.2s infinite ease-in-out;
}
.crystal-ball::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 12px;
    background: radial-gradient(circle at 35% 30%, rgba(134, 242, 255, 0.75) 0%, rgba(46, 186, 214, 0.45) 45%, rgba(5,24,31,0.82) 100%);
}
.crystal-ball::after {
    content: "";
    position: absolute;
    inset: 32px;
    border-radius: 8px;
    background: rgba(134, 242, 255, 0.18);
    filter: blur(1px);
}
.loading-text { font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--accent-gold); letter-spacing: 2px; margin-top: 20px; text-transform: uppercase; animation: blink 2s infinite; }


.ads-container {
  width: 100%;
  max-width: 728px;
  min-width: 300px;
  margin: 20px auto;
  flex-shrink: 0;
}

#sobre {
    max-width: 800px;
    margin: 5px auto;
    padding: 20px;
    color: #ccc;
    text-align: justify;
    line-height: 1.6;
    position: relative;
    z-index: 10;
}

#sobre h2 {
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 20px;
}

#sobre h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-top: 20px;
    text-align: center;
}


@keyframes mysticPulse {
    0% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 0 14px rgba(134, 242, 255, 0.35), inset 0 0 12px rgba(134, 242, 255, 0.18);
    }
    50% {
        transform: rotate(45deg) scale(1.08);
        box-shadow: 0 0 34px rgba(134, 242, 255, 0.75), inset 0 0 24px rgba(134, 242, 255, 0.35);
    }
    100% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 0 14px rgba(134, 242, 255, 0.35), inset 0 0 12px rgba(134, 242, 255, 0.18);
    }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes revealFlip { 0% { transform: perspective(1000px) rotateY(90deg); opacity: 0; } 100% { transform: perspective(1000px) rotateY(0deg); opacity: 1; } }

/* --- 8. RESPONSIVIDADE --- */
/* --- TELAS GRANDES (Computadores e Tablets) --- */
@media (min-width: 768px) {
    .tarot-table {
        width: 402px;
        row-gap: 6px;
    }
    .card-container { width: 80px; height: 140px; margin: 0 0 6px -34px; }
    .card-container:nth-child(17) { margin-left: 46px; }
    h1 { font-size: 2.5rem; }
    .game-frame { padding: 40px; border-width: 6px; margin-top: 10px; }
    
    /* Carta abrindo mais em cima (top 35%) e com zoom ideal para desktop (scale 3) */
    .card-container.selected { 
        top: 35% !important; 
        transform: translate(-50%, -50%) scale(3) !important; 
    }
    .frame-resultado {
       margin-top: 5px !important; /* Mantém o alinhamento perfeito no desktop */
    }
}

/* --- TELAS PEQUENAS (Celulares) --- */
@media (max-width: 640px) {
    body { padding-top: 5px; }
    
    /* Aqui entra o ajuste responsivo do nosso subtítulo */
    .subtitle-hero {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 15px; 
    }
    }
