Files
Nexus.Reader/src/NexusReader.UI.Shared/Components/Organisms/ConceptsMap.razor.css
T

359 lines
7.3 KiB
CSS

.concepts-map {
width: 100%;
max-height: 72vh;
overflow-y: auto;
padding: 1.5rem;
box-sizing: border-box;
}
/* Scrollbar Customization for modern aesthetic */
.concepts-map::-webkit-scrollbar {
width: 6px;
}
.concepts-map::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.02);
}
.concepts-map::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
}
.concepts-map::-webkit-scrollbar-thumb:hover {
background: var(--nexus-neon);
}
.empty-map-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem;
background: rgba(255, 255, 255, 0.02);
border: 1px dashed rgba(255, 255, 255, 0.08);
border-radius: 12px;
color: rgba(255, 255, 255, 0.4);
text-align: center;
}
.empty-map-state .dim-icon {
margin-bottom: 1rem;
color: rgba(255, 255, 255, 0.2);
}
.timeline-container {
display: flex;
flex-direction: column;
gap: 0;
position: relative;
padding-left: 0.5rem;
}
.timeline-step {
display: flex;
flex-direction: row;
gap: 1.5rem;
padding: 1rem;
border-radius: 12px;
border: 1px solid transparent;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
margin-bottom: 0.5rem;
}
.timeline-step:hover {
background: rgba(255, 255, 255, 0.02);
transform: translateX(4px);
}
.timeline-step.unlocked:hover {
border-color: rgba(0, 255, 153, 0.15);
box-shadow: 0 4px 20px rgba(0, 255, 153, 0.05);
}
.timeline-step.selected {
background: rgba(0, 255, 153, 0.04);
border-color: var(--nexus-neon);
box-shadow: 0 0 15px var(--nexus-primary-glow);
}
.node-connector-wrapper {
display: flex;
flex-direction: column;
align-items: center;
width: 32px;
position: relative;
flex-shrink: 0;
}
.node-circle {
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 2;
transition: all 0.3s ease;
background: #0d0d0d;
}
.unlocked .node-circle {
border: 2px solid var(--nexus-neon);
color: var(--nexus-neon);
box-shadow: 0 0 10px var(--nexus-primary-glow);
}
.locked .node-circle {
border: 2px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.2);
}
.node-glow {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background: var(--nexus-neon);
opacity: 0.15;
filter: blur(4px);
z-index: -1;
animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
0% { transform: scale(1); opacity: 0.15; }
50% { transform: scale(1.25); opacity: 0.3; }
100% { transform: scale(1); opacity: 0.15; }
}
.vertical-track {
width: 2px;
position: absolute;
top: 32px;
bottom: -18px; /* Extends to link to next node circle */
z-index: 1;
transition: all 0.3s ease;
}
.track-active {
background: linear-gradient(180deg, var(--nexus-neon), rgba(0, 255, 153, 0.2));
box-shadow: 0 0 6px var(--nexus-primary-glow);
}
.track-inactive {
background: rgba(255, 255, 255, 0.08);
}
.node-content {
flex-grow: 1;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.04);
border-radius: 8px;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
transition: all 0.3s ease;
backdrop-filter: blur(4px);
}
.timeline-step.selected .node-content {
background: rgba(255, 255, 255, 0.03);
border-color: rgba(0, 255, 153, 0.2);
}
.node-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.segment-tag {
font-family: 'Outfit', sans-serif;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.05em;
color: rgba(255, 255, 255, 0.4);
}
.unlocked .segment-tag {
color: var(--nexus-neon);
}
.badge {
font-size: 0.7rem;
padding: 0.2rem 0.5rem;
border-radius: 12px;
font-weight: 500;
}
.badge-unlocked {
background: rgba(0, 255, 153, 0.08);
color: var(--nexus-neon);
border: 1px solid rgba(0, 255, 153, 0.2);
}
.badge-locked {
background: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.3);
border: 1px solid rgba(255, 255, 255, 0.03);
}
.node-title {
margin: 0;
font-size: 0.95rem;
font-weight: 600;
color: #fff;
transition: color 0.2s ease;
}
.timeline-step.unlocked:hover .node-title {
color: var(--nexus-neon);
}
.locked .node-title {
color: rgba(255, 255, 255, 0.4);
}
.node-desc {
margin: 0;
font-size: 0.8rem;
line-height: 1.4;
color: rgba(255, 255, 255, 0.5);
}
.locked .node-desc {
color: rgba(255, 255, 255, 0.3);
}
.check-icon {
color: var(--nexus-neon);
}
.lock-icon {
color: rgba(255, 255, 255, 0.2);
}
/* ============================================================
LIGHT THEME OVERRIDES — "Warm Paper / Soft Sepia"
============================================================ */
.theme-light .concepts-map::-webkit-scrollbar-thumb:hover {
background: var(--accent);
}
.theme-light .empty-map-state {
background: rgba(0, 0, 0, 0.01);
border-color: var(--border);
color: var(--text-muted);
}
.theme-light .empty-map-state .dim-icon {
color: var(--text-muted);
opacity: 0.4;
}
.theme-light .timeline-step:hover {
background: rgba(0, 0, 0, 0.02);
}
.theme-light .timeline-step.unlocked:hover {
border-color: rgba(16, 185, 129, 0.15);
box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
}
.theme-light .timeline-step.selected {
background: rgba(16, 185, 129, 0.04);
border-color: var(--accent);
box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}
.theme-light .node-circle {
background: var(--bg-surface);
}
.theme-light .unlocked .node-circle {
background: var(--bg-surface);
border-color: var(--accent);
color: var(--accent);
box-shadow: none;
}
.theme-light .locked .node-circle {
background: var(--bg-base);
border-color: var(--border);
color: var(--text-muted);
}
.theme-light .node-glow {
display: none;
}
.theme-light .track-active {
background: var(--accent);
box-shadow: none;
}
.theme-light .track-inactive {
background: var(--border);
}
.theme-light .node-content {
background: var(--bg-surface);
border: 1px solid var(--border);
}
.theme-light .timeline-step.selected .node-content {
background: var(--bg-surface);
border-color: rgba(16, 185, 129, 0.2);
}
.theme-light .segment-tag {
color: var(--text-muted);
}
.theme-light .unlocked .segment-tag {
color: var(--accent);
}
.theme-light .badge-unlocked {
background: rgba(16, 185, 129, 0.08);
color: var(--accent);
border-color: rgba(16, 185, 129, 0.2);
}
.theme-light .badge-locked {
background: var(--bg-base);
color: var(--text-muted);
border-color: var(--border);
}
.theme-light .node-title {
color: var(--text-main);
}
.theme-light .timeline-step.unlocked:hover .node-title {
color: var(--accent);
}
.theme-light .locked .node-title {
color: var(--text-muted);
}
.theme-light .node-desc {
color: var(--text-muted);
}
.theme-light .locked .node-desc {
color: var(--text-muted);
}
.theme-light .check-icon {
color: var(--accent);
}
.theme-light .lock-icon {
color: var(--text-muted);
}