/**
 * 主页增强插件样式
 * @file plugins/profile_plus/assets/style.css
 */

/* 钩子位于 user_profile 的 .up-profile flex 容器内：允许换行，整块独占一行 */
.up-profile {
    flex-wrap: wrap;
}

.pp-block {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin-top: 14px;
}

.pp-cover {
    position: relative;
    margin: 14px 0;
    border-radius: var(--mn-radius, 8px);
    overflow: hidden;
    background: var(--mn-bg-row-hover, #f3f4f6);
}

.pp-cover img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.pp-visitors {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--mn-radius, 8px);
    background: var(--mn-bg-card, #ffffff);
}

.pp-visitors-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pp-visitors-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--mn-text, #111827);
}

.pp-visitors-count {
    padding: 1px 8px;
    border-radius: var(--mn-radius-sm, 4px);
    background: var(--mn-primary-subtle, rgba(37, 99, 235, .08));
    color: var(--mn-primary, #2563eb);
    font-size: 12px;
}

.pp-visitor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pp-visitor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 56px;
    text-decoration: none;
}

.pp-visitor-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mn-primary-subtle, rgba(37, 99, 235, .1));
    color: var(--mn-primary, #2563eb);
    font-size: 15px;
    font-weight: 600;
}

.pp-visitor-name {
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: var(--mn-text-muted, #6b7280);
}

.pp-visitor:hover .pp-visitor-name {
    color: var(--mn-primary, #2563eb);
}

.pp-empty {
    margin: 0;
    font-size: 12px;
    color: var(--mn-text-muted, #9ca3af);
}

.pp-edit {
    margin: 12px 0;
}

@media (max-width: 640px) {
    .pp-cover img {
        max-height: 120px;
    }
}
