feat: re-engineer bottom dock to floating capsule and compress dashboard mobile layout

This commit is contained in:
2026-06-07 19:22:53 +02:00
parent 34c6f45a10
commit de6cee06ad
2 changed files with 72 additions and 57 deletions
@@ -425,26 +425,27 @@
/* Content padding for bottom navigation dock */ /* Content padding for bottom navigation dock */
.hub-content { .hub-content {
padding: 1.25rem 1.25rem calc(1.25rem + 72px + env(safe-area-inset-bottom, 0px)) !important; padding: 1.25rem 1.25rem calc(1.25rem + 96px + env(safe-area-inset-bottom, 0px)) !important;
} }
/* Reader Mobile Dock v3 */ /* Reader Mobile Dock v3 */
.reader-mobile-dock { .reader-mobile-dock {
display: flex; display: flex;
position: fixed; position: fixed;
bottom: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
left: 0; left: 20px;
right: 0; right: 20px;
height: calc(64px + env(safe-area-inset-bottom, 0px)); height: 60px;
background: rgba(26, 26, 30, 0.75); /* Translucent dark mode */ background: rgba(26, 26, 30, 0.75); /* Translucent dark mode */
backdrop-filter: blur(20px); backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
border-top: 1px solid rgba(255, 255, 255, 0.08); /* Microscopic border */ border: 1px solid rgba(255, 255, 255, 0.08); /* Microscopic perimeter border */
border-radius: 30px; /* Floating capsule rounded borders */
z-index: 150; z-index: 150;
padding-bottom: env(safe-area-inset-bottom, 0px); padding: 0 16px;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
} }
.dock-item { .dock-item {
@@ -455,12 +456,13 @@
height: 100%; height: 100%;
color: var(--text-muted); color: var(--text-muted);
text-decoration: none; text-decoration: none;
transition: color 0.2s ease, transform 0.2s ease; transition: color 0.2s ease, filter 0.2s ease;
position: relative; position: relative;
} }
.dock-item:hover, .dock-item.active { .dock-item:hover, .dock-item.active {
color: var(--accent); color: var(--accent);
filter: drop-shadow(0 0 4px var(--accent-glow)); /* Clean accent glow drop-shadow */
} }
.dock-text { .dock-text {
@@ -473,49 +475,43 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: relative; position: relative;
flex: 0 0 58px; flex: 0 0 54px;
width: 58px; width: 54px;
height: 58px; height: 54px;
margin-top: 0; margin-top: 0;
transform: translateY(-20px); /* Elevate layout */ transform: translateY(-20px); /* Elevate layout */
z-index: 160; z-index: 160;
} }
.central-action-inner { .central-action-inner {
width: 58px; width: 54px;
height: 58px; height: 54px;
border-radius: 50%; border-radius: 50%;
background: var(--accent); /* brand-green */ background: var(--bg-surface); /* Pure background instead of green bleed */
color: #0a0a0a; color: var(--accent); /* brand-green robot icon */
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border: 2px solid var(--accent); /* Crisp green edge */ border: 2px solid var(--accent); /* Crisp green edge container wrapper */
box-shadow: 0 8px 24px rgba(0, 255, 153, 0.2); /* Neon drop shadow */ box-shadow: 0 8px 24px var(--accent-glow);
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
} }
.dock-item.central-action:hover .central-action-inner, .dock-item.central-action:hover .central-action-inner,
.dock-item.central-action.active .central-action-inner { .dock-item.central-action.active .central-action-inner {
transform: scale(1.08) translateY(-2px); transform: scale(1.08) translateY(-2px);
box-shadow: 0 12px 28px rgba(0, 255, 153, 0.4); box-shadow: 0 12px 28px var(--accent-glow);
} }
.central-action-glow { .central-action-glow {
position: absolute; display: none; /* Purged background glow */
inset: 4px;
border-radius: 50%;
background: var(--accent);
filter: blur(10px);
opacity: 0.3;
z-index: -1;
} }
/* Light Theme Overrides */ /* Light Theme Overrides */
.theme-light .reader-mobile-dock { .theme-light .reader-mobile-dock {
background: rgba(255, 255, 255, 0.85); /* Translucent light mode */ background: rgba(255, 255, 255, 0.85); /* Translucent light mode */
border-top-color: rgba(45, 42, 38, 0.08); /* Light theme microscopic border */ border: 1px solid rgba(45, 42, 38, 0.08); /* Light theme microscopic border */
box-shadow: 0 -10px 30px rgba(139, 130, 115, 0.06); box-shadow: 0 8px 32px rgba(139, 130, 115, 0.1);
} }
.theme-light .dock-item { .theme-light .dock-item {
@@ -524,21 +520,22 @@
.theme-light .dock-item:hover, .theme-light .dock-item.active { .theme-light .dock-item:hover, .theme-light .dock-item.active {
color: var(--accent); color: var(--accent);
filter: drop-shadow(0 0 3px var(--accent-glow));
} }
.theme-light .central-action-inner { .theme-light .central-action-inner {
background: var(--accent); background: var(--bg-surface);
color: #ffffff; color: var(--accent);
border: 2px solid var(--accent); border: 2px solid var(--accent);
box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2); box-shadow: 0 8px 24px var(--accent-glow);
} }
.theme-light .dock-item.central-action:hover .central-action-inner, .theme-light .dock-item.central-action:hover .central-action-inner,
.theme-light .dock-item.central-action.active .central-action-inner { .theme-light .dock-item.central-action.active .central-action-inner {
box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4); box-shadow: 0 12px 28px var(--accent-glow);
} }
.theme-light .central-action-glow { .theme-light .central-action-glow {
background: var(--accent); display: none;
} }
} }
@@ -526,29 +526,27 @@
/* Mobile Dashboard Overrides */ /* Mobile Dashboard Overrides */
@media (max-width: 767px) { @media (max-width: 767px) {
.dashboard-content { .dashboard-content {
padding: 1.25rem 0.75rem; padding: 1rem 0.5rem;
} }
.profile-header { .profile-header {
padding: 24px 16px; padding: 16px;
background: var(--bg-surface); background: var(--bg-surface);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 16px; border-radius: 16px;
margin-bottom: 24px; margin-bottom: 16px;
} }
.profile-visual { .profile-visual {
flex-direction: row; display: grid;
flex-wrap: wrap; grid-template-columns: auto 1fr;
justify-content: flex-start;
align-items: center; align-items: center;
text-align: left; gap: 0.75rem;
gap: 1.25rem;
} }
.avatar-wrapper { .avatar-wrapper {
width: 70px; width: 48px;
height: 70px; height: 48px;
margin: 0; margin: 0;
} }
@@ -556,9 +554,12 @@
flex: 1; flex: 1;
} }
.user-name { .username {
font-size: 1.5rem; font-size: 1.15rem;
margin-bottom: 0.25rem; font-weight: 600;
text-align: left;
margin: 0;
letter-spacing: 0px;
} }
.user-role { .user-role {
@@ -566,43 +567,60 @@
} }
.status-pills { .status-pills {
grid-column: span 2;
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%; width: 100%;
margin-top: 0.5rem; gap: 0.35rem;
justify-content: flex-start; margin-top: 0.25rem;
flex-wrap: wrap;
gap: 0.5rem;
} }
.status-pill { .status-pill {
padding: 0.35rem 0.75rem; flex: 1;
font-size: 0.75rem; display: flex;
justify-content: center;
align-items: center;
padding: 0.35rem 0.5rem;
font-size: 0.7rem;
gap: 0.25rem;
white-space: nowrap;
} }
.section-title { .section-title {
font-size: 2rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
letter-spacing: -0.5px; letter-spacing: -0.5px;
margin-bottom: 16px; margin-bottom: 12px;
color: var(--text-main); color: var(--text-main);
} }
.main-grid { .main-grid {
grid-template-columns: 1fr !important; grid-template-columns: 1fr !important;
gap: 1.25rem !important; gap: 1rem !important;
} }
.secondary-grid { .secondary-grid {
grid-template-columns: 1fr !important; grid-template-columns: 1fr !important;
gap: 1.25rem !important; gap: 1rem !important;
} }
/* Force all widgets to take 100% width and fit inside parent container nicely */ /* Force all widgets to take 100% width and fit inside parent container nicely */
.glass-panel { .glass-panel {
width: 100% !important; width: 100% !important;
padding: 1.25rem !important; padding: 1rem !important;
box-sizing: border-box; box-sizing: border-box;
} }
/* Compress Knowledge Graph and Concept stack heights to maximize visible fold space */
.graph-placeholder {
height: 140px;
}
.concepts-linear-stack {
height: 150px;
}
/* Expand touch-targets to 48px min height for interactive elements */ /* Expand touch-targets to 48px min height for interactive elements */
.btn-nexus, .quiz-option, .satellite, .logout-btn, .nav-item, .quiz-item { .btn-nexus, .quiz-option, .satellite, .logout-btn, .nav-item, .quiz-item {
min-height: 48px; min-height: 48px;