c02414ea40
Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de> Reviewed-on: #7
512 lines
11 KiB
CSS
512 lines
11 KiB
CSS
/* ============ THEME TOKENS ============ */
|
|
:host {
|
|
/* Light mode: warm sunset palette from background gradient */
|
|
--nc-accent: #ff3dbb;
|
|
--nc-accent-hover: rgba(255, 107, 61, 0.15);
|
|
--nc-accent-badge: rgba(223, 61, 255, 0.9);
|
|
--nc-badge-text: #1a0800;
|
|
--nc-surface: rgba(26, 24, 56, 0.97);
|
|
--nc-nav-bg: linear-gradient(180deg, rgba(26,24,56,0.88) 0%, rgba(46,32,80,0.6) 70%, rgba(74,41,98,0) 100%);
|
|
--nc-text: #fff;
|
|
--nc-text-muted: rgba(255,255,255,0.7);
|
|
--nc-text-dim: rgba(255,255,255,0.45);
|
|
--nc-border: rgba(255,255,255,0.1);
|
|
--nc-popover-glow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,107,61,0.18);
|
|
--nc-unread-dot: #ff6b3d;
|
|
--nc-avatar-a: #d44d4a;
|
|
--nc-avatar-b: #8b3a6b;
|
|
--nc-danger: #ff7a7a;
|
|
}
|
|
|
|
:host-context(html[data-theme='dark']) {
|
|
/* Dark mode: blue neon palette */
|
|
--nc-accent: #00d5ff;
|
|
--nc-accent-hover: rgba(0, 213, 255, 0.12);
|
|
--nc-accent-badge: #00d5ff;
|
|
--nc-badge-text: #04000f;
|
|
--nc-surface: rgba(8, 6, 28, 0.97);
|
|
--nc-nav-bg: linear-gradient(180deg, rgba(8,5,20,0.88) 0%, rgba(8,5,20,0.58) 70%, rgba(8,5,20,0) 100%);
|
|
--nc-text: #fff;
|
|
--nc-text-muted: rgba(255,255,255,0.65);
|
|
--nc-text-dim: rgba(255,255,255,0.4);
|
|
--nc-border: rgba(255,255,255,0.08);
|
|
--nc-popover-glow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,213,255,0.15);
|
|
--nc-unread-dot: #00d5ff;
|
|
--nc-avatar-a: #00d5ff;
|
|
--nc-avatar-b: #1a5fa8;
|
|
--nc-danger: #ff7a7a;
|
|
}
|
|
|
|
/* ============ NAV CONTAINER ============ */
|
|
.nc-nav {
|
|
position: fixed;
|
|
top: 0; left: 0; right: 0;
|
|
height: 56px;
|
|
z-index: 100;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 24px;
|
|
background: var(--nc-nav-bg);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
/* ============ LOGO ============ */
|
|
.nc-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 0 0 auto;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.nc-logo-mark {
|
|
width: 24px; height: 24px;
|
|
background: var(--nc-accent);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 800;
|
|
color: var(--nc-badge-text);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.nc-logo-text {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.03em;
|
|
color: var(--nc-text);
|
|
}
|
|
|
|
/* ============ CENTER LINKS ============ */
|
|
.nc-links {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.nc-link {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--nc-text-muted);
|
|
padding: 8px 14px;
|
|
font-size: 12px;
|
|
font-family: inherit;
|
|
letter-spacing: 0.08em;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
position: relative;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.nc-link:hover { color: var(--nc-text); }
|
|
|
|
.nc-link::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 2px; left: 14px; right: 14px;
|
|
height: 1px;
|
|
background: var(--nc-accent);
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.nc-link:hover::after { opacity: 1; }
|
|
|
|
/* ============ RIGHT CLUSTER ============ */
|
|
.nc-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 0 0 auto;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* ============ BELL ============ */
|
|
.nc-bell {
|
|
width: 36px; height: 36px;
|
|
border: 1px solid var(--nc-border);
|
|
background: transparent;
|
|
color: var(--nc-text-muted);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
transition: background 0.15s, color 0.15s;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.nc-bell:hover,
|
|
.nc-bell.is-open {
|
|
background: var(--nc-accent-hover);
|
|
color: var(--nc-text);
|
|
}
|
|
|
|
/* ============ BADGE ============ */
|
|
.nc-badge {
|
|
position: absolute;
|
|
top: 5px; right: 5px;
|
|
min-width: 14px; height: 14px;
|
|
border-radius: 7px;
|
|
background: var(--nc-accent-badge);
|
|
color: var(--nc-badge-text);
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 3px;
|
|
}
|
|
|
|
/* ============ GAMES BUTTON ============ */
|
|
.nc-games-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
height: 36px;
|
|
padding: 0 14px;
|
|
border: 1px solid var(--nc-border);
|
|
background: transparent;
|
|
color: var(--nc-text-muted);
|
|
font-family: inherit;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
cursor: pointer;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
|
|
.nc-games-btn:hover {
|
|
background: var(--nc-accent-hover);
|
|
color: var(--nc-text);
|
|
}
|
|
|
|
/* ============ PROFILE BUTTON ============ */
|
|
.nc-profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 10px 4px 4px;
|
|
height: 36px;
|
|
border: 1px solid var(--nc-border);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
color: var(--nc-text-muted);
|
|
font-family: inherit;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
|
|
.nc-profile:hover,
|
|
.nc-profile.is-open {
|
|
background: var(--nc-accent-hover);
|
|
color: var(--nc-text);
|
|
}
|
|
|
|
.nc-profile-name {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.nc-chevron { opacity: 0.5; }
|
|
|
|
/* ============ AVATAR ============ */
|
|
.nc-avatar {
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--nc-avatar-a) 0%, var(--nc-avatar-b) 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nc-avatar-sm { width: 26px; height: 26px; font-size: 11px; }
|
|
.nc-avatar-md { width: 40px; height: 40px; font-size: 17px; }
|
|
|
|
/* ============ DROPDOWN WRAPPER ============ */
|
|
.nc-dropdown-wrap { position: relative; }
|
|
|
|
/* ============ POPOVERS ============ */
|
|
.nc-popover {
|
|
position: absolute;
|
|
top: calc(100% + 10px);
|
|
right: 0;
|
|
background: var(--nc-surface);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid var(--nc-border);
|
|
box-shadow: var(--nc-popover-glow);
|
|
z-index: 200;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ============ NOTIFICATIONS PANEL ============ */
|
|
.nc-notif { width: 360px; }
|
|
|
|
.nc-notif-header {
|
|
padding: 14px 18px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.06);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.nc-notif-header-title {
|
|
font-size: 11px;
|
|
letter-spacing: 0.22em;
|
|
color: var(--nc-text-muted);
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nc-notif-list { max-height: 420px; overflow-y: auto; }
|
|
|
|
.nc-notif-empty {
|
|
padding: 24px 18px;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
color: var(--nc-text-dim);
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.nc-notif-row {
|
|
padding: 14px 18px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.04);
|
|
position: relative;
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.nc-notif-row.is-unread { background: rgba(255,255,255,0.03); }
|
|
|
|
.nc-notif-row.is-unread::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 6px; top: 22px;
|
|
width: 4px; height: 4px;
|
|
border-radius: 50%;
|
|
background: var(--nc-unread-dot);
|
|
}
|
|
|
|
.nc-notif-icon {
|
|
width: 32px; height: 32px;
|
|
flex-shrink: 0;
|
|
background: rgba(255,255,255,0.04);
|
|
border: 1px solid rgba(255,255,255,0.12);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--nc-accent);
|
|
}
|
|
|
|
.nc-notif-body { flex: 1; min-width: 0; }
|
|
|
|
.nc-notif-text {
|
|
font-size: 13px;
|
|
color: var(--nc-text);
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.nc-notif-text b { font-weight: 600; }
|
|
|
|
.nc-notif-meta {
|
|
font-size: 10px;
|
|
color: var(--nc-text-dim);
|
|
margin-top: 4px;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.nc-notif-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.nc-btn-accept,
|
|
.nc-btn-decline {
|
|
padding: 6px 12px;
|
|
font-size: 10px;
|
|
font-family: inherit;
|
|
letter-spacing: 0.18em;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
border: none;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.nc-btn-accept {
|
|
background: var(--nc-accent);
|
|
color: var(--nc-badge-text);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nc-btn-decline {
|
|
background: transparent;
|
|
color: var(--nc-text-muted);
|
|
border: 1px solid rgba(255,255,255,0.15);
|
|
}
|
|
|
|
.nc-btn-accept:disabled,
|
|
.nc-btn-decline:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.nc-notif-footer {
|
|
padding: 10px 18px;
|
|
border-top: 1px solid rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.nc-view-all {
|
|
width: 100%;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--nc-text-dim);
|
|
font-size: 11px;
|
|
font-family: inherit;
|
|
letter-spacing: 0.2em;
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
padding: 6px 0;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.nc-view-all:hover { color: var(--nc-text-muted); }
|
|
|
|
/* ============ PROFILE MENU ============ */
|
|
.nc-menu { width: 250px; }
|
|
|
|
.nc-menu-header {
|
|
padding: 16px 16px 14px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.06);
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.nc-menu-user-name {
|
|
font-size: 14px;
|
|
color: var(--nc-text);
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nc-menu-user-sub {
|
|
font-size: 11px;
|
|
color: var(--nc-text-dim);
|
|
margin-top: 2px;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.nc-menu-group { padding: 6px 0; }
|
|
|
|
.nc-menu-group + .nc-menu-group {
|
|
border-top: 1px solid rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.nc-menu-item {
|
|
padding: 9px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
color: var(--nc-text-muted);
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
background: transparent;
|
|
border: none;
|
|
width: 100%;
|
|
text-align: left;
|
|
transition: background 0.12s, color 0.12s;
|
|
}
|
|
|
|
.nc-menu-item:hover {
|
|
background: var(--nc-accent-hover);
|
|
color: var(--nc-accent);
|
|
}
|
|
|
|
.nc-menu-item.danger { color: var(--nc-danger); }
|
|
.nc-menu-item.danger:hover { background: rgba(255,122,122,0.08); color: var(--nc-danger); }
|
|
|
|
.nc-menu-icon { opacity: 0.85; display: inline-flex; }
|
|
.nc-menu-label { flex: 1; }
|
|
|
|
/* ============ DARK MODE TOGGLE PILL ============ */
|
|
.nc-toggle {
|
|
width: 28px; height: 16px;
|
|
border-radius: 8px;
|
|
background: rgba(255,255,255,0.15);
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.nc-toggle.is-on { background: var(--nc-accent); }
|
|
|
|
.nc-toggle::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2px; left: 2px;
|
|
width: 12px; height: 12px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
transition: left 0.2s;
|
|
}
|
|
|
|
.nc-toggle.is-on::after { left: 14px; }
|
|
|
|
/* ============ AUTH BUTTONS (logged out) ============ */
|
|
.nc-auth-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--nc-border);
|
|
color: var(--nc-text-muted);
|
|
padding: 7px 14px;
|
|
font-size: 11px;
|
|
font-family: inherit;
|
|
font-weight: 600;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
cursor: pointer;
|
|
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.nc-auth-btn:hover {
|
|
background: rgba(255,255,255,0.06);
|
|
color: var(--nc-text);
|
|
}
|
|
|
|
.nc-auth-btn--primary {
|
|
background: var(--nc-accent);
|
|
border-color: var(--nc-accent);
|
|
color: var(--nc-badge-text);
|
|
}
|
|
|
|
.nc-auth-btn--primary:hover {
|
|
filter: brightness(1.1);
|
|
color: var(--nc-badge-text);
|
|
}
|
|
|
|
/* ============ NOTIF SCROLLBAR ============ */
|
|
.nc-notif-list::-webkit-scrollbar { width: 6px; }
|
|
.nc-notif-list::-webkit-scrollbar-track { background: transparent; }
|
|
.nc-notif-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
|