forked from snxraven/p2ns
532 lines
12 KiB
CSS
532 lines
12 KiB
CSS
/* Profile Modal Styles - Dark Glass Theme */
|
|
|
|
/* CSS Variables for standalone modal */
|
|
:root {
|
|
/* Modern Color Palette */
|
|
--primary: #6366f1;
|
|
--primary-dark: #4f46e5;
|
|
--primary-light: #818cf8;
|
|
--secondary: #8b5cf6;
|
|
--accent: #ec4899;
|
|
--success: #10b981;
|
|
--error: #ef4444;
|
|
--warning: #f59e0b;
|
|
|
|
/* Background Colors - Darker for glass effect */
|
|
--bg-primary: #0a0e1a;
|
|
--bg-secondary: #0f1419;
|
|
--bg-tertiary: #1a1f2e;
|
|
--bg-glass: rgba(255, 255, 255, 0.03);
|
|
--bg-glass-hover: rgba(255, 255, 255, 0.06);
|
|
--bg-glass-strong: rgba(255, 255, 255, 0.08);
|
|
|
|
/* Text Colors */
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #cbd5e1;
|
|
--text-tertiary: #94a3b8;
|
|
--text-muted: #64748b;
|
|
|
|
/* Borders & Shadows - Enhanced for glass */
|
|
--border-color: rgba(255, 255, 255, 0.08);
|
|
--border-color-strong: rgba(255, 255, 255, 0.15);
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
|
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
|
|
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
|
|
--shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);
|
|
}
|
|
|
|
.profile-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 10000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.profile-modal-backdrop {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.profile-modal-content {
|
|
position: relative;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
backdrop-filter: blur(40px) saturate(200%);
|
|
-webkit-backdrop-filter: blur(40px) saturate(200%);
|
|
border: 1px solid var(--border-color-strong);
|
|
border-radius: 1rem;
|
|
padding: 2rem;
|
|
max-width: 500px;
|
|
width: 90%;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.15);
|
|
animation: modalFadeIn 0.2s ease-out;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.profile-modal-content::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 40%;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
z-index: 0;
|
|
}
|
|
|
|
.profile-modal-content > * {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
@keyframes modalFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.profile-modal-close {
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 0.5rem;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-primary);
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
line-height: 1;
|
|
padding: 0;
|
|
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
|
position: relative;
|
|
overflow: hidden;
|
|
z-index: 10;
|
|
}
|
|
|
|
.profile-modal-close::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.profile-modal-close:hover {
|
|
background: var(--bg-glass-hover);
|
|
border-color: var(--border-color-strong);
|
|
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.profile-modal-loading,
|
|
.profile-modal-error {
|
|
text-align: center;
|
|
padding: 3rem 1rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid rgba(99, 102, 241, 0.3);
|
|
border-top-color: #6366f1;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
margin: 0 auto 1rem;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.profile-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.profile-modal-avatar-container {
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.profile-modal-avatar {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 3px solid #6366f1;
|
|
box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.profile-modal-avatar-placeholder {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(25px) saturate(200%);
|
|
-webkit-backdrop-filter: blur(25px) saturate(200%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-tertiary);
|
|
border: 3px solid var(--border-color);
|
|
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
.profile-modal-header-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.profile-modal-name {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin: 0 0 0.5rem 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.bot-badge {
|
|
display: inline-block;
|
|
background: rgba(99, 102, 241, 0.3);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
border: 1px solid rgba(99, 102, 241, 0.5);
|
|
color: var(--text-primary);
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
vertical-align: middle;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.bot-badge::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.profile-modal-peerid {
|
|
font-size: 0.85rem;
|
|
color: var(--text-tertiary);
|
|
font-family: 'Monaco', 'Courier New', monospace;
|
|
margin: 0;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.profile-modal-bio {
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.profile-modal-bio-text {
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* Profile Tags Section */
|
|
.profile-modal-tags {
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.profile-modal-tags-label {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary);
|
|
margin-bottom: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.profile-modal-tags-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.profile-modal-tag {
|
|
display: inline-block;
|
|
padding: 0.375rem 0.75rem;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 0.375rem;
|
|
color: var(--text-primary);
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.profile-modal-tag::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.profile-modal-tag:hover {
|
|
background: var(--bg-glass-hover);
|
|
border-color: var(--border-color-strong);
|
|
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.profile-modal-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.profile-modal-detail-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(25px) saturate(200%);
|
|
-webkit-backdrop-filter: blur(25px) saturate(200%);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 0.5rem;
|
|
transition: all 0.2s;
|
|
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.profile-modal-detail-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 30%;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.profile-modal-detail-item:hover {
|
|
background: var(--bg-glass-hover);
|
|
border-color: var(--border-color-strong);
|
|
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.profile-modal-detail-icon {
|
|
font-size: 1.2rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.profile-modal-detail-link {
|
|
color: var(--primary-light);
|
|
text-decoration: none;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
transition: color 0.2s;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.profile-modal-detail-link:hover {
|
|
color: var(--primary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.profile-modal-detail-text {
|
|
color: var(--text-primary);
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Scrollbar styling for modal */
|
|
.profile-modal-content::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.profile-modal-content::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.profile-modal-content::-webkit-scrollbar-thumb {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.profile-modal-content::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-tertiary);
|
|
}
|
|
|
|
/* Profile Modal Actions */
|
|
.profile-modal-actions {
|
|
margin-top: 1.5rem;
|
|
padding-top: 1.5rem;
|
|
border-top: 1px solid var(--border-color);
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.profile-modal-action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 0.5rem;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
width: 100%;
|
|
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.profile-modal-action-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
|
|
pointer-events: none;
|
|
border-radius: inherit;
|
|
z-index: 0;
|
|
}
|
|
|
|
.profile-modal-action-btn > * {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.profile-modal-action-btn:hover {
|
|
background: var(--bg-glass-hover);
|
|
border-color: var(--border-color-strong);
|
|
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.profile-modal-action-btn-block {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
border-color: rgba(239, 68, 68, 0.4);
|
|
color: var(--text-primary);
|
|
box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.profile-modal-action-btn-block:hover {
|
|
background: rgba(239, 68, 68, 0.3);
|
|
border-color: rgba(239, 68, 68, 0.6);
|
|
box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.profile-modal-action-btn-unblock {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
border-color: rgba(16, 185, 129, 0.4);
|
|
color: var(--text-primary);
|
|
box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.profile-modal-action-btn-unblock:hover {
|
|
background: rgba(16, 185, 129, 0.3);
|
|
border-color: rgba(16, 185, 129, 0.6);
|
|
box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.profile-modal-action-btn svg {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|