/* 
 * Antigravity Design System — Sharah Alves Mapa Astral
 * Tema: Dark Universe & Sacred Gold Luxury
 * Tipografia: Outfit (Sans) e Cinzel (Display/Mística)
 */

:root {
    /* Cores Cósmicas e Espirituais */
    --space-dark: #070312;
    --space-surface: #0e0720;
    --space-card: rgba(22, 11, 42, 0.75);
    --space-card-hover: rgba(32, 16, 60, 0.85);
    
    --nebula-purple: #6a1b9a;
    --star-blue: #4a148c;
    --accent-glow: #e040fb;
    --gold-primary: #d4af37;
    --gold-light: #f7e7b4;
    --gold-glow: rgba(212, 175, 55, 0.45);
    
    /* Textos de Alto Contraste e Leiturabilidade Máxima */
    --text-main: #ffffff;
    --text-body: #ffffff;
    --text-secondary: #f1f5f9;
    --text-muted: #e2e8f0;
    --text-dim: #cbd5e1;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-gold: rgba(212, 175, 55, 0.45);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    
    /* Fontes */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Cinzel', Georgia, serif;
}

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

body.dark-universe {
    background-color: var(--space-dark);
    color: #ffffff;
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Forçar alto contraste e legibilidade impecável nos textos */
.text-muted {
    color: #e2e8f0 !important;
}

p, .body-text {
    color: #ffffff !important;
    font-size: 1.12rem;
    line-height: 1.85;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.75);
}

.body-lead {
    color: #ffffff !important;
    font-size: 1.25rem;
    line-height: 1.85;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

strong, b {
    color: #ffffff;
    font-weight: 700;
}

.text-gold, .text-gold-highlight {
    color: #ffd54f !important;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(255, 213, 79, 0.45);
}

h1, h2, h3, h4, h5, h6, .cinzel-font {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* Background Cósmico Dinâmico 3D com opacidade suave para legibilidade */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.32;
    pointer-events: none;
    animation: floatOrb 22s infinite ease-in-out alternate;
}

.orb-1 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--nebula-purple), transparent 70%);
    top: -15%;
    left: -10%;
}

.orb-2 {
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, var(--star-blue), transparent 70%);
    bottom: 10%;
    right: -20%;
    animation-delay: -6s;
}

.orb-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #311b92, transparent 70%);
    top: 45%;
    left: 25%;
    animation-delay: -12s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.15); }
    100% { transform: translate(-40px, 30px) scale(0.95); }
}

.stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.relative-z {
    position: relative;
    z-index: 5;
}

/* Barra de Navegação Flutuante Glass */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 15px;
}

.glass-nav {
    background: rgba(14, 7, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.glass-nav:hover {
    border-color: var(--glass-border-gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Botões com Brilho Cósmico e Dourado */
.btn-glow {
    background: linear-gradient(135deg, #7b1fa2, #e040fb);
    color: #fff !important;
    text-decoration: none;
    padding: 9px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(224, 64, 251, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(224, 64, 251, 0.65);
    color: #fff;
}

.btn-gold {
    background: linear-gradient(135deg, #b8860b, #d4af37, #f7e7b4);
    color: #070312 !important;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    box-shadow: 0 0 25px var(--gold-glow);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.65);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-light) !important;
    border: 1px solid var(--gold-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Badges e Selos */
.cosmic-badge {
    background: rgba(142, 68, 173, 0.2);
    border: 1px solid rgba(224, 64, 251, 0.35);
    color: #e0b0ff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(224, 64, 251, 0.2);
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 90px;
    position: relative;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.text-glow {
    background: linear-gradient(135deg, #fff, #f7e7b4, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px var(--gold-glow);
}

.text-glow-purple {
    background: linear-gradient(135deg, #ffffff, #e0b0ff, #e040fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(224, 64, 251, 0.4);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ffffff !important;
    max-width: 760px;
    margin: 0 auto 35px;
    line-height: 1.85;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Cards Glassmorphism */
.glass-card {
    background: var(--space-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Card especial para blocos narrativos de leitura */
.story-text-card {
    background: rgba(14, 7, 28, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.12);
    position: relative;
    overflow: hidden;
}

.story-text-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-primary), var(--accent-glow));
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-gold);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--gold-light);
    margin-bottom: 18px;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.card-text {
    color: #f8fafc !important;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Formulário Místico Elegante */
.form-container-glass {
    background: rgba(14, 7, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-gold);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 175, 55, 0.1);
}

.form-label {
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.form-label i {
    color: var(--gold-primary);
}

.form-control-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.25s ease;
}

.form-control-custom:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
    color: #fff;
}

.form-control-custom::placeholder {
    color: rgba(200, 190, 220, 0.6);
}

/* Autocomplete Dropdown */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #14072b;
    border: 1px solid var(--glass-border-gold);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 4px;
    display: none;
}

.autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.92rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
}

/* Checkbox Customizado LGPD */
.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ffffff !important;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.custom-checkbox-container input {
    margin-top: 3px;
    accent-color: var(--gold-primary);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.custom-checkbox-container a {
    color: var(--gold-light);
    text-decoration: underline;
    font-weight: 500;
}

/* Seções da Landing Page */
.py-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    margin-bottom: 14px;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.section-subtitle {
    font-size: 1.18rem;
    color: #f8fafc !important;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.body-text, p.body-text {
    color: #ffffff !important;
    font-size: 1.14rem;
    line-height: 1.85;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.75);
}

/* Dashboard do Resultado */
.result-header {
    padding-top: 130px;
    padding-bottom: 40px;
    text-align: center;
}

.chart-svg-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.natal-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Tabelas Glassmorphism */
.table-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-main);
    background: var(--space-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.table-glass th {
    background: rgba(45, 15, 75, 0.85);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 16px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
}

.table-glass td {
    padding: 13px 16px;
    font-size: 0.95rem;
    color: #f8fafc !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.table-glass tr:last-child td {
    border-bottom: none;
}

.table-glass tr:hover td {
    background: rgba(255, 255, 255, 0.06);
}

/* Accordion Glassmorphism */
.glass-accordion .accordion-item {
    background: var(--space-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px !important;
    margin-bottom: 14px;
    overflow: hidden;
}

.glass-accordion .accordion-button {
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    padding: 18px 24px;
    box-shadow: none;
}

.glass-accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.03);
    color: var(--gold-light);
    border-bottom: 1px solid var(--glass-border);
}

.glass-accordion .accordion-button::after {
    filter: invert(1);
}

.glass-accordion .accordion-body {
    background: transparent;
    color: #f8fafc !important;
    padding: 22px 26px;
    font-size: 1.04rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Loading Overlay Cósmico */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 3, 18, 0.92);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cosmic-spinner {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--gold-primary);
    border-right: 3px solid var(--accent-glow);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-bottom: 25px;
    box-shadow: 0 0 25px var(--gold-glow);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.loading-step {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer Glass */
.footer-glass {
    background: rgba(10, 4, 22, 0.9);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 1.5rem;
}

.social-glass {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-glass:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-2px);
}

/* Responsividade Mobile First */
@media (max-width: 991px) {
    .glass-nav {
        gap: 15px;
        padding: 6px 18px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block !important;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
    }
    .hero-section {
        padding-top: 120px;
    }
}

@media (max-width: 576px) {
    .form-container-glass {
        padding: 24px 18px;
    }
    .btn-gold {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.92rem;
    }
    .table-glass th, .table-glass td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* Acessibilidade: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .bg-orb {
        animation: none;
    }
    .cosmic-spinner {
        animation-duration: 3s;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Modais Glassmorphism */
.modal-glass .modal-content {
    background: rgba(14, 7, 30, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border-gold);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
    color: #ffffff;
}

.modal-glass .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
}

.modal-glass .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
}

.modal-glass .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-glass .btn-close:hover {
    opacity: 1;
}
