/* USFUGC Member Identity & VCard */
.usfugc-vcard-wrapper,
.usfugc-vcard-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 390px;
    color: var(--text-color-main, inherit);
}

.usfugc-vcard-content {
    overflow: hidden;
    border: 1px solid var(--background3);
    border-radius: 12px;
    background: var(--background-color-main);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.usfugc-vcard-header {
    min-height: 112px;
    padding: 16px 16px 14px;
    display: flex;
    align-items: flex-end;
    gap: 13px;
    color: #fff;
    background-color: #26313a;
    background-image: linear-gradient(125deg, rgba(12, 22, 30, .96), rgba(42, 59, 70, .9));
    background-size: cover;
    background-position: center;
}

.usfugc-vcard-avatar {
    flex: 0 0 auto;
    position: relative;
    margin-bottom: -27px;
    padding: 4px;
    border-radius: 50%;
    background: var(--background-color-main);
}

.usfugc-vcard-avatar img {
    display: block;
    width: 76px !important;
    height: 76px !important;
    border-radius: 50%;
    object-fit: cover;
}

.usfugc-vcard-heading {
    min-width: 0;
    padding-bottom: 2px;
}

.usfugc-vcard-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.usfugc-vcard-name-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2597e8;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 18px;
}

.usfugc-vcard-title {
    margin-top: 4px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.usfugc-vcard-body {
    padding: 39px 14px 14px;
    border-top: 1px solid var(--background3);
}

.usfugc-vcard-intro,
.usfugc-vcard-status,
.usfugc-vcard-badges,
.usfugc-vcard-details,
.usfugc-vcard-about {
    margin-bottom: 11px;
    padding: 11px 12px;
    border: 1px solid var(--background3);
    border-radius: 9px;
    background: var(--background-color-page);
}

.usfugc-vcard-nickname {
    font-size: 16px;
    font-weight: 750;
}

.usfugc-vcard-uid {
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: .75px;
    opacity: .68;
    overflow-wrap: anywhere;
}

.usfugc-vcard-section-label {
    display: block;
    margin-bottom: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.15px;
    opacity: .64;
}

.usfugc-vcard-status-line {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-wrap: anywhere;
}

.usfugc-vcard-status-emoji {
    font-size: 19px;
    line-height: 1;
}

.usfugc-vcard-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.usfugc-vcard-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid var(--background3);
    border-radius: 7px;
    background: var(--background-color-main);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.usfugc-vcard-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 22px;
}

.usfugc-vcard-verified-label {
    color: #2597e8;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.usfugc-vcard-details > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    border-bottom: 1px solid var(--background3);
    font-size: 11px;
}

.usfugc-vcard-details > div:last-child {
    border-bottom: 0;
}

.usfugc-vcard-details > div span {
    opacity: .65;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .55px;
}

.usfugc-vcard-details > div strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.usfugc-vcard-about > div {
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-size: 12px;
}

.usfugc-vcard-footnote {
    padding: 3px 4px 1px;
    text-align: center;
    font-size: 9px;
    letter-spacing: .65px;
    opacity: .55;
}

.usfugc-vcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 7px 12px;
    border-top: 1px solid var(--background3);
    background: var(--background-color-page);
}

.usfugc-vcard-template-error {
    padding: 10px;
    color: var(--text-color-secondary, #888);
    font-size: 12px;
}

.usfugc-space-card .usfugc-vcard-header {
    min-height: 90px;
    align-items: center;
}

.usfugc-vcard-popover {
    max-width: min(420px, calc(100vw - 20px));
    padding: 0 !important;
    border: 0;
    background: transparent;
}

.usfugc-vcard-popover .popover-body {
    padding: 0 !important;
    background: transparent;
}

/* Avatar decorations are overlays only; HumHub keeps control of the image and online dot. */
.usfugc-avatar-decoration-container {
    position: relative !important;
    display: inline-block;
    vertical-align: middle;
}

.usfugc-avatar-decorations {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    pointer-events: none;
}

.usfugc-avatar-verified {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 2px solid var(--background-color-main, #fff);
    border-radius: 50%;
    background: #2597e8;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.usfugc-avatar-badge-stack {
    position: absolute;
    top: -5px;
    left: -5px;
    display: flex;
    align-items: center;
    gap: 1px;
}

.usfugc-avatar-badge-icon {
    width: 17px;
    height: 17px;
    padding: 1px;
    border: 1px solid var(--background-color-main, #fff);
    border-radius: 50%;
    background: var(--background-color-main, #fff);
    object-fit: contain;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.usfugc-avatar-status {
    position: absolute;
    bottom: -5px;
    left: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 1px 4px;
    border: 2px solid var(--background-color-main, #fff);
    border-radius: 10px;
    background: var(--background-color-page, #333);
    color: var(--text-color-main, #fff);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

@media (max-width: 480px) {
    .usfugc-vcard-content {
        max-width: calc(100vw - 24px);
    }
}

.usfugc-avatar-badge-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 1px solid var(--background-color-main, #fff);
    border-radius: 50%;
    background: var(--background-color-page, #333);
    color: var(--text-color-main, #fff);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* Keep indicators proportional on the tiny avatars used in comments and compact lists. */
.usfugc-avatar-verified {
    width: clamp(10px, 34%, 17px);
    height: clamp(10px, 34%, 17px);
    font-size: clamp(7px, 18%, 10px);
    border-width: 1px;
}

.usfugc-avatar-badge-icon,
.usfugc-avatar-badge-more {
    width: clamp(10px, 34%, 17px);
    height: clamp(10px, 34%, 17px);
}

.usfugc-avatar-status {
    max-width: min(112px, 190%);
    min-width: clamp(11px, 35%, 18px);
    min-height: clamp(11px, 35%, 18px);
    font-size: clamp(8px, 18%, 11px);
    padding: 1px 3px;
}
