File size: 8,036 Bytes
d80907b | 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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | /* ─────────────────────────────────────────────────────────────
* profile.css — YAZ User Profile Page
* ─────────────────────────────────────────────────────────── */
/* ── YAZ design tokens (exact match) ── */
:root {
--primary: #5c6bc0;
--primary-hover: #4a5ab8;
--bg: #fafbfc;
--surface: #ffffff;
--border: #e5e7eb;
--text: #1a1f2e;
--text-muted: #5c6370;
--text-light: #8b929f;
--success: #4caf7c;
--radius: 6px;
--radius-lg: 10px;
--radius-xl: 14px;
--shadow-sm: 0 1px 3px rgba(0,0,0,.06);
--shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
--t: .12s ease;
}
[data-theme="dark"] {
--primary: #8b9ad8;
--primary-hover: #9aa7e1;
--bg: #0c0f14;
--surface: #141921;
--border: #2a3140;
--text: #eaeef4;
--text-muted: #9ba4b2;
--text-light: #6b7280;
--shadow-sm: 0 1px 3px rgba(0,0,0,.2);
--shadow-md: 0 4px 6px -1px rgba(0,0,0,.25), 0 2px 4px -1px rgba(0,0,0,.15);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--bg); color: var(--text);
font-size: 14px; line-height: 1.6;
-webkit-font-smoothing: antialiased;
transition: background var(--t), color var(--t);
}
/* ── layout ── */
.page { max-width: 680px; margin: 0 auto; padding: 32px 16px 64px; }
/* ── theme button ── */
.theme-btn {
position: fixed; top: 16px; right: 16px; z-index: 10;
width: 32px; height: 32px;
border: 1px solid var(--border); border-radius: var(--radius);
background: var(--surface); color: var(--text-muted);
cursor: pointer; display: flex; align-items: center; justify-content: center;
font-size: 14px;
transition: background var(--t), border-color var(--t);
}
.theme-btn:hover { color: var(--text); background: var(--bg); }
/* ── profile header ── */
.profile-header {
display: flex; align-items: flex-start; gap: 20px;
padding: 28px 0 24px;
border-bottom: 1px solid var(--border);
}
.avatar {
width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
background: var(--primary);
display: flex; align-items: center; justify-content: center;
font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.02em;
box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-meta { flex: 1; min-width: 0; }
.profile-name {
font-size: 18px; font-weight: 700; letter-spacing: -.02em;
display: flex; align-items: center; gap: 8px;
}
.verified-badge {
display: inline-flex; align-items: center; justify-content: center;
width: 16px; height: 16px;
background: var(--primary); border-radius: 50%;
font-size: 9px; color: #fff; flex-shrink: 0;
}
.profile-handle {
font-size: 13px; font-weight: 500; color: var(--primary); margin-top: 2px;
}
.profile-tagline {
font-size: 13px; color: var(--text-muted); margin-top: 6px;
}
.profile-bio {
font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.7;
}
.profile-stats {
display: flex; gap: 20px; margin-top: 14px;
}
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 15px; font-weight: 600; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-light); margin-top: 1px; }
.avail {
display: inline-flex; align-items: center; gap: 6px;
font-size: 11px; font-weight: 500; color: var(--success); margin-top: 10px;
}
.avail-dot {
width: 6px; height: 6px; border-radius: 50%; background: var(--success);
animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
/* ── links (card-style) ── */
.section-title {
font-size: 11px; font-weight: 600; color: var(--text-light);
letter-spacing: .06em; text-transform: uppercase;
margin: 28px 0 10px;
}
.links { display: flex; flex-direction: column; gap: 4px; }
.link {
display: flex; align-items: center; gap: 10px;
padding: 9px 10px; border-radius: var(--radius-lg);
border: 1px solid transparent;
text-decoration: none; color: var(--text);
transition: background var(--t), border-color var(--t);
}
.link:hover { background: var(--surface); border-color: var(--border); }
.link-icon {
width: 30px; height: 30px; border-radius: var(--radius);
background: var(--bg); border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
transition: border-color var(--t);
}
.link:hover .link-icon { border-color: var(--primary); }
.mono { font-size: 11px; font-weight: 700; color: var(--text-muted); transition: color var(--t); }
.link:hover .mono { color: var(--primary); }
.link-text { flex: 1; }
.link-label { font-size: 13px; font-weight: 500; }
.link-sub { font-size: 11px; color: var(--text-light); margin-top: 1px; }
.link-arrow svg { width: 11px; height: 11px; stroke: var(--text-light); }
/* ── cases grid ── */
.cases-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 12px; margin-top: 10px;
}
.case-card {
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 16px; cursor: pointer; text-decoration: none; color: inherit;
display: flex; flex-direction: column; gap: 8px;
transition: border-color var(--t), box-shadow var(--t);
}
.case-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.case-title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.case-meta {
display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px;
}
.badge {
font-size: 10px; font-weight: 500; padding: 2px 7px;
border-radius: 20px; background: var(--bg); border: 1px solid var(--border);
color: var(--text-muted);
}
.badge.primary { background: rgba(92,107,192,.12); border-color: transparent; color: var(--primary); }
.case-abstract {
font-size: 12px; color: var(--text-light); line-height: 1.6;
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
overflow: hidden;
}
.case-footer {
display: flex; gap: 12px; margin-top: auto; padding-top: 8px;
border-top: 1px solid var(--border);
}
.case-stat { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.case-stat svg { width: 11px; height: 11px; stroke: currentColor; }
/* ── empty state ── */
.empty-cases {
padding: 32px 0; text-align: center;
color: var(--text-light); font-size: 13px;
}
/* ── footer ── */
.page-footer {
margin-top: 48px; padding-top: 20px;
border-top: 1px solid var(--border);
display: flex; align-items: center; justify-content: space-between;
font-size: 11px; color: var(--text-light);
}
.page-footer a { color: var(--primary); text-decoration: none; }
@media (max-width: 480px) {
.profile-header { flex-direction: column; gap: 14px; }
.cases-grid { grid-template-columns: 1fr; }
}
|