@charset "UTF-8";

/**
 * ATLAS BASE - NÚCLEO DE RENDERIZAÇÃO E FÍSICA (CSS)
 * Propriedade: KYORE ENTERPRISE
 * Filosofia: Tranquil Design & Glassmorphism
 */

/* =========================================
   1. A FUNDAÇÃO (Variáveis e Cores)
   ========================================= */
:root {
    /* Paleta Soberana */
    --onyx: #0F0F0F;       /* O Vácuo / Fundo principal */
    --basalt: #1A1A1A;     /* A Estrutura / Fundo de blocos */
    --iron: #808080;       /* A Voz Secundária / Texto auxiliar e bordas */
    --zenith: #FFFFFF;     /* A Verdade / Texto principal e highlights */
    --aether: rgba(224, 229, 236, 0.15); /* O Fluxo / Hover e interações */
    --aether-glow: rgba(224, 229, 236, 0.3); /* Energia concentrada / Foco */
    --danger: #7A1F1F;     /* Vermelho profundo para ações destrutivas (Ruptura) */

    /* Tipografia de Poder */
    --font-ui: 'Inter', sans-serif;
    --font-editorial: 'Playfair Display', serif;

    /* Física de Tela */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   2. RESET SOBERANO & SCROLLBAR IMERSIVA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--onyx);
    color: var(--zenith);
    font-family: var(--font-ui);
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* O stage interno é que rola, não a janela */
    display: flex;
    line-height: 1.6;
}

/* A Morte da Scrollbar Tradicional */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--onyx); 
}
::-webkit-scrollbar-thumb {
    background: var(--iron); 
    border-radius: 10px;
    opacity: 0.5;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--zenith); 
}

/* =========================================
   3. MATERIAIS & COMPONENTES (Glassmorphism)
   ========================================= */
.glass-panel {
    background: rgba(26, 26, 26, 0.6); /* Basalt Translúcido */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* Suporte Apple/Safari */
    border: 1px solid rgba(128, 128, 128, 0.15); /* Borda Iron fantasma */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Profundidade contra o Onyx */
}

/* Botões da KYORE */
.btn-sovereign {
    background: transparent;
    border: 1px solid var(--iron);
    color: var(--zenith);
    padding: 12px 24px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    outline: none;
}

.btn-sovereign:hover {
    background-color: var(--aether);
    border-color: var(--zenith);
    box-shadow: 0 0 15px var(--aether-glow);
    transform: translateY(-2px);
}

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

/* Inputs de Alta Precisão */
.input-group {
    margin-bottom: 30px;
    text-align: left;
    position: relative;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--iron);
    color: var(--zenith);
    padding: 12px 0;
    font-family: var(--font-ui);
    font-size: 16px;
    outline: none;
    transition: var(--transition-smooth);
}

input[type="text"]:focus, 
input[type="password"]:focus {
    border-bottom-color: var(--zenith);
    box-shadow: 0 4px 10px -8px var(--zenith);
}

input::placeholder {
    color: var(--iron);
    opacity: 0.5;
}

/* =========================================
   4. ARQUITETURA DE REDE (Layout Principal)
   ========================================= */
#app-container {
    width: 100%;
    height: 100%;
    display: flex;
}

/* Roteamento Visual (Single Page Application) */
.view {
    display: none;
    width: 100%;
    max-width: 1100px; /* Expansão do palco para acomodar telas maiores */
    margin: 0 auto;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* =========================================
   5. O MENU LATERAL (Navegação Soberana)
   ========================================= */
#atlas-nav {
    width: 80px;
    height: 100%;
    border-right: 1px solid rgba(128, 128, 128, 0.1);
    background: linear-gradient(to right, var(--onyx) 80%, rgba(15, 15, 15, 0));
    display: none; /* Ativado via JS pós-login */
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 50px;
    z-index: 100;
}

.nav-brand {
    font-family: var(--font-editorial);
    font-weight: 600;
    font-size: 1.2rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 5px;
    color: var(--zenith);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-item {
    color: var(--iron);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transition: var(--transition-smooth);
    letter-spacing: 2px;
}

.nav-item:hover, 
.nav-item.active { 
    color: var(--zenith); 
    text-shadow: 0 0 8px var(--aether-glow);
}

.nav-item.danger:hover {
    color: var(--danger);
    text-shadow: 0 0 8px rgba(122, 31, 31, 0.5);
}

#stage {
    flex-grow: 1;
    height: 100%;
    position: relative;
    overflow-y: auto;
    padding: 60px;
}

/* =========================================
   6. PILAR 1: O VÁCUO (Login / Auth)
   ========================================= */
#view-vacuum {
    height: 100%;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vault-door {
    width: 420px;
    padding: 60px 50px;
    text-align: center;
}

.vault-door h1 {
    font-family: var(--font-editorial);
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 2px;
}
        
.vault-door p { 
    color: var(--iron); 
    font-size: 0.95rem; 
    margin-bottom: 50px; 
    font-style: italic;
}

.vault-actions { 
    display: flex; 
    gap: 15px; 
    margin-top: 50px; 
}

/* =========================================
   7. PILAR 2: O MONÓLITO (Bento UI)
   ========================================= */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 70px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}
        
.avatar-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--basalt);
    border: 2px solid var(--iron);
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.identity-info h2 { 
    font-family: var(--font-editorial); 
    font-size: 2.5rem; 
    font-weight: 400;
    line-height: 1.1;
}

.identity-info span { 
    color: var(--iron); 
    font-size: 0.85rem; 
    letter-spacing: 1px;
    font-family: monospace;
}
        
.treasury-mini {
    margin-left: auto;
    text-align: right;
    padding: 15px 25px;
    background: rgba(26, 26, 26, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, 0.1);
}

.treasury-mini .balance { 
    font-size: 1.8rem; 
    font-family: var(--font-ui); 
    font-weight: 600;
    color: var(--zenith); 
}

.treasury-mini .label { 
    font-size: 0.7rem; 
    color: var(--iron); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* O Grid Bento (As Prateleiras) */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.shelf-container h3 {
    font-family: var(--font-editorial);
    color: var(--zenith);
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.bento-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    perspective: 1000px; /* Crucial para o efeito 3D Apple */
}

.bento-item {
    aspect-ratio: 2 / 3; /* Proporção clássica de capas de jogo/livro */
    width: 100%;
    background: var(--basalt);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--iron);
    font-size: 0.8rem;
    border: 1px solid rgba(128, 128, 128, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

.bento-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.bento-item span.title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    color: var(--zenith);
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.bento-item:hover { 
    transform: translateZ(30px) scale(1.05); 
    border-color: var(--aether-glow); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

.bento-item:hover::after { opacity: 1; }
.bento-item:hover span.title { opacity: 1; transform: translateY(0); }

/* =========================================
   8. COMPONENTES GERAIS DE CONTEÚDO
   ========================================= */
.section-title {
    font-family: var(--font-editorial);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--iron);
    font-size: 1rem;
    margin-bottom: 40px;
}

/* Gênesis - Controles Deslizantes */
.sovereign-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(128, 128, 128, 0.2);
    border-radius: 2px;
    outline: none;
}

.sovereign-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--zenith);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: transform 0.2s ease;
}

.sovereign-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: var(--iron);
}