/* ASTRA Foundation Sovereign Cyber Theme */
:root {
    --color-void: #040508;
    --color-panel: rgba(9, 11, 16, 0.90);
    --color-kintsugi: #d4af37;
    --color-kintsugi-glow: #fbbf24;
    --color-amethyst: #9333ea;
    --color-amethyst-glow: #c084fc;
    --color-cyber-cyan: #06b6d4;
    --color-crimson: #ef4444;
    --color-emerald: #10b981;
}

body {
    background-color: var(--color-void);
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Sovereign Dolphin Sidebar Layout & Collapse State */
@media (min-width: 768px) {
    #dolphin-sidebar-tree {
        display: flex !important;
    }
    #dolphin-sidebar-tree.sidebar-collapsed {
        display: none !important;
    }
}

@media (max-width: 767px) {
    #dolphin-sidebar-tree {
        display: none !important;
    }
}

/* Sleek Cyber Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.content-layer {
    position: relative;
    z-index: 10;
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(9, 11, 16, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.glass-purple {
    background: rgba(24, 13, 40, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-purple:hover {
    border-color: rgba(192, 132, 252, 0.8);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.45);
}

/* Highly visible Sovereign Cyber Buttons */
.btn-gold-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f59e0b 50%, #d97706 100%) !important;
    color: #040508 !important;
    border: 1px solid #fde047 !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    font-weight: 700 !important;
}
.btn-gold-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.btn-cyan-secondary {
    background: rgba(8, 20, 32, 0.85) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(6, 182, 212, 0.15) !important;
}
.btn-cyan-secondary:hover {
    border-color: #06b6d4 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45) !important;
}

.btn-amethyst-secondary {
    background: rgba(30, 15, 48, 0.85) !important;
    color: #e9d5ff !important;
    border: 1px solid rgba(168, 85, 247, 0.55) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(168, 85, 247, 0.2) !important;
}
.btn-amethyst-secondary:hover {
    border-color: #c084fc !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.5) !important;
}

/* Cyber CRT Scanlines */
.scanlines {
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
}

/* Seasonal Themes */
.theme-halloween .glass-panel {
    border-color: rgba(249, 115, 22, 0.4);
}
.theme-halloween .glass-panel:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.theme-christmas .glass-panel {
    border-color: rgba(16, 185, 129, 0.4);
}
.theme-christmas .glass-panel:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* Button tactile press effect */
.btn-active:active {
    transform: scale(0.97);
}

/* Markdown Reading Styles */
.prose-astra h1 { color: #f8fafc; font-size: 1.85rem; font-weight: 800; border-bottom: 2px solid #d4af37; padding-bottom: 0.5rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose-astra h2 { color: #e9d5ff; font-size: 1.4rem; font-weight: 700; border-left: 4px solid #a855f7; padding-left: 0.75rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose-astra h3 { color: #fef08a; font-size: 1.15rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.prose-astra p { color: #cbd5e1; line-height: 1.8; margin-bottom: 1.1rem; }
.prose-astra blockquote { border-left: 3px solid #d4af37; background: rgba(212, 175, 55, 0.08); padding: 0.9rem 1.2rem; border-radius: 0.35rem; color: #fef08a; font-style: italic; margin: 1.25rem 0; }
.prose-astra code { font-family: 'JetBrains Mono', monospace; background: rgba(0,0,0,0.6); color: #38bdf8; padding: 0.2rem 0.45rem; border-radius: 0.25rem; font-size: 0.88em; }
.prose-astra pre { background: #07090f; border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 0.6rem; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; font-family: 'JetBrains Mono', monospace; font-size: 0.85em; color: #a7f3d0; }
.prose-astra table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9em; }
.prose-astra th { background: rgba(212, 175, 55, 0.2); color: #f8fafc; border: 1px solid rgba(212, 175, 55, 0.3); padding: 0.75rem 1rem; text-align: left; }
.prose-astra td { border: 1px solid rgba(255, 255, 255, 0.08); padding: 0.65rem 1rem; color: #cbd5e1; }
.prose-astra hr { border: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5), transparent); margin: 2rem 0; }
.prose-astra img { border-radius: 0.75rem; border: 1px solid rgba(212, 175, 55, 0.4); margin: 1.25rem 0; box-shadow: 0 10px 25px rgba(0,0,0,0.6); }
