/* style.css - ANIMA | Shamanic OS v2.0 */
:root {
    --neon: #00f2ff;
    --neon-glow: #00ffff;
    --dark: #020502;
    --dark-bg: rgba(2,5,2,0.95);
    
    /* Cores dos Chakras */
    --chakra-root: #C62828;
    --chakra-sacral: #F57C00;
    --chakra-solar: #FBC02D;
    --chakra-heart: #388E3C;
    --chakra-throat: #1976D2;
    --chakra-third-eye: #7B1FA2;
    --chakra-crown: #512DA8;
    
    /* Glassmorphism */
    --glass-bg: rgba(2, 5, 2, 0.7);
    --glass-border: rgba(0, 242, 255, 0.2);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Syncopate', sans-serif; 
}

body { 
    background: var(--dark); 
    color: #fff; 
    height: 100vh; 
    overflow: hidden; 
    position: relative;
    cursor: default;
}

/* Cursors */
button, a, .menu-icon, .option-btn, .init-trigger, .spin-trigger, .reboot {
    cursor: pointer !important;
}

button:focus, a:focus {
    outline: 2px solid var(--neon);
    outline-offset: 2px;
}

.bio-field {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0a1c18, var(--dark));
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 20px 30px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 1000;
}

.status-monitor { 
    font-size: 0.5rem; 
    color: var(--neon); 
    opacity: 0.6; 
    letter-spacing: 2px; 
    font-family: 'Orbitron', monospace;
}

/* Menu */
.menu-icon { 
    width: 30px; 
    height: 24px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    z-index: 1002; 
    position: relative;
    background: transparent;
    border: none;
}

.menu-icon span { 
    display: block; 
    width: 100%; 
    height: 2px; 
    background: var(--neon); 
    transition: 0.3s; 
    box-shadow: 0 0 8px var(--neon); 
}

.menu-icon:hover span {
    background: var(--neon-glow);
    box-shadow: 0 0 12px var(--neon-glow);
}

.side-matrix {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--neon);
    box-shadow: -10px 0 30px rgba(0, 242, 255, 0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
}

.side-matrix.active { right: 0; }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 2, 0.7);
    z-index: 1000;
    display: none;
}

.menu-overlay.active { display: block; }

.matrix-header {
    font-size: 1.2rem;
    color: var(--neon);
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    font-family: 'Orbitron', monospace;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-grid a {
    color: rgba(0, 242, 255, 0.8);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 12px 15px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s;
    background: rgba(0, 242, 255, 0.03);
}

.links-grid a:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--neon);
    color: #fff;
    padding-left: 20px;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Intro Screen */
.glitch-box {
    position: relative;
    margin-bottom: 40px;
}

.main-title {
    font-size: 4rem;
    color: var(--neon);
    text-shadow: 0 0 20px var(--neon);
    position: relative;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
}

.neuro-tag {
    font-size: 0.9rem;
    color: rgba(0, 242, 255, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

/* Loading */
.loading-state {
    margin: 30px 0;
    text-align: center;
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid rgba(0, 242, 255, 0.2);
    border-top: 3px solid var(--neon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Buttons */
.init-trigger {
    margin-top: 30px;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--neon);
    color: var(--neon);
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    position: relative;
    overflow: hidden;
}

.init-trigger:not(:disabled):hover {
    background: var(--neon);
    color: var(--dark);
    box-shadow: 0 0 25px var(--neon);
    transform: scale(1.05);
}

.init-trigger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(0, 242, 255, 0.3);
    color: rgba(0, 242, 255, 0.3);
}

/* Wheel */
.wheel-module {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pointer {
    position: absolute;
    top: -25px;
    color: var(--neon);
    font-size: 2rem;
    text-shadow: 0 0 10px var(--neon);
    z-index: 10;
}

.quantum-wheel {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid var(--neon);
    transition: transform 3s cubic-bezier(0.1, 0, 0.1, 1);
    background: repeating-conic-gradient(
        from 0deg, 
        transparent 0 30deg, 
        rgba(0, 242, 255, 0.05) 30deg 60deg
    );
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

/* General Buttons */
.spin-trigger {
    margin-top: 40px;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--neon);
    color: var(--neon);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    font-weight: bold;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.spin-trigger:hover:not(:disabled) {
    background: var(--neon);
    color: var(--dark);
    box-shadow: 0 0 20px var(--neon);
    transform: translateY(-2px);
}

.spin-trigger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quiz */
.quiz-interface {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.portal-badge {
    font-size: 0.8rem;
    color: var(--neon);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

.options-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
    align-items: center;
}

.option-btn {
    padding: 15px 20px;
    margin: 5px 0;
    width: 100%;
    max-width: 500px;
    text-align: center;
    transition: all 0.3s;
    animation: fadeIn 0.5s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar */
.dna-progress {
    width: 100%;
    max-width: 500px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

#progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon), var(--neon-glow));
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--neon);
}

.milestone {
    position: absolute;
    top: -5px;
    width: 3px;
    height: 13px;
    background: var(--neon);
    transform: translateX(-50%);
}

.milestone::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon);
}

/* Result Screen */
.result-matrix {
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--neon);
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

.result-data h2 {
    font-size: 2.5rem;
    color: var(--neon);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--neon);
    font-family: 'Orbitron', monospace;
}

.tabs-2030 {
    margin: 30px 0;
    text-align: left;
}

.tab-content h3 {
    color: rgba(0, 242, 255, 0.8);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tab-content p {
    line-height: 1.6;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    min-height: 80px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Chakra Visual */
.chakra-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.chakra-symbol {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    transition: transform 0.3s;
}

.chakra-symbol.active {
    transform: scale(1.1);
    box-shadow: 0 0 20px currentColor;
}

/* Reboot Buttons */
.reboot {
    margin: 10px;
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--neon);
    color: var(--neon);
    transition: 0.3s;
    font-size: 0.9rem;
}

.reboot:hover {
    background: var(--neon);
    color: var(--dark);
    box-shadow: 0 0 15px var(--neon);
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.export-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid;
    color: var(--neon);
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.export-btn:hover {
    background: var(--neon);
    color: var(--dark);
}

.export-btn.share {
    border-color: #1976D2;
    color: #1976D2;
}

.export-btn.share:hover {
    background: #1976D2;
    color: white;
}

.export-btn.copy {
    border-color: #388E3C;
    color: #388E3C;
}

.export-btn.copy:hover {
    background: #388E3C;
    color: white;
}

/* Totem Triadic */
.totem-triadic {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.totem-animal {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    padding: 20px;
    border: 1px solid;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s;
}

.totem-animal.central {
    border-color: var(--neon);
    box-shadow: 0 0 20px var(--neon);
    order: 2;
    transform: scale(1.1);
    z-index: 2;
}

.totem-animal.auxiliary {
    border-color: rgba(0, 242, 255, 0.5);
    order: 1;
}

.totem-animal.apprentice {
    border-color: rgba(255, 255, 255, 0.3);
    order: 3;
}

.totem-animal h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.totem-animal .animal-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 10px 0;
}

/* Shadow Work */
.shadow-work {
    margin-top: 30px;
    padding: 20px;
    border-left: 3px solid #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.shadow-work h4 {
    color: #ff4444;
    margin-bottom: 10px;
}

.shadow-work p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* History Modal */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 2, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.history-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.history-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
}

.history-content h2 {
    color: var(--neon);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Orbitron', monospace;
}

.history-list {
    margin: 20px 0;
}

.history-item {
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding: 15px 0;
    margin-bottom: 10px;
}

.history-animal {
    font-size: 1.2rem;
    color: var(--neon);
    margin-bottom: 5px;
}

.history-chakra {
    font-size: 0.9rem;
    color: rgba(0, 242, 255, 0.7);
    margin-bottom: 5px;
}

.history-info {
    display: flex;
    gap: 15px;
    margin: 5px 0;
    font-size: 0.8rem;
    color: rgba(0, 242, 255, 0.6);
}

.history-info span {
    background: rgba(0, 242, 255, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
}

.history-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.no-history {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    font-style: italic;
}

.close-history {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
}

/* Portal Transition */
.portal-transition {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: var(--neon);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: portal-expand 1s forwards;
    z-index: 2000;
    pointer-events: none;
}

@keyframes portal-expand {
    0% {
        width: 100px;
        height: 100px;
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        width: 200vh;
        height: 200vh;
        opacity: 0;
        transform: translate(-50%, -50%) scale(10);
    }
}

/* Tie Breaker Modal */
.tie-breaker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 2, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

.tie-breaker-modal.active {
    display: flex;
}

.tie-breaker-content {
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon);
    border-radius: 10px;
}

.tie-breaker-content h3 {
    color: #ff4444;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.tie-breaker-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.tie-breaker-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tie-breaker-options button {
    padding: 15px 25px;
    min-width: 150px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 4000;
    animation: fadeInUp 0.3s ease-out;
}

/* Scrollbars */
.side-matrix::-webkit-scrollbar,
.history-content::-webkit-scrollbar {
    width: 5px;
}

.side-matrix::-webkit-scrollbar-track,
.history-content::-webkit-scrollbar-track {
    background: rgba(2, 5, 2, 0.5);
}

.side-matrix::-webkit-scrollbar-thumb,
.history-content::-webkit-scrollbar-thumb {
    background: var(--neon);
    border-radius: 10px;
}

/* Responsive */
@media (min-width: 768px) {
    .main-title { font-size: 5rem; }
    .quantum-wheel { width: 320px; height: 320px; }
    .result-data h2 { font-size: 3rem; }
}

@media (max-width: 480px) {
    header { padding: 15px 20px; }
    .main-title { font-size: 3rem; }
    .quantum-wheel { width: 250px; height: 250px; }
    .quiz-interface, .result-matrix { padding: 15px; }
    .side-matrix { 
        width: 280px; 
        right: -280px; 
        padding: 70px 15px 15px 15px; 
    }
    .init-trigger, .spin-trigger, .option-btn { 
        padding: 12px 20px; 
        font-size: 0.85rem; 
    }
    .chakra-visual { flex-wrap: wrap; gap: 10px; }
    .chakra-symbol { width: 40px; height: 40px; font-size: 1.2rem; }
    .totem-triadic { flex-direction: column; align-items: center; }
    .totem-animal { 
        max-width: 100%; 
        order: unset !important; 
        transform: none !important; 
    }
}