2026-05-20 10:50:30 +00:00

429 lines
7.8 KiB
CSS

.profile-container {
padding: 24px;
}
.profile-shell {
max-width: 980px;
margin: 0 auto;
display: grid;
gap: 24px;
}
.profile-head {
background: linear-gradient(to bottom right, var(--surface), var(--surface-soft));
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 20px;
padding: 30px;
display: flex;
align-items: center;
gap: 24px;
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
position: relative;
overflow: hidden;
}
.profile-head::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 5px;
background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.profile-head-copy {
display: grid;
gap: 4px;
}
.profile-readiness {
display: inline-flex;
align-items: center;
gap: 10px;
margin-top: 8px;
padding: 10px 14px;
border-radius: 999px;
background: rgba(40, 116, 240, 0.12);
color: var(--accent);
width: fit-content;
}
.profile-readiness strong {
font-size: 1rem;
}
.profile-avatar {
width: 100px;
height: 100px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
border: 4px solid var(--surface);
box-shadow: 0 0 0 2px var(--accent-soft), 0 8px 16px rgba(40, 116, 240, 0.15);
background: var(--surface-soft);
}
.profile-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.avatar-placeholder {
width: 100%;
height: 100%;
display: grid;
place-items: center;
font-weight: 800;
font-size: 2rem;
background: linear-gradient(135deg, var(--accent-soft), var(--surface-strong));
color: var(--accent);
}
.profile-head h1 {
font-size: 1.8rem;
margin-bottom: 2px;
color: var(--text);
}
.profile-head p {
color: var(--muted);
font-size: 1rem;
margin-bottom: 2px;
}
.profile-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 16px;
}
.stat-card {
background: var(--surface);
border: 1px solid rgba(0, 0, 0, 0.03);
border-radius: 16px;
padding: 20px;
text-align: center;
box-shadow: var(--shadow-soft);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.stat-card h3 {
font-size: 1.5rem;
color: var(--accent);
margin-bottom: 6px;
}
.stat-card p {
color: var(--muted);
font-size: 0.9rem;
font-weight: 600;
}
.profile-panel {
background: var(--surface);
border: 1px solid rgba(0, 0, 0, 0.03);
border-radius: 20px;
padding: 24px;
box-shadow: var(--shadow-soft);
}
.profile-panel h1,
.profile-panel h2 {
margin-bottom: 16px;
font-size: 1.3rem;
color: var(--text);
}
.profile-panel h2 {
border-bottom: 2px solid var(--surface-soft);
padding-bottom: 12px;
}
.profile-section-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 18px;
}
.profile-section-head p {
color: var(--muted);
line-height: 1.7;
}
.profile-delivery-grid {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 18px;
}
.delivery-details-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.delivery-detail-card {
background: var(--surface-soft);
border: 1px solid var(--border);
border-radius: 16px;
padding: 16px;
display: grid;
gap: 8px;
}
.delivery-detail-card--full {
grid-column: 1 / -1;
}
.delivery-detail-card span {
color: var(--muted);
font-size: 0.88rem;
font-weight: 700;
}
.delivery-detail-card strong {
color: var(--text);
line-height: 1.6;
}
.profile-checklist {
display: grid;
gap: 10px;
}
.check-row {
padding: 14px 16px;
border-radius: 14px;
border: 1px solid var(--border);
background: var(--surface-soft);
color: var(--muted);
font-weight: 600;
}
.check-row.is-done {
border-color: rgba(22, 163, 74, 0.28);
background: rgba(22, 163, 74, 0.08);
color: #0f766e;
}
.recent-orders {
display: grid;
gap: 12px;
}
.delivery-shortcuts-list {
display: grid;
gap: 12px;
}
.delivery-shortcut-card {
display: grid;
gap: 10px;
padding: 16px;
border-radius: 16px;
border: 1px solid var(--border);
background: var(--surface-soft);
}
.delivery-shortcut-top {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
flex-wrap: wrap;
}
.delivery-shortcut-top strong {
color: var(--text);
}
.delivery-shortcut-top span,
.delivery-shortcut-meta {
color: var(--muted);
font-size: 0.9rem;
}
.delivery-shortcut-card p {
margin: 0;
line-height: 1.7;
color: var(--text);
}
.delivery-shortcut-meta {
display: flex;
gap: 8px 16px;
flex-wrap: wrap;
}
.recent-order-row {
display: grid;
grid-template-columns: 80px minmax(0, 1fr) 110px 130px;
gap: 14px;
align-items: center;
text-decoration: none;
color: var(--text);
border: 1px solid var(--border);
border-radius: 12px;
padding: 14px 18px;
background: var(--surface-soft);
font-size: 0.95rem;
transition: all 0.3s ease;
}
.recent-order-row:hover {
background: var(--surface);
border-color: var(--accent-soft);
box-shadow: 0 4px 12px rgba(40, 116, 240, 0.08);
transform: translateX(4px);
}
.recent-order-row strong {
justify-self: end;
color: var(--accent);
}
.profile-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 8px;
}
.profile-actions .btn {
padding: 12px 20px;
font-size: 0.95rem;
border-radius: 999px;
}
.profile-edit-form {
display: grid;
gap: 18px;
}
.profile-form-grid {
gap: 16px;
}
.profile-edit-form .form-row {
display: grid;
gap: 8px;
}
.profile-edit-form .form-row--full {
grid-column: 1 / -1;
}
.profile-edit-form label {
font-size: 0.95rem;
color: var(--text);
font-weight: 600;
}
.profile-edit-form input,
.profile-edit-form textarea,
.profile-edit-form select {
width: 100%;
border: 2px solid var(--surface-strong);
border-radius: 12px;
padding: 12px 16px;
background: var(--surface-soft);
color: var(--text);
transition: all 0.3s ease;
}
.profile-edit-form input:focus,
.profile-edit-form textarea:focus,
.profile-edit-form select:focus {
border-color: var(--accent);
background: var(--surface);
outline: none;
box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.1);
}
.profile-edit-form textarea {
min-height: 120px;
resize: vertical;
}
.profile-edit-form .current-image img {
width: 90px;
height: 90px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--surface);
box-shadow: 0 0 0 2px var(--accent-soft);
}
.profile-edit-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
}
.field-errors {
color: #b91c1c;
font-size: 0.85rem;
}
.field-errors ul {
margin: 0;
padding-left: 18px;
}
@media (max-width: 980px) {
.profile-delivery-grid,
.delivery-details-grid,
.recent-order-row {
grid-template-columns: 1fr;
}
.recent-order-row strong {
justify-self: start;
}
}
@media (max-width: 560px) {
.profile-container {
padding: 16px;
}
.profile-head {
flex-direction: column;
align-items: center;
text-align: center;
padding: 24px;
}
.profile-readiness {
margin-left: auto;
margin-right: auto;
}
.profile-actions .btn,
.profile-edit-actions .btn,
.profile-section-head .btn {
width: 100%;
}
.delivery-shortcut-top {
flex-direction: column;
align-items: flex-start;
}
.profile-edit-actions {
flex-direction: column;
align-items: stretch;
}
}