/* 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: #111111;
    --bg-light: #2b2b30;
    --card-base: #2c2c30;
    --accent-gold: #c5a059;
    --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: rgba(15, 15, 15, 0.98);
    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: 25px; 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: 200px; 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(0, 0, 0, 0.3);
    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: 10px;
    margin-bottom: 40px;
    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: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.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: center; align-items: center; width: 100%; perspective: 1000px; }

/* --- 5. CARTAS --- */
.card-container {
    width: 60px; height: 105px; margin: -8px -4px; position: relative; cursor: pointer; z-index: 1;
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.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.jpg'); background-size: cover; background-position: center; background-color: var(--card-base);
    border: 2px solid #C3A835;
}
.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: 50%; left: 50%; margin: 0; z-index: 20000 !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; }
.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 --- */
.crystal-ball {
    width: 120px; height: 120px; margin: 50px auto; border-radius: 50%; position: relative;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, rgba(197, 160, 89, 0.6) 40%, rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 0 30px var(--accent-gold), inset 0 0 20px rgba(255,255,255,0.2);
    animation: mysticPulse 2s infinite ease-in-out;
}
.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;
}


@keyframes mysticPulse { 0% { transform: scale(1); box-shadow: 0 0 25px var(--accent-gold); } 50% { transform: scale(1.05); box-shadow: 0 0 50px var(--accent-gold), 0 0 15px #fff; } 100% { transform: scale(1); box-shadow: 0 0 25px var(--accent-gold); } }
@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 --- */
@media (min-width: 768px) {
    .card-container { width: 80px; height: 140px; margin: -15px -10px; }
    h1 { font-size: 2.5rem; }
    .game-frame { padding: 40px; border-width: 6px; }
    .card-container.selected { transform: translate(-50%, -50%) scale(3) !important; }
}