forked from Eshajha19/Algo-Infinity-Verse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcp-patterns.css
More file actions
87 lines (71 loc) · 5.29 KB
/
Copy pathcp-patterns.css
File metadata and controls
87 lines (71 loc) · 5.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/* CP Patterns Library Styles */
:root {
--glass-bg: #0f172a;
--glass-border: #1e293b;
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--dark-surface: #020617;
/* CP Theme */
--cp-primary: #06b6d4; /* Cyan */
--cp-primary-hover: #0891b2;
--cp-accent: #8b5cf6; /* Violet */
--cp-success: #10b981;
--panel-bg: #0b1121;
}
body.cp-body {
margin: 0;
padding: 0;
background-color: var(--dark-surface);
color: var(--text-primary);
font-family: 'Poppins', sans-serif;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Navbar */
.cp-nav { height: 60px; padding: 0 1.5rem; background: rgba(2, 6, 23, 0.95); border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; z-index: 100; }
.nav-logo { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--cp-primary); }
.engine-badge { font-family: 'Fira Code', monospace; font-size: 0.85rem; color: #fff; background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.4); padding: 0.4rem 1rem; border-radius: 99px; display: flex; align-items: center; gap: 0.5rem; box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
/* Workspace */
.cp-workspace { flex: 1; display: flex; overflow: hidden; background: #020617; }
.hidden { display: none !important; }
/* Sidebar */
.panel-sidebar { width: 320px; display: flex; flex-direction: column; background: var(--panel-bg); border-right: 1px solid var(--glass-border); z-index: 10; }
.sidebar-header { padding: 1.2rem 1.5rem; background: #020617; border-bottom: 1px solid var(--glass-border); }
.sidebar-header h3 { margin: 0; font-family: 'Orbitron', sans-serif; font-size: 1rem; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.pattern-nav { list-style: none; margin: 0; padding: 1rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.nav-item { padding: 0.8rem 1rem; border-radius: 6px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; font-family: 'Fira Code', monospace; font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.nav-item:hover { background: rgba(255,255,255,0.02); color: #fff; }
.nav-item.active { background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.3); color: var(--cp-primary); font-weight: 600; box-shadow: 0 0 10px rgba(6, 182, 212, 0.1); }
.nav-item i { width: 20px; text-align: center; }
/* Main Content Area */
.panel-content { flex: 1; display: flex; flex-direction: column; background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.03) 0%, #020617 80%); overflow-y: auto; }
.content-scroll-area { padding: 3rem; max-width: 1000px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 2rem; }
.pattern-header { display: flex; flex-direction: column; gap: 1rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 2rem; }
.title-row { display: flex; justify-content: space-between; align-items: center; }
.title-row h1 { margin: 0; font-family: 'Orbitron', sans-serif; font-size: 2.2rem; color: #fff; }
.difficulty-badge { background: rgba(139, 92, 246, 0.1); color: var(--cp-accent); border: 1px solid var(--cp-accent); padding: 0.3rem 0.8rem; border-radius: 99px; font-family: 'Fira Code', monospace; font-size: 0.8rem; text-transform: uppercase; font-weight: bold; }
.pattern-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin: 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.metric-card { background: #0b1121; border: 1px solid #1e293b; padding: 1.2rem; border-radius: 8px; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.m-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; font-family: 'Orbitron', sans-serif; }
.m-value { font-family: 'Fira Code', monospace; font-size: 1rem; font-weight: 600; color: #e2e8f0; }
/* Code Section */
.code-section { background: #0b1121; border: 1px solid #1e293b; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.code-header { background: #1e293b; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; font-family: 'Fira Code', monospace; font-size: 0.85rem; color: #cbd5e1; border-bottom: 1px solid #334155; }
.btn-copy { background: transparent; border: none; color: #94a3b8; cursor: pointer; transition: color 0.2s; font-size: 1rem; }
.btn-copy:hover { color: #fff; }
pre { margin: 0; padding: 1.5rem; overflow-x: auto; background: #000; }
code { font-family: 'Fira Code', monospace; font-size: 0.9rem; line-height: 1.6; color: #a5b4fc; } /* Subtle purple code text */
/* Syntax Highlighting Mock Colors */
.code-comment { color: #64748b; font-style: italic; }
.code-keyword { color: var(--cp-primary); font-weight: bold; }
.code-type { color: #10b981; }
.code-func { color: #fbbf24; }
@media (max-width: 1024px) {
.cp-workspace { flex-direction: column; }
.panel-sidebar { width: 100%; height: 300px; border-right: none; border-bottom: 1px solid var(--glass-border); flex-shrink: 0; }
.metrics-grid { grid-template-columns: 1fr; }
.content-scroll-area { padding: 1.5rem; }
}