/* --- VANTIX CORE v8.2 DESIGN SYSTEM --- */
:root {
    --bg-dark: #080c10;
    --bg-card: #0d1624;
    --accent: #ff9900;
    --text: #ffffff;
    --accent-rgb: 255, 153, 0;
    --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* THEME MAPPING */
.theme-mocha {
    --bg-dark: #1e1e2e;
    --bg-card: #313244;
    --accent: #f5c2e7;
    --accent-rgb: 245, 194, 231;
}

.theme-midnight {
    --bg-dark: #000000;
    --bg-card: #111111;
    --accent: #00ff41;
    --accent-rgb: 0, 255, 65;
}

.theme-ocean {
    --bg-dark: #0a192f;
    --bg-card: #112240;
    --accent: #64ffda;
    --accent-rgb: 100, 255, 218;
}

.theme-cyberpunk {
    --bg-dark: #0d0221;
    --bg-card: #1a0033;
    --accent: #ff006e;
    --accent-rgb: 255, 0, 110;
}

.theme-forest {
    --bg-dark: #0f2818;
    --bg-card: #1a4d2e;
    --accent: #76c893;
    --accent-rgb: 118, 200, 147;
}

.theme-sunset {
    --bg-dark: #2d1b00;
    --bg-card: #4a2511;
    --accent: #ff8c42;
    --accent-rgb: 255, 140, 66;
}

.theme-lavender {
    --bg-dark: #2d1b4e;
    --bg-card: #4a2d6b;
    --accent: #c896ff;
    --accent-rgb: 200, 150, 255;
}

.theme-emerald {
    --bg-dark: #0f2818;
    --bg-card: #1d3d2e;
    --accent: #2ecc71;
    --accent-rgb: 46, 204, 113;
}

.theme-strawberry {
    --bg-dark: #3d1e2d;
    --bg-card: #5a2d42;
    --accent: #ff6b9d;
    --accent-rgb: 255, 107, 157;
}

.theme-deep-space {
    --bg-dark: #0a0e27;
    --bg-card: #1a1a3e;
    --accent: #00d4ff;
    --accent-rgb: 0, 212, 255;
}

.theme-sunset-blaze {
    --bg-dark: #1a0f0a;
    --bg-card: #3d1f15;
    --accent: #ff4500;
    --accent-rgb: 255, 69, 0;
}

.theme-mint {
    --bg-dark: #1a3a3a;
    --bg-card: #2d5a5a;
    --accent: #00d9d9;
    --accent-rgb: 0, 217, 217;
}

.theme-noir {
    --bg-dark: #1a1a1a;
    --bg-card: #2d2d2d;
    --accent: #e8e8e8;
    --accent-rgb: 232, 232, 232;
}

.theme-light {
    --bg-deep: #ffffff;
    --bg-card: rgba(32, 32, 32, 0.95);
    --accent: #ffffff;
    --accent-rgb: 255, 255, 255;
}

.theme-sakura {
    --bg-deep: #ffc2d1;  
    --bg-dark: #5c2b49;         /* Solid Candy Pink */
    --bg-panel: rgba(255, 153, 172, 0.8); /* Slightly darker pink glass */
    --bg-card: rgba(255, 179, 193, 0.9);  /* Creamy Pink Card */
    --accent: #ff4d6d;            /* Vibrant Rose (The "Punch") */
    --accent-glow: rgba(255, 77, 145, 0.4);
    --text: #ff45a2;              /* Deep Magenta (For perfect reading) */
    --text-dim: #c9184a;
    --border: #ff758f;            /* Bright Pink Border */
}

/* BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    font-family: 'Montserrat', sans-serif;
}

/* --- VISUAL STACK (God Effect & Particles) --- */
#visual-engine {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#particle-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.fx-godrays {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
    filter: blur(120px);
    animation: rayMovement 20s infinite alternate;
}

.fx-accent-aura {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.5;
}

@keyframes rayMovement {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.3) translate(10%, 10%);
    }
}

/* --- SIDEBAR MAINFRAME --- */
#mainframe-sidebar {
    width: 350px;
    height: 100vh;
    background: rgba(5, 7, 10, 0.4);
    position: relative;
    z-index: 1000;
    border-right: 1px solid rgba(var(--accent-rgb), 0.1);
    backdrop-filter: blur(50px);
    transform: translateX(-100%);
    transition: 1s var(--ease-cinematic);
}

body.system-ready #mainframe-sidebar {
    transform: translateX(0);
}

.spine-glow {
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 25px var(--accent);
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 35px;
}

/* BRANDING */
.sb-branding {
    padding: 60px 0 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
}

body.system-ready .sb-branding {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s var(--ease-cinematic) 0.3s;
}

.core-logo {
    width: 65px;
    height: 65px;
    filter: drop-shadow(0 0 15px var(--accent));
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.brand-h1 {
    font-family: 'Orbitron';
    font-size: 1.8rem;
    letter-spacing: 5px;
    color: var(--accent);
}

.blinker {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: blink 1.5s infinite;
}

.mono-id {
    font-family: 'JetBrains Mono';
    font-size: 0.65rem;
    color: #9e9e9e;
    font-weight: 900;
    letter-spacing: 1px;
}

/* DISTINGUISHER */
.distinguisher {
    display: flex;
    align-items: center;
    margin-bottom: 45px;
    opacity: 0;
}

body.system-ready .distinguisher {
    opacity: 1;
    transition: 1s ease 0.6s;
}

.d-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.4;
}

.d-line.long {
    flex: 3;
    background: linear-gradient(270deg, var(--accent), transparent);
}

.d-diamond {
    width: 10px;
    height: 10px;
    border: 1px solid var(--accent);
    transform: rotate(45deg);
    margin: 0 12px;
}

/* NAVIGATION */
.sb-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-cluster {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-bottom-cluster {
    margin-top: auto;
    padding-bottom: 30px;
}

.nav-node {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
}

body.system-ready .nav-node {
    animation: nodePop 0.6s var(--ease-bounce) forwards;
    animation-delay: calc(var(--d) * 0.1s + 0.6s);
}

@keyframes nodePop {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    text-decoration: none;
    color:var(--text);
    font-weight: 600;
    border-radius: 15px;
    transition: 0.4s var(--ease-cinematic);
    position: relative;
    overflow: hidden;
}

.glass-plate {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    transition: 0.3s;
    z-index: -1;
}

.nav-link:hover {
    color: #fff;
    transform: translateX(10px);
}

.nav-link:hover .glass-plate {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

/* TERMINAL FILLER */
.terminal-unit {
    margin-top: 25px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border-left: 2px solid rgba(var(--accent-rgb), 0.3);
}

.t-row {
    font-family: 'JetBrains Mono';
    font-size: 0.65rem;
    color: #1a1a1a;
    line-height: 2;
    font-weight: 800;
}

/* LOADING BAR */
#loading-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10000;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transition: 0.4s var(--ease-cinematic);
}

.loading-spark {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    opacity: 0.3;
    animation: sparkMove 2s infinite;
}

@keyframes sparkMove {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(1200%);
    }
}

/* VIEWPORT */
#viewport-host {
    flex: 1;
    padding: 20px;
    position: relative;
    opacity: 0;
    transform: scale(0.98);
    transition: 1.5s var(--ease-cinematic) 0.8s;
}

body.system-ready #viewport-host {
    opacity: 1;
    transform: scale(1);
}

.viewport-shell {
    width: 100%;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
    border: 1px solid #111;
    background: #000;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

#content-iframe {
    width: 100%;
    height: 100%;
    border: none;
}