/* ANE Leitura Astral - Front-end Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --ane-primary: #9333ea;
    --ane-secondary: #c084fc;
    --ane-gold: #fbbf24;
    --ane-gold-light: #fef3c7;
    --ane-dark: #0c0a1d;
    --ane-darker: #050410;
    --ane-purple-dark: #1e1040;
    --ane-purple-mid: #3b1d6b;
    --ane-text: #e8e0f0;
    --ane-text-muted: #a89bc2;
    --ane-glow: rgba(147, 51, 234, 0.5);
    --ane-font-display: 'Cinzel', serif;
    --ane-font-body: 'Cormorant Garamond', serif;
}

.ane-astral-container {
    position: relative;
    min-height: 600px;
    background: linear-gradient(180deg, var(--ane-darker) 0%, var(--ane-dark) 30%, var(--ane-purple-dark) 70%, var(--ane-dark) 100%);
    overflow: hidden;
    font-family: var(--ane-font-body);
    color: var(--ane-text);
    border-radius: 20px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(147, 51, 234, 0.1);
}

/* Partículas */
.ane-astral-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ane-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--ane-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--ane-gold), 0 0 20px var(--ane-gold);
    animation: aneParticleFloat 8s infinite ease-in-out;
}

.ane-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.ane-particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; }
.ane-particle:nth-child(3) { left: 35%; top: 15%; animation-delay: 2s; }
.ane-particle:nth-child(4) { left: 50%; top: 80%; animation-delay: 0.5s; }
.ane-particle:nth-child(5) { left: 65%; top: 25%; animation-delay: 1.5s; }
.ane-particle:nth-child(6) { left: 75%; top: 70%; animation-delay: 2.5s; }
.ane-particle:nth-child(7) { left: 85%; top: 40%; animation-delay: 3s; }
.ane-particle:nth-child(8) { left: 90%; top: 85%; animation-delay: 0.8s; }

@keyframes aneParticleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 1; }
}

/* Nebulosas */
.ane-astral-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: aneNebulaMove 20s infinite ease-in-out;
}

.ane-nebula-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.ane-nebula-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.2) 0%, transparent 70%);
    bottom: -50px;
    right: -50px;
    animation-delay: -10s;
}

@keyframes aneNebulaMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.1); }
}

/* Telas */
.ane-astral-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 30px;
    min-height: 600px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.ane-astral-screen.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Tela Inicial */
.ane-astral-inicio {
    justify-content: center;
}

.ane-astral-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.ane-astral-moon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: aneMoonGlow 4s infinite ease-in-out;
}

@keyframes aneMoonGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6)); }
    50% { filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.9)); }
}

.ane-astral-title {
    font-family: var(--ane-font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ane-gold-light);
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
    margin: 0 0 10px;
    letter-spacing: 4px;
}

.ane-astral-subtitle {
    font-size: 1.2rem;
    color: var(--ane-text-muted);
    font-style: italic;
    margin: 0;
}

/* Cartas decorativas */
.ane-astral-cards-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.ane-tarot-card {
    position: absolute;
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg, var(--ane-purple-mid), var(--ane-purple-dark));
    border: 2px solid var(--ane-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: aneCardFloat 6s infinite ease-in-out;
}

.ane-card-inner {
    font-size: 2rem;
    color: var(--ane-gold);
    text-shadow: 0 0 15px var(--ane-gold);
}

.ane-card-left {
    left: 5%;
    top: 30%;
    transform: rotate(-15deg);
}

.ane-card-right {
    right: 5%;
    top: 35%;
    transform: rotate(12deg);
    animation-delay: -3s;
}

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

.ane-card-right { animation-name: aneCardFloatRight; }
@keyframes aneCardFloatRight {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
}

/* Cristais */
.ane-astral-crystal {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(147, 51, 234, 0.8), rgba(88, 28, 135, 0.4));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--ane-glow), inset 0 0 20px rgba(255,255,255,0.1);
    animation: aneCrystalPulse 5s infinite ease-in-out;
}

.ane-crystal-left {
    left: 8%;
    bottom: 15%;
}

.ane-crystal-right {
    right: 8%;
    bottom: 20%;
    animation-delay: -2.5s;
}

@keyframes aneCrystalPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px var(--ane-glow); }
    50% { transform: scale(1.1); box-shadow: 0 0 60px var(--ane-glow); }
}

/* Formulário */
.ane-astral-form {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: rgba(30, 16, 64, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    padding: 40px 35px;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ane-astral-orb {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, var(--ane-secondary), var(--ane-primary));
    border-radius: 50%;
    box-shadow: 0 0 30px var(--ane-glow), 0 0 60px var(--ane-glow);
    animation: aneOrbPulse 3s infinite ease-in-out;
}

@keyframes aneOrbPulse {
    0%, 100% { box-shadow: 0 0 30px var(--ane-glow), 0 0 60px var(--ane-glow); }
    50% { box-shadow: 0 0 50px var(--ane-glow), 0 0 100px var(--ane-glow); }
}

.ane-form-title {
    font-family: var(--ane-font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ane-gold-light);
    text-align: center;
    margin: 0 0 30px;
    letter-spacing: 2px;
}

.ane-field-group {
    position: relative;
    margin-bottom: 25px;
}

.ane-field-label {
    display: block;
    font-family: var(--ane-font-display);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ane-gold);
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-align: center;
}

.ane-field-input,
.ane-field-select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--ane-font-body);
    font-size: 1.1rem;
    color: var(--ane-dark);
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box
}

.ane-field-input::placeholder {
    color: #999;
}

.ane-field-input:focus,
.ane-field-select:focus {
    border-color: var(--ane-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.ane-field-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239333ea' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 50px;
}

.ane-btn-iniciar {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--ane-gold) 0%, #d97706 100%);
    border: none;
    border-radius: 8px;
    font-family: var(--ane-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ane-dark);
    letter-spacing: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.ane-btn-iniciar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.ane-btn-iniciar:active {
    transform: translateY(0);
}

.ane-btn-stars {
    display: block;
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.7;
    letter-spacing: 8px;
}

/* Tela de Loading */
.ane-astral-loading {
    background: radial-gradient(ellipse at center, var(--ane-purple-dark) 0%, var(--ane-darker) 100%);
    justify-content: center;
}

.ane-loading-content {
    text-align: center;
    position: relative;
}

.ane-cosmic-loader {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
}

.ane-loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ane-ring-1 {
    inset: 0;
    border-top-color: var(--ane-gold);
    border-right-color: var(--ane-gold);
    animation: aneRingSpin 3s linear infinite;
}

.ane-ring-2 {
    inset: 20px;
    border-bottom-color: var(--ane-secondary);
    border-left-color: var(--ane-secondary);
    animation: aneRingSpin 2s linear infinite reverse;
}

.ane-ring-3 {
    inset: 40px;
    border-top-color: var(--ane-primary);
    animation: aneRingSpin 1.5s linear infinite;
}

@keyframes aneRingSpin {
    to { transform: rotate(360deg); }
}

.ane-loader-core {
    position: absolute;
    inset: 55px;
    background: radial-gradient(circle, var(--ane-purple-mid), var(--ane-purple-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--ane-glow);
    animation: aneCorePulse 2s infinite ease-in-out;
}

.ane-core-symbol {
    font-size: 2rem;
    color: var(--ane-gold);
    text-shadow: 0 0 20px var(--ane-gold);
    animation: aneSymbolRotate 8s linear infinite;
}

@keyframes aneCorePulse {
    0%, 100% { box-shadow: 0 0 40px var(--ane-glow); }
    50% { box-shadow: 0 0 80px var(--ane-glow); }
}

@keyframes aneSymbolRotate {
    to { transform: rotate(360deg); }
}

.ane-loading-text {
    position: relative;
}

#ane-loading-message {
    font-family: var(--ane-font-display);
    font-size: 1.3rem;
    color: var(--ane-gold-light);
    margin: 0 0 15px;
    letter-spacing: 2px;
    animation: aneFadeInOut 3s infinite ease-in-out;
}

@keyframes aneFadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.ane-loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ane-loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--ane-secondary);
    border-radius: 50%;
    animation: aneDotBounce 1.4s infinite ease-in-out;
}

.ane-loading-dots span:nth-child(1) { animation-delay: 0s; }
.ane-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ane-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aneDotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.ane-loading-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ane-star {
    position: absolute;
    color: var(--ane-gold);
    font-size: 1.5rem;
    animation: aneStarTwinkle 2s infinite ease-in-out;
}

.ane-star-1 { top: 10%; left: 15%; animation-delay: 0s; }
.ane-star-2 { top: 20%; right: 20%; animation-delay: 0.3s; }
.ane-star-3 { bottom: 30%; left: 10%; animation-delay: 0.6s; }
.ane-star-4 { bottom: 20%; right: 15%; animation-delay: 0.9s; }
.ane-star-5 { top: 50%; left: 5%; animation-delay: 1.2s; }

@keyframes aneStarTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Tela de Resultado */
.ane-astral-resultado {
    padding: 30px 20px;
    justify-content: flex-start;
    overflow-y: auto;
}

.ane-resultado-content {
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.ane-resultado-header {
    margin-bottom: 25px;
}

.ane-signo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, var(--ane-purple-mid), var(--ane-purple-dark));
    border: 3px solid var(--ane-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 30px var(--ane-glow);
    animation: aneIconGlow 3s infinite ease-in-out;
}

.ane-signo-symbol {
    font-size: 2rem;
    color: var(--ane-gold);
}

@keyframes aneIconGlow {
    0%, 100% { box-shadow: 0 0 30px var(--ane-glow); }
    50% { box-shadow: 0 0 50px var(--ane-glow), 0 0 80px var(--ane-glow); }
}

.ane-resultado-nome {
    font-family: var(--ane-font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ane-gold-light);
    margin: 0 0 5px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.ane-resultado-signo {
    font-size: 1.1rem;
    color: var(--ane-secondary);
    font-style: italic;
    margin: 0;
}

.ane-resultado-card {
    background: rgba(30, 16, 64, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 16px;
    padding: 30px 25px;
    margin-bottom: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.ane-card-decoration {
    font-size: 0.8rem;
    color: var(--ane-gold);
    letter-spacing: 12px;
    opacity: 0.7;
}

.ane-deco-top { margin-bottom: 20px; }
.ane-deco-bottom { margin-top: 20px; }

.ane-previsao-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ane-text);
    font-style: italic;
}

.ane-resultado-actions {
    margin-bottom: 25px;
}

.ane-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--ane-primary) 0%, var(--ane-purple-mid) 100%);
    border: 1px solid var(--ane-secondary);
    border-radius: 30px;
    font-family: var(--ane-font-display);
    font-size: 0.95rem;
    color: var(--ane-text);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.ane-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
    background: linear-gradient(135deg, var(--ane-secondary) 0%, var(--ane-primary) 100%);
}

.ane-action-icon {
    font-size: 1.2rem;
}

/* Compartilhamento */
.ane-share-section {
    padding-top: 20px;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.ane-share-title {
    font-size: 0.85rem;
    color: var(--ane-text-muted);
    margin: 0 0 15px;
    letter-spacing: 1px;
}

.ane-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ane-share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(147, 51, 234, 0.3);
    background: rgba(30, 16, 64, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ane-share-btn svg {
    width: 20px;
    height: 20px;
}

.ane-share-whatsapp { color: #25D366; }
.ane-share-facebook { color: #1877F2; }
.ane-share-twitter { color: #fff; }
.ane-share-copy { color: var(--ane-secondary); }

.ane-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ane-share-whatsapp:hover { background: #25D366; color: #fff; }
.ane-share-facebook:hover { background: #1877F2; color: #fff; }
.ane-share-twitter:hover { background: #000; color: #fff; }
.ane-share-copy:hover { background: var(--ane-primary); color: #fff; }

/* Responsivo */
@media (max-width: 768px) {
    .ane-astral-container {
        margin: 20px 15px;
        border-radius: 15px;
        min-height: auto;
    }
    
    .ane-astral-screen {
        min-height: auto;
        padding: 30px 20px;
    }
    
    .ane-astral-inicio {
        padding: 40px 20px;
    }
    
    .ane-astral-title { 
        font-size: 1.8rem; 
        letter-spacing: 2px; 
    }
    
    .ane-astral-subtitle { 
        font-size: 1rem; 
    }
    
    .ane-astral-moon {
        width: 60px;
        height: 60px;
    }
    
    .ane-astral-form { 
        padding: 35px 25px; 
    }
    
    .ane-form-title { 
        font-size: 1.1rem; 
    }
    
    .ane-tarot-card { 
        display: none; 
    }
    
    .ane-astral-crystal { 
        width: 40px; 
        height: 40px; 
    }
    
    .ane-cosmic-loader { 
        width: 140px; 
        height: 140px; 
    }
    
    .ane-loader-core { 
        inset: 45px; 
    }
    
    .ane-core-symbol {
        font-size: 1.5rem;
    }
    
    #ane-loading-message {
        font-size: 1.1rem;
    }
    
    /* Resultado Mobile */
    .ane-astral-resultado {
        padding: 25px 15px;
    }
    
    .ane-resultado-header {
        margin-bottom: 20px;
    }
    
    .ane-signo-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .ane-signo-symbol {
        font-size: 1.6rem;
    }
    
    .ane-resultado-nome { 
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .ane-resultado-signo {
        font-size: 1rem;
    }
    
    .ane-resultado-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .ane-card-decoration {
        font-size: 0.7rem;
        letter-spacing: 8px;
    }
    
    .ane-deco-top { margin-bottom: 15px; }
    .ane-deco-bottom { margin-top: 15px; }
    
    .ane-previsao-text { 
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .ane-btn-action {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
    
    .ane-share-section {
        padding-top: 15px;
    }
    
    .ane-share-title {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .ane-share-btn {
        width: 42px;
        height: 42px;
    }
    
    .ane-share-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 400px) {
    .ane-astral-container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .ane-astral-screen {
        padding: 25px 15px;
    }
    
    .ane-astral-title {
        font-size: 1.5rem;
    }
    
    .ane-astral-form {
        padding: 30px 20px;
    }
    
    .ane-field-input,
    .ane-field-select {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .ane-btn-iniciar {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .ane-resultado-nome {
        font-size: 1.3rem;
    }
    
    .ane-previsao-text {
        font-size: 0.95rem;
    }
}
