/* Карточка профиля (js/components/profile-card.js): свой и чужой профиль в одной системе с «О канале». * Селекторы привязаны к .user-profile-screen, чтобы перекрыть старую геометрию profile.css. */ .user-profile-screen { gap: 0; min-height: 0; overflow-x: clip; } .user-profile-screen::before { content: none; } .user-profile-screen .user-profile-body { display: grid; gap: var(--space-4); padding: var(--space-2) 0 var(--space-5); } .user-profile-screen .user-profile-status:empty { display: none; } .user-profile-screen .pf-hero { display: grid; justify-items: center; gap: var(--space-1); text-align: center; } .user-profile-screen .pf-avatar { position: relative; width: 96px; height: 96px; display: grid; place-items: center; justify-self: center; } .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar, .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-image { width: 96px; height: 96px; min-width: 96px; min-height: 96px; font-size: 36px; } .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed > .avatar-fallback, .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed > .avatar-photo { width: 100%; height: 100%; } .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-framed::after, .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-glow::before { content: none; } /* Сияющий: тёплая золотая аура вокруг аватара, медленно «дышит» – как сияние знака на заставке. */ .user-profile-screen .pf-avatar.is-shining { isolation: isolate; } .user-profile-screen .pf-avatar.is-shining::before { content: ""; position: absolute; inset: -30%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--warning) 46%, transparent) 55%, color-mix(in srgb, var(--warning) 16%, transparent) 78%, transparent); filter: blur(8px); animation: pf-shine-breathe 5.3s ease-in-out infinite; pointer-events: none; } .user-profile-screen .pf-avatar.is-shining .user-profile-hero-avatar { box-shadow: 0 0 0 2px color-mix(in srgb, var(--warning) 85%, transparent); border-radius: 50%; } @keyframes pf-shine-breathe { 0%, 100% { opacity: 0.7; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } } @media (prefers-reduced-motion: reduce) { .user-profile-screen .pf-avatar.is-shining::before { animation: none; } } /* Статусы по бокам аватара: слева «Официальный», справа «Сияющий» (profile-card.js → statusSideHtml). */ .user-profile-screen .pf-identity { --pf-shine: var(--warning); --pf-official: var(--info); width: min(100%, 440px); display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; gap: var(--space-3); } .user-profile-screen .pf-side { min-width: 0; display: grid; align-items: center; } .user-profile-screen .pf-side--left { justify-items: end; } .user-profile-screen .pf-side--right { justify-items: start; } .user-profile-screen .pf-sc { --pf-c: var(--pf-shine); width: min(100%, 116px); display: grid; gap: var(--space-1); min-width: 0; } .user-profile-screen .pf-sc--primary { --pf-c: var(--pf-official); } .user-profile-screen .pf-sc__title { text-align: center; color: var(--pf-c); font-size: var(--text-xs); line-height: 1.2; font-weight: var(--weight-bold); } .user-profile-screen .pf-sc__row { min-width: 0; display: grid; justify-items: center; gap: 1px; padding: 4px 2px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; } .user-profile-screen .pf-sc__row strong { font-size: var(--text-xl); line-height: 1.1; font-weight: var(--weight-bold); } .user-profile-screen .pf-sc__row span { color: var(--text-secondary); font-size: 11px; line-height: 1.15; } .user-profile-screen .pf-sc__row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; } .user-profile-screen .pf-sc.is-active .pf-sc__row strong { color: var(--pf-c); } .user-profile-screen .pf-sc.is-empty { opacity: 0.75; } .user-profile-screen .pf-sc.is-empty .pf-sc__title { color: var(--text-secondary); } @media (hover: hover) { .user-profile-screen .pf-sc__row:hover { background: var(--surface-selected); } } .user-profile-screen .pf-sc__row:active { background: var(--surface-selected); } @media (max-width: 360px) { .user-profile-screen .pf-identity { grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); gap: var(--space-2); } .user-profile-screen .pf-sc__row span { font-size: 10px; } } .user-profile-screen .pf-name { margin: var(--space-2) 0 0; color: var(--text-primary); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-bold); overflow-wrap: anywhere; } .user-profile-screen .pf-login { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); } .user-profile-screen .pf-city { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-sm); } .user-profile-screen .pf-city svg { width: 15px; height: 15px; flex: 0 0 auto; } @media (max-width: 360px) { .user-profile-screen .pf-avatar, .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar, .user-profile-screen .pf-avatar .user-profile-hero-avatar.avatar-image { width: 88px; height: 88px; min-width: 88px; min-height: 88px; } } .user-profile-screen .pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; } .user-profile-screen .pf-stat { min-height: 64px; padding: var(--space-2) var(--space-1); display: grid; align-content: center; justify-items: center; gap: 2px; border: 0; border-left: 1px solid var(--border-subtle); background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; } .user-profile-screen .pf-stat:first-child { border-left: 0; } .user-profile-screen .pf-stat:active { background: var(--surface-selected); } @media (hover: hover) { .user-profile-screen .pf-stat:hover { background: var(--surface-selected); } } .user-profile-screen .pf-stat:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; } .user-profile-screen .pf-stat-value { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-bold); } .user-profile-screen .pf-stat-value small { color: var(--text-secondary); font-size: var(--text-xs); font-weight: var(--weight-medium); } .user-profile-screen .pf-stat-label { color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); } .user-profile-screen .pf-tiles-wrap { position: relative; width: 100%; margin: 0; } .user-profile-screen .pf-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2); width: 100%; margin: 0; padding: 0; } .user-profile-screen .pf-tile { width: auto; height: auto; min-height: 64px; padding: 10px 4px 8px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid var(--border-subtle); border-radius: 14px; color: var(--accent); background: var(--surface); box-shadow: none; font: inherit; font-size: var(--text-xs); cursor: pointer; transform: none; width: 100%; justify-self: stretch; } .user-profile-screen .pf-tile::before, .user-profile-screen .pf-tile::after { content: none; } .user-profile-screen .pf-tile svg { width: 22px; height: 22px; } .user-profile-screen .pf-tile span { color: var(--text-primary); } .user-profile-screen .pf-tile:active, .user-profile-screen .pf-tile.is-active { background: var(--surface-selected); box-shadow: none; transform: none; } @media (hover: hover) { .user-profile-screen .pf-tile:hover { background: var(--surface-selected); box-shadow: none; transform: none; } } .user-profile-screen .pf-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; } .user-profile-screen .pf-tile .pf-tile-mandala, .user-profile-screen .pf-tile img { width: 24px; height: 24px; object-fit: contain; filter: none; } .user-profile-screen .pf-list { display: grid; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; } .user-profile-screen .pf-row { display: grid; gap: 2px; padding: 12px 14px; border-top: 1px solid var(--border-subtle); } .user-profile-screen .pf-row:first-child { border-top: 0; } .user-profile-screen .pf-row-label { color: var(--text-secondary); font-size: var(--text-xs); line-height: var(--leading-xs); } .user-profile-screen .pf-row-value, .user-profile-screen .pf-row-text { margin: 0; color: var(--text-primary); font-size: var(--text-md); line-height: var(--leading-md); white-space: pre-wrap; overflow-wrap: anywhere; } .user-profile-screen .pf-row-text.is-empty { color: var(--text-secondary); } .profile-edit-card { gap: var(--space-3); } .profile-edit-statuses { flex-wrap: wrap; overflow: visible; } .profiles-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); padding: 6px 6px 6px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface); } .profiles-row.is-active { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-control)); } .screen-content .profiles-row .profiles-select { min-height: var(--control-height); display: flex; align-items: center; gap: var(--space-2); padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; } .screen-content .profiles-row .profiles-select:disabled { opacity: 1; cursor: default; } .profiles-login { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text-primary); } .profiles-active-badge { padding: 2px 8px; border-radius: var(--radius-pill); color: var(--accent); background: var(--accent-soft); font-size: .6875rem; font-weight: var(--weight-bold); } .screen-content .profiles-row .profiles-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); color: var(--text-secondary); background: transparent; font-size: 22px; cursor: pointer; } .screen-content .profiles-row .profiles-close:active { background: var(--surface-selected); color: var(--danger); } @media (hover: hover) { .screen-content .profiles-row .profiles-close:hover { background: var(--surface-selected); color: var(--danger); } } /* Экран управления отношениями с другим пользователем. */ .relation-manage-screen { gap: var(--space-3); } .relation-manage-status:empty { display: none; } .relation-manage-body { gap: var(--space-3); } .relation-manage-body.is-busy { pointer-events: none; } .relation-manage-body.is-busy button:not(.is-pending) { opacity: .5; } .relation-manage-body button.is-pending { border-color: var(--accent); color: var(--accent); opacity: 1; } .relation-manage-card { gap: var(--space-3); } .relation-manage-card-head { display: grid; gap: 2px; } .relation-manage-card-head > strong { color: var(--text-primary); font-size: var(--text-md); } .relation-manage-card-head > span { color: var(--text-secondary); font-size: var(--text-xs); } .relation-manage-current { display: grid; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; } .relation-manage-current-row { min-height: 48px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); border-top: 1px solid var(--border-subtle); } .relation-manage-current-row:first-child { border-top: 0; } .relation-manage-current-row > span { color: var(--text-secondary); font-size: var(--text-sm); } .relation-manage-current-row > strong { color: var(--text-primary); font-size: var(--text-sm); text-align: right; } .relation-manage-mutual { min-height: 52px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-selected); } .relation-manage-mutual-label { color: var(--text-secondary); } .relation-manage-mutual > strong { color: var(--text-primary); } .relation-manage-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); } .relation-manage-choice { width: 100%; min-width: 0; } .relation-manage-choice.is-active { background: var(--surface-selected); border-color: var(--accent); color: var(--accent); } .relation-manage-confirmations { display: grid; gap: 6px; } .relation-manage-confirmations:empty { display: none; } .relation-manage-confirmation { padding: 9px 11px; border-radius: var(--radius-md); background: var(--surface-selected); color: var(--text-primary); font-size: var(--text-sm); line-height: var(--leading-sm); } .relation-manage-confirm-btn { width: 100%; } .relation-manage-card--official { border-color: color-mix(in srgb, var(--rel-family) 45%, var(--border-subtle)); } .relation-manage-card--shine { border-color: color-mix(in srgb, var(--rel-shining) 45%, var(--border-subtle)); } @media (max-width: 420px) { .relation-manage-choices { grid-template-columns: 1fr; } .relation-manage-current-row { align-items: flex-start; } } /* Личная заметка о человеке под кнопками действий (видна только владельцу аккаунта). */ .user-profile-screen .user-profile-note-add { display: inline-flex; align-items: center; justify-self: start; gap: 8px; padding-inline: 4px; color: var(--text-secondary); font-weight: 500; } .user-profile-screen .user-profile-note-add:active { color: var(--text-primary); } @media (hover: hover) { .user-profile-screen .user-profile-note-add:hover { color: var(--text-primary); } } .user-profile-screen .user-profile-note-add:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; } .user-profile-screen .user-profile-note-add svg { width: 18px; height: 18px; } /* Чужой профиль: плитка связи показывает текущую связь, над плитками – «хочет с вами дружить». */ .pf-tile.is-related svg { color: var(--success); } .user-profile-relation-hint { margin: 0 0 var(--space-2); color: var(--accent); font-size: var(--text-sm); font-weight: var(--weight-medium); text-align: center; }